OpenProgram Docs

Agentic Programming guide

  1. Philosophy: why this model.
  2. Agent calls and methods: direct agent() calls, configured Agent methods, method metadata.
  3. Function metadata: parameter descriptions, placeholders, hidden arguments, render_range.
  4. Pure Python: deterministic helpers.
  5. 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.

MechanismWho picksUse when
Fixed-order callsPython calls sub-functions in a set orderOrder known ahead of time: draft, review, revise
Tool callingThe model, each turn, by provider-native tool use, until it answers in textOpen-ended work: the model decides which calls and how many
Next-step decisionThe 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

Last updated · 2026-11-25