Function design
| Record | Covers |
|---|---|
| Program model | Tools and applications, ProgramContext, plugins, exposure tiers, user directory, CLI |
| Function calling | @function and Agent methods, shared registry, gating, deferred loading |
| Deferred tools | Catalog, tool_search ranking and loading per provider, unavailable tools, tool-array epochs |
| Tool guides | Instructions delivered when a call needs them, help, single-entry tools |
| Agent classes, Programs and tools | Agent classes and what each shape is for |
| Fixed-order calls | A method calling sub-functions in source order |
Decorator usage, metadata, the tool-call loop and pure-Python helpers live only in the Agentic programming guide.
Implementation
openprogram/runtime/agent/call_state.pyopenprogram/runtime/agent/runtime/openprogram/runtime/agent/decision.pyopenprogram/programs/tools/<group>/<name>/
Last updated · 2026-11-25