What is the difference between a tool call and a tool result?
A tool call is the model's structured proposal to invoke a capability with arguments. A tool result is the output produced…
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 61–72 of 3610 questions
A tool call is the model's structured proposal to invoke a capability with arguments. A tool result is the output produced…
The orchestrator should validate required arguments before execution. If a required value is missing or ambiguous, the agent…
Expose only tools relevant to the current task, separate read-only tools from mutation tools, and apply server-side policy…
Validate model-proposed arguments at runtime with a schema library or equivalent checks, because TypeScript types disappear…
Assign a correlation ID to the agent run and record each proposed call, validation decision, authorization result, executed…
An agent workflow defines how model decisions, tools, state transitions, and control rules work together to complete a task.…
A state machine is useful when a task has important stages and legal transitions, such as draft, awaiting approval,…
Persist the task ID, current state, plan or pending step, completed actions, approvals, tool results needed for recovery,…
Use durable checkpoints, explicit task states, idempotent actions, and a recovery policy for each step. Store enough…
A saga coordinates a sequence of distributed operations using local transactions and compensating actions when a later step…
Decompose the goal into small, observable tasks with clear completion criteria and dependencies. Each subtask should have a…
Plan revision updates the next steps when observations invalidate an assumption, a tool fails, or the user changes the goal.…