Skip to main content

Agent

An agent is defined by its tools, input/output schemas, and description.
Methods:
  • async aot(cache: bool = True, strategy: Optional[Strategy] = None) -> Tool - Compile agent to code
  • async jit(strategy: Optional[Strategy] = None, **kwargs) -> Any - Execute immediately

Tool

Tools are callable functions with typed inputs and outputs.
Properties:
  • name: str - Tool identifier
  • description: str - What the tool does
  • input_schema: type[BaseModel] - Pydantic schema for inputs
  • output_schema: type[BaseModel] - Pydantic schema for outputs
  • is_terminal: bool - Whether this ends agent execution

LLM

LLMs are tools that call language models.
Parameters:
  • model: str - Model identifier (e.g., “gpt-4.1”, “claude-3-5-sonnet”)
  • retry_strategy: Optional[RetryStrategy] - Retry configuration
  • output_schema: Optional[type[BaseModel]] - Structured output schema

ToolSet

Group related tools together.

Skill

Skills provide context or code snippets to agents.

SkillSet

Group related skills.

Strategy

Configure code generation and verification.

RetryStrategy

Configure retry behavior for LLM calls.

Context

Manage conversation history.
Methods:
  • user(content: str) - Add user message
  • assistant(content: str, tool_calls=None) - Add assistant message
  • tool(name: str, input: Any, output: Any) - Add tool call result

RAG

Retrieval tools for databases and filesystems.

Runtime (Advanced)

Direct access to runtime for advanced use cases.
Methods:
  • async execute(tool: Tool, **kwargs) -> Any - Execute a tool
  • async aot(agent: Agent, cache: bool = True) -> Tool - Compile agent
  • async jit(agent: Agent, **kwargs) -> Any - Execute agent JIT
  • get_full_context(labels: List[str]) -> Context - Get merged context

Verifiers

Built-in code verifiers.