Agentic Programming guide
- Philosophy: why this model.
- Agent calls and methods: direct
agent()calls, configuredAgentmethods, method metadata. - Function metadata: parameter descriptions, placeholders, hidden arguments,
render_range. - Pure Python: deterministic helpers.
- Embedding: the model as a library in your own app, with your LLM call and state directory.
Choosing the next step
Picking the right one per task is the core skill.
| Mechanism | Who picks | Use when |
|---|---|---|
| Fixed-order calls | Python calls sub-functions in a set order | Order known ahead of time: draft, review, revise |
| Tool calling | The model, each turn, by provider-native tool use, until it answers in text | Open-ended work: the model decides which calls and how many |
| Next-step decision | The model, from a text menu: decision.make(prompt, options) or agent(prompt, choices=...). The pick resolves into the next result. | Routing and finite branches; options may be plain values; no provider tool use needed |
Reference
- Agent, Context and function API: authoring and validation conventions
Runtime.exec(): parameters and behaviour- Function-calling design: internals, not needed for authoring
- LLM-as-Code: Agentic Programming for Agent Harness: the paper, accepted at the KDD 2026 AgenticSE workshop
Last updated · 2026-11-25