product_agent_run
Execute a natural-language task synchronously and get a compact result. Automatically selects the right tool (optimize, simulate, search, or calculate) and returns the answer as text, JSON, or markdown.
Instructions
Execute a natural-language task synchronously with the simple product agent and return a compact task result. The agent picks one tool from the task wording (optimize for best/maximum-style tasks, simulate for risk/forecast-style, search for find/lookup-style, otherwise calculate), runs it, and formats the answer as text, json, or markdown. Use this for one-shot task execution; use create_agent_run when you need a paused or approval-gated lifecycle, and get_agent_run to re-fetch the persisted record. The run, its step log, events, and a replayable checkpoint are persisted under the caller's organization. Returns run_id, status (completed on success), result, the step list, tools_used, and latency_ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | What the agent should do, in plain words (min 5 characters). | |
| tools | No | Restrict the tools the agent may pick from; defaults to search, simulate, optimize, calculate, summarize. | |
| context | No | Optional structured context or data for the task. | |
| max_steps | No | Maximum execution steps, 1-50; defaults to 10. | |
| output_format | No | Result format: text (default), json, or markdown. |