Registry / llm-agents / pw-agent

pw-agent

JSON →
library1.50.40pypypiunverified

A CLI coding assistant powered by your Ollama GPUs. Uses local LLMs for code generation, chat, and agentic workflows. Current version: 1.50.40. Released frequently via PyPI.

pip install pw-agent
INSTALL
IMPORT
SIG · PW-AGENT
P
pw-agent
llm-agentspythonv1.50.40
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Agent
✓ from pw_agent.agent import Agent
✗ from pw_agent import PastaWaterAgent

Initialize the agent with an Ollama host and model, then send a chat message.

from pw_agent import PastaWaterAgent import os agent = PastaWaterAgent( ollama_host=os.environ.get('OLLAMA_HOST', 'http://localhost:11434'), model='codellama' ) response = agent.chat("Write a Python function to compute Fibonacci numbers.") print(response)
pw-agent --version
Debug
Known issues
breakingIn version 1.40.0 the constructor changed: `model_name` is now `model`. Old code PastaWaterAgent(model_name='codellama') breaks.
fix
Use PastaWaterAgent(model='codellama').
affects: >=1.40.0
gotchaThe agent requires an active Ollama server. If OLLAMA_HOST is unreachable, the agent hangs without timeout error.
fix
Set a reasonable timeout or check connectivity before calling agent methods.
affects: all
deprecatedMethod `generate` has been deprecated in favor of `chat`. It still works but will be removed in v2.0.
fix
Use agent.chat() instead of agent.generate().
affects: >=1.45.0
Upgrade
Version history
1.50.40latest on PyPI · released May 8, 2026
Audit
Dependencies
ollamarequiredRequired to connect to Ollama server for LLM inference.
instructoroptionalUsed for structured output and function calling.
Agent activity
29 hits · last 30 days
node
26
OpenAI (training)
1
Resources
pw-agent — pip install pw-agent · libregistry