In short.
Define the run is a guide for developers configuring Perplexity AI agents, with a step limit that must leave enough room for tool setup and useful work. It explains how effort presets bundle configuration, how instructions replaces the preset system prompt, and how model selection and fallback work. Requests specifying model or models without an effort level default to one step when max_steps is omitted. The page provides usable request examples, but prices, exact preset contents and measured runtime results are not established.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to the complete selected page at [https://docs.perplexity.ai/docs/agent-api/building-agents/define-the-run.md], including its examples, notes, tip and documentation-index notice. The index at [https://docs.perplexity.ai/llms.txt] and all linked pages are excluded, including effort levels, prompting, tools, output formatting, models and model fallback. No code or API requests were executed. Runtime behavior, tool outcomes, fallback success, answer quality, latency and charges remain untested; prices and reuse permissions are not established.
The overview
Identity
Define the run is a Perplexity Agent API documentation page at [https://docs.perplexity.ai/docs/agent-api/building-agents/define-the-run.md]. It teaches the initial configuration of an agent request: its effort preset, standing system prompt, step limit and model.
The resource is a focused guide with Python, TypeScript and cURL examples. It links to separate documentation for prompting, tools, output formatting, effort levels and models.
Assessment
The guide is useful for avoiding two specific configuration mistakes: unintentionally replacing a preset's system prompt and giving a tool too few turns to complete its work. It also explains what happens when an agent reaches its step limit.
Its scope supports decisions about request configuration. It does not establish answer quality, production reliability, actual latency or the cost of a particular run.
Users
The intended readers are developers building applications that call Perplexity's Agent API. Beginners can follow a small request using effort="low"; experienced developers can use the explanations of prompt replacement, loop limits and model precedence.
Readers need enough programming or HTTP knowledge to send an authenticated request and inspect a response. Installation and account setup are not explained on this page.
Capabilities
The effort field selects a tuned bundle containing a model, system prompt, search configuration and tools. Individual settings can customize that starting point. The page demonstrates the low effort level but does not enumerate the other levels or their exact contents.
The instructions field supplies the agent's standing system prompt, including rules for role, tone, citations and grounding. It replaces the effort preset's prompt rather than appending to it; omitting it preserves that prompt.
The model field selects one model in provider/model format. The models field supplies an ordered fallback chain of up to five models, tried until one succeeds. When both fields are supplied, models takes precedence.
Using it
Requirements
The HTTP example sends JSON to [https://api.perplexity.ai/v1/agent] with a bearer token supplied through PERPLEXITY_API_KEY. The Python example imports Perplexity from perplexity; the TypeScript example imports it from @perplexity-ai/perplexity_ai.
The SDK examples construct a client without explaining credential loading. Required SDK versions, installation commands, account eligibility, service quotas and runtime versions are unknown from this page.
Mechanism
An agent run repeats model turns and tool use until it answers. One step consists of one model turn plus the tool calls made during that turn. max_steps limits the number of these tool-calling turns.
If the last permitted step calls tools, the agent makes an additional answer-only turn with tools disabled, using the results gathered so far. Reaching the limit therefore does not itself cause an error. A turn that answers without calling tools ends the run early.
Without an effort level, a request specifying model or models defaults to one step when max_steps is omitted. Effort levels provide their own step budgets. An explicit max_steps overrides the preset value, subject to the preset's ceiling for chat-style effort levels; numerical preset budgets and ceilings are not supplied.
Setup
The documented starting point is a client.responses.create request containing effort="low" and an input question, or the equivalent JSON sent to the HTTP endpoint. The SDK examples read the resulting response.output_text.
When adding instructions, include all standing rules the agent needs because this field replaces the preset prompt. Set max_steps explicitly when the planned tool sequence requires multiple turns. Use model or models when explicit engine selection is needed.
The page recommends request parameters rather than prose rules for machine-readable output and retrieval constraints, but the relevant parameter details are on linked pages.
Example
The main example asks for a thorough overview of the current state of solid-state battery commercialization using effort="low". Python and TypeScript versions call client.responses.create and print response.output_text; the cURL version sends the equivalent request to the agent endpoint.
A later Python example adds max_steps=20 to the same request. Twenty is an example setting, not a stated default. The page supplies request code without a resulting answer, citations, timing or execution results.
Assessment & evidence
Limitations
At max_steps=1, the agent can make one round of tool calls and then answer. It has no second tool-calling turn to act on returned results, such as fetching a search-result page, searching again or rerunning failed code.
The page says finance_search, and sandbox used with web_search, typically spend their first step loading tool instructions. A one-step limit can therefore leave little or no useful work completed. For direct-model requests enabling finance_search, the page recommends max_steps=3 or higher.
Exact effort configurations, available models, fallback failure conditions, tool schemas and structured-output parameters are not explained here. No evidence establishes how often a fallback succeeds or whether an answer remains adequate after the step limit is reached.
Reasoning
An effort preset reduces initial configuration because it supplies several related settings together. Explicit model selection is useful when the application needs control over the answering model, while a fallback chain allows later choices to be tried if earlier ones do not succeed.
The appropriate step limit depends on the sequence of work. A search followed directly by an answer needs less room than a sequence involving initialization, search, page retrieval and further tool use. The documented extra answer-only turn produces a response at the limit, but does not establish that the intended research or tool work is complete.
Alternatives
Within this guide, the main configuration choices are starting with an effort preset or specifying model or models directly. Presets can also be combined with individual overrides, so these approaches are not entirely separate.
The page provides no comparison with another provider, agent framework or competing guide. Relative cost, capability and performance against external alternatives are unknown.
Evidence
The evidence is the complete supplied capture of Perplexity's Define the run page at [https://docs.perplexity.ai/docs/agent-api/building-agents/define-the-run.md]. It includes configuration explanations, request examples, a model-selection table and notes about prompt processing and tool initialization.
This supports statements about documented API behavior. It contains no response logs, benchmark results or demonstrated tool outcomes, so those results cannot be inferred from the examples.
Access & freshness
Costs
Actual prices are unknown from the selected page. It says effort levels trade depth against latency and cost, and it links to a model catalog and pricing page without providing rates here.
The page states that system-prompt tokens are processed again at each loop step, so long instructions add repeated processing across tool calls. It recommends keeping that prompt lean. No per-token prices, tool charges, free allowance or monetary spending guarantee is established; max_steps is described as a limit on turns.
Rights
The selected page contains no explicit licence or redistribution permission for its documentation or code examples. Rights to redistribute those materials are therefore unknown.
Service terms, input and output ownership, data retention and model-provider terms are not established by this page.
Freshness
The supplied capture is dated 25 November 2026 at 17:01:58 UTC. The page itself provides no visible publication date, update date or SDK version requirement.
It directs readers to a separate effort-level page for preset contents and update management. Those update rules and the current model catalog are not established by the selected page.
Actions
Start with the low-effort example, decide whether to keep or replace its system prompt, and choose a step limit that allows for tool initialization and follow-up work. For direct-model finance_search requests, use the page's recommendation of at least three steps.
Consult the linked effort, model, tool and output-format documentation for configuration details absent here. Confirm current SDK requirements, pricing and service terms before integrating the API into an application.
