protocol
polars_ts.agents._protocol
LLM backend protocol and shared context for the agent framework.
LLMBackend
Bases: Protocol
Abstraction over any LLM provider.
Implement complete to plug in OpenAI, Anthropic, local models, etc.
RuleBasedBackend
Default backend that uses deterministic heuristics instead of an LLM.
AgentContext
dataclass
Shared mutable state passed between agents in a pipeline run.