EXPLORE API LAB / TOPIC

Agents

An agent needs a finish line that the application can recognize. Describe the requested artifact or state change, the evidence that confirms it, and the conditions under which the workflow should stop. A sequence of attempted actions does not by itself establish that the user received the intended result.

Use the agent workflow guide to decide where model judgment adds value. Separate decisions that depend on changing context from steps with a known implementation. Give the model a narrow set of actions and preserve their actual execution outcomes.

The tool-calling article develops the action boundary in detail. Consider repeated attempts, incomplete tool results, and unavailable dependencies. A useful recovery path preserves completed work and identifies the remaining obstacle, allowing a person or a later run to continue without guessing what already happened.

1 article to explore

All Lab articles