Import map
Do not use
src.afk.* imports in user-facing docs.
Agent
model is required. Most examples should also set name and instructions for clear traces and predictable behavior.
Runner
run_sync() is a convenience wrapper for synchronous code. Use await runner.run(...) inside async applications.
RunnerConfig
FailSafeConfig
max_total_cost_usd for production agents. The default is intentionally unset because acceptable budgets vary by application.
Tool decorator
(args), (args, ctx), or (ctx, args).
AgentResult
API stability
- Public docs and examples should use imports from
afk.agents,afk.core,afk.tools,afk.llms,afk.memory,afk.queues,afk.mcp,afk.messaging,afk.observability, andafk.evals. - Internal modules under package subdirectories may change faster than public exports.
- When changing public exports, update this page, Public API Rules, examples, and generated agent-facing docs.