protocol
polars_ts.agents._protocol
LLM backend protocol and shared context for the agent framework.
LLMBackend
Bases: Protocol
flowchart TD
polars_ts.agents._protocol.LLMBackend[LLMBackend]
click polars_ts.agents._protocol.LLMBackend href "" "polars_ts.agents._protocol.LLMBackend"
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.