Build AI agents in Orq.ai: set instructions with Jinja or Mustache, pick models, and attach tools, knowledge bases, memory, and guardrails.
Configure every aspect of an agent before execution. For running agents, see Run Agents.Common use cases include customer support assistants, RAG-powered document Q&A, coding assistants, research and data extraction pipelines, and any multi-step AI workflow that needs tools, memory, and knowledge bases.
Create an Agent
AI Studio
API & SDK
MCP
CLI
AI Studio is the visual interface for building, configuring, and testing AI agents without writing code.
Open Agents in the Managed Agents section, then click Agent.
3
Configure the Agent
Select the model, set the Agent key, and describe the Agent. Choose Create with AI to pre-configure role and instructions, or Start from scratch for full manual control.AI Studio opens with a customizable template.
AI Studio has three panels:
AI Studio three-panel layout.
Settings (left): Set up the model, tools, context, evaluators, and constraints.
Instructions (center): Define what the agent does and how it behaves.
Playground (right): Chat with the agent and test its behaviour.
Save the configuration at any time using the Publish button.
The Agents API creates and manages internal Orq.ai Agents. Execute them through the Responses API with model: "agent/<key>". This management API does not use the A2A wire contract. To register an external A2A Agent or expose an internal Agent to A2A clients, see Agents Gateway.Prerequisites:
A Project in the workspace (used as the path for resources)
Use the Orq MCP server to manage agents directly from an AI code assistant.Find an existing agent:
Search for the "support-bot" agent in my workspace
The assistant uses search_entities with type: "agent" to locate agents by name or key.Retrieve full agent configuration:
Get the full configuration of the "support-bot" agent
The assistant uses get_agent to return instructions, model, tools, and all settings.Create an agent:
Create a customer support agent called "support-bot" in the Default/agents project. Use GPT-5.6 Sol with temperature 1 and give it a professional, concise tone.
The assistant uses create_agent with the specified key, path, model, model parameters, and instructions.
Create an agent with a minimal configuration using orq agents create:
To save a thinking mode on the Agent, set parameters.thinking. It applies on every run as if it were sent in the request. On Sonnet 5.5, between_tools streams progress updates between tool calls without up-front thinking:
See install and setup to get started with the CLI. Run orq agents update --help for the full flag reference.
Structured Output
Structured output makes the agent reply with JSON that matches a schema, so the response can be parsed instead of read.
AI Studio
API & SDK
CLI
Set Response Format in the Model panel, next to the model picker:
JSON Mode returns a JSON object. The instructions still have to ask for JSON.
JSON Schema opens a Schema dropdown that selects a JSON Schema Tool, and the agent answers with that tool’s schema.
The menu lists the formats the selected model supports. Response Format appears only for models that support JSON Mode or JSON Schema.
Set model.parameters.response_format in JSON and Python, or model.parameters.responseFormat in TypeScript. The three formats, their schema rules and strict enforcement are documented in Structured Outputs.
A fallback model is tried when the primary model fails, in the order the list holds. Once the last fallback fails too, the run returns that error.
AI Studio
API & SDK
Add models in the Fallback Models section of Settings. Fallback model appends the first available model, which is then changed in the entry together with its parameters, and the list holds up to five entries.Only models that support tool calling are offered.
Set fallback_models alongside model on the agent. Each entry is a model ID string, or an object with id, parameters, and retry:
The Instructions panel defines the agent’s behavior, goals, and personality. Write clear, exhaustive instructions to keep behavior consistent across executions.
Use the AI button to generate effective instructions for the agent.
Example: Customer Support Agent
You are an experienced customer support specialist for the SaaS company **{company_name}**.Your job is to provide clear, concise, and accurate answers to customer inquiries about {product_name}.Responses should be brief, no more than **150 words**, and include any necessary next-step actions.**Step-by-Step Instructions**1. **Read the query**: `{customer_query}`.2. **Extract the core problem** (e.g., password reset, API error, pricing).3. **Draft a concise answer**: no more than 150 words.4. **Add suggested next steps**: at most 3 actions the customer can take.5. **End with a friendly closing** and a reminder of available support channels (`{support_contact}`).
The key instruction fields on the agent object:
Field
Description
instructions
Main instructions for the agent’s behavior and goals
role
Agent’s responsibility and coverage, reinforced at execution
description
Used by other agents to discover and delegate to this agent
system_prompt
Additional system-level context injected before execution
Update instructions on an existing agent:
curl -X PATCH https://my.orq.ai/v2/agents/my-agent \ -H "Authorization: Bearer $ORQ_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "instructions": "You are a helpful assistant. Be concise and accurate.", "role": "General Assistant", "description": "A general-purpose assistant for answering questions and completing tasks"}'
from orq_ai_sdk import Orqimport oswith Orq(api_key=os.getenv("ORQ_API_KEY", "")) as orq: agent = orq.agents.update( agent_key="my-agent", instructions="You are a helpful assistant. Be concise and accurate.", role="General Assistant", description="A general-purpose assistant for answering questions and completing tasks" )
import { Orq } from '@orq-ai/node';const orq = new Orq({ apiKey: process.env['ORQ_API_KEY'] ?? '' });await orq.agents.update({ instructions: 'You are a helpful assistant. Be concise and accurate.', role: 'General Assistant', description: 'A general-purpose assistant for answering questions and completing tasks'}, 'my-agent');
Show me the current instructions for "support-bot", then update them to always respond in the user's language
The assistant uses get_agent to retrieve the current instructions, then update_agent with the revised instructions field.Set role and description:
Update the "support-bot" agent to add a detailed description of its capabilities for use in multi-agent workflows
The assistant uses update_agent with the description field.
orq agents update my-agent \ --instructions "You are a helpful assistant. Be concise and accurate." \ --role "General Assistant" \ --description "A general-purpose assistant for answering questions and completing tasks"
See install and setup to get started with the CLI. Run orq agents update --help for the full flag reference.
Role and Description
Role: Defines the agent’s responsibility and coverage. Sent to the agent during execution to reinforce its perimeter.
Description: Used by other agents in multi-agent setups to understand what this agent can do. Write a detailed description so orchestrators delegate correctly.
Skills can be used with agents in two ways:Static reference: Use {{skill.key}} directly in the instruction text to inject a Skill’s content at that position on every run. Use this for content that should always be present, such as a company policy or a standard output format.On-demand attachment: Click Skills in the Skills section of the agent configuration to attach a Skill.
Attaching a Skill to an agent for on-demand reference.
Attached Skills are available for the agent to invoke when relevant, without being statically embedded in the instructions. Any update to a Skill propagates automatically to every agent that references or has it attached.
Variables and Templates
AI Studio
API & SDK
MCP
CLI
Reference dynamic values in agent instructions using double braces: {{variableName}}. Pass a key-value map in the variables field at invocation time and Orq.ai substitutes each variable before execution.
Variables defined in the agent instructions are highlighted in the AI Studio.
Orq.ai supports three template engines. Select an engine from the Template Engine section:
Text (default): variables use {{double_braces}} syntax.
Jinja: full templating with conditionals, loops, filters, and more.
Mustache: logic-less templating with sections.
Selecting an engine in the Template Engine section.
Jinja example
Instructions template:
You are a support assistant for {{company_name}}.{% if user_tier == "premium" %}{{customer_name}} is a premium customer. Greet them by name and let them know they have priority support.{% else %}{{customer_name}} is on the free plan. Standard response time is 24 hours.{% endif %}
You are a support assistant for {{company_name}}.{{# is_premium}}{{customer_name}} is a premium customer. Priority support with a 2-hour SLA.{{/ is_premium}}{{^ is_premium}}{{customer_name}} is on the free plan. Standard response time is 24 hours.{{/ is_premium}}
Update "support-bot" instructions to use {{user_name}}, {{user_role}}, and {{company_name}} variables
The assistant uses update_agent with the revised instructions field containing {{variable}} placeholders.
Step 1 — add {{variable}} placeholders to the agent’s instruction template:
orq agents update my-agent \ --instructions "You are a helpful assistant for {{user_name}} ({{user_role}}) at {{company_name}}. Be concise and accurate."
Step 2 — supply variable values at runtime:
orq responses create \ --model agent/my-agent \ --input '"I need help with my account."' \ --variables user_name="John Smith" --variables user_role=admin --variables company_name="Acme Corp"
See install and setup to get started with the CLI. Run orq agents update --help and orq responses create --help for the full flag reference.
Each invocation records the values it received as the orq.variables span attribute. Open Traces, select the step, and read them under Metadata.
Add Tools
AI Studio
API & SDK
MCP
CLI
Tools extend the agent’s capabilities by allowing it to interact with external systems, execute code, or fetch information. Add tools from the Tool selection modal.
Browse the tool library to find all tools available in the Project.
Declare tools in the settings.tools array when creating or updating an agent.
Add a standard tool to an agent:
Add the google_search and current_date tools to the "research-bot" agent
The assistant uses update_agent with the updated settings.tools array.Add a custom tool by key:
Add the HTTP tool with key "weather_api" to the "weather-bot" agent
The assistant uses update_agent with {"type": "http", "key": "weather_api"} in settings.tools.
Agent instructions must explicitly mention the available tools so the model knows when and how to invoke them.The model will not use tools unless the instructions clearly describe:
What each tool does
When to use it
How to call it
Example: Web Search Agent
You are a research assistant. Your job is to find current information.**Available Tools:**1. **google_search** - Search the internet for information - Use this when you need current information or factual data - Provide clear search queries - Example: When asked "What are the latest AI developments?", call google_search with "latest AI developments 2025"
See install and setup to get started with the CLI. Run orq agents update --help for the full flag reference.
Advisor and Sidekick Tools
An Agent runs every step of a conversation on a single model. That model has to be affordable enough for routine steps, yet capable enough for the hardest reasoning step in the run. Sizing the model for the hardest step makes every step expensive; sizing it for routine steps makes the agent fail exactly when quality matters most. Self-contained subtasks cause a related problem: drafting or summarizing inside the main loop fills the context window with intermediate work the conversation does not need.The Advisor and Sidekick tools solve this by giving the agent a second model, configured at design time, that it can call mid-run:
Advisor: the agent consults a more capable model when it is stuck or faces a high-stakes decision. The advisor receives the recent conversation transcript plus the agent’s question and returns short, actionable guidance. The agent stays in control and produces the final answer itself.
Sidekick: the agent delegates a concrete subtask (drafting, extraction, summarization, transformation) to a second model and receives only the finished result. The sidekick does not see the conversation, so the subtask runs in isolation and the main context stays small.
This enables a cost and quality mix inside one agent: run a fast, low-cost executor model and escalate to a stronger model only in the moments that need it, without building a separate sub-agent.For both tools, the secondary model and its parameters are fixed in the tool configuration. The agent only supplies the question or task at run time. Each secondary call is metered separately and appears as a nested span in Traces. When the secondary model call fails, the agent receives an error message as the tool result and the run continues.In AI Studio, add Advisor or Sidekick from the tool library and open the tool to configure the secondary model and parameters. Via the API, set the fields in the tool’s configuration object.
Advisor
The advisor receives the newest conversation turns within the max_transcript_tokens budget, plus the agent’s question and optional context, and replies with concise advice.
Maximum advisor calls per run. 0 or omitted: unlimited.
max_transcript_tokens
No
Estimated token budget for the conversation transcript sent to the advisor. The newest turn is always included. 0 or omitted: full transcript.
max_tokens
No
Maximum output tokens for the secondary model. 0 or omitted: provider default.
temperature
No
Sampling temperature, 0 to 2. Omitted: provider default.
reasoning_effort
No
One of none, minimal, low, medium, high, xhigh, max. Omitted: provider default.
Sidekick
The sidekick receives only the task and optional context the agent supplies, together with the configured system prompt and output format. It returns the finished result and nothing else.
{ "type": "sidekick", "configuration": { "model": "openai/gpt-5.6-luna", "max_tokens": 1024, "system_prompt": "You are a meticulous copy editor.", "output_format": "a concise bulleted list" }}
Maximum sidekick calls per run. 0 or omitted: unlimited.
system_prompt
No
Replaces the default sidekick system prompt. Omitted: platform default.
output_format
No
Free-form guidance for the shape of the result, for example a concise bulleted list or valid JSON.
max_tokens
No
Maximum output tokens for the secondary model. 0 or omitted: provider default.
temperature
No
Sampling temperature, 0 to 2. Omitted: provider default.
reasoning_effort
No
One of none, minimal, low, medium, high, xhigh, max. Omitted: provider default.
Mention the tools in the agent instructions so the model knows when to use them, for example: “When unsure about a legal or pricing decision, ask the advisor before answering” or “Delegate document summarization to the sidekick and use its result.”
The model field is required. When the tool is added without a configured model, tool calls return a configuration error to the agent instead of advice or a result.
Function Tools
Function tools let the model call code that runs in the application invoking the agent, not on the Orq.ai platform. See Choosing a tool type for when to use one, Function Tool to create one, and Use Tools for the tool loop the application runs to execute the call and return the result.Reference a pre-created Function tool by its key:
Unlike Deployments, a Knowledge Base attached to an agent is not queried on every request. The agent decides when to use the query_knowledge_base tool based on context.
The Knowledge Base description must be explicit so the agent knows when to query it.
For more on building Knowledge Bases for Agents, see Knowledge Bases.
Add the knowledge_bases array to the agent configuration. Include the retrieve_knowledge_bases and query_knowledge_base tools so the agent can discover and query them.
curl -X POST https://my.orq.ai/v2/agents \ -H "Authorization: Bearer $ORQ_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "key": "knowledge-agent", "role": "Knowledge Base Assistant", "description": "Answers questions from the attached knowledge bases", "instructions": "Help the user. First use retrieve_knowledge_bases to see what knowledge sources are available, then query_knowledge_base to find relevant information.", "path": "Default/agents", "model": { "id": "openai/gpt-5.6-luna" }, "settings": { "max_iterations": 5, "max_execution_time": 600, "tools": [ { "type": "retrieve_knowledge_bases" }, { "type": "query_knowledge_base" } ] }, "knowledge_bases": [ { "knowledge_id": "my_knowledge_base" } ]}'
from orq_ai_sdk import Orqimport oswith Orq(api_key=os.getenv("ORQ_API_KEY", "")) as orq: agent = orq.agents.create( key="knowledge-agent", role="Knowledge Base Assistant", description="Answers questions from the attached knowledge bases", instructions="Help the user. First use retrieve_knowledge_bases to see what knowledge sources are available, then query_knowledge_base to find relevant information.", path="Default/agents", model={"id": "openai/gpt-5.6-luna"}, settings={ "max_iterations": 5, "max_execution_time": 600, "tools": [ {"type": "retrieve_knowledge_bases"}, {"type": "query_knowledge_base"} ] }, knowledge_bases=[{"knowledge_id": "my_knowledge_base"}] )
import { Orq } from '@orq-ai/node';const orq = new Orq({ apiKey: process.env['ORQ_API_KEY'] ?? '' });await orq.agents.create({ key: 'knowledge-agent', role: 'Knowledge Base Assistant', description: 'Answers questions from the attached knowledge bases', instructions: 'Help the user. First use retrieve_knowledge_bases to see what knowledge sources are available, then query_knowledge_base to find relevant information.', path: 'Default/agents', model: { id: 'openai/gpt-5.6-luna' }, settings: { maxIterations: 5, maxExecutionTime: 600, tools: [ { type: 'retrieve_knowledge_bases' }, { type: 'query_knowledge_base' } ] }, knowledgeBases: [{ knowledgeId: 'my_knowledge_base' }]});
Agents must use retrieve_knowledge_bases before querying. Guide the agent with instructions like: “First use retrieve_knowledge_bases to see what knowledge sources are available, then query_knowledge_base to find relevant information.”
Add the knowledge base with ID "product-docs" to the "support-bot" agent and make sure the query and retrieve tools are included
The assistant uses update_agent with the knowledge_bases array and adds query_knowledge_base and retrieve_knowledge_bases to settings.tools.
Attach a Knowledge Base to an existing agent using orq agents update:
orq agents update my-agent \ --instructions "Help the user. First use retrieve_knowledge_bases to see what knowledge sources are available, then query_knowledge_base to find relevant information." \ --settings '{"max_iterations": 5, "max_execution_time": 600, "tools": [{"type": "retrieve_knowledge_bases"}, {"type": "query_knowledge_base"}]}' \ --knowledge-bases '[{"knowledge_id": "my_knowledge_base"}]'
See install and setup to get started with the CLI. Run orq agents update --help for the full flag reference.
Connect Memory Stores
AI Studio
API & SDK
MCP
CLI
Attach a Memory Store to give the agent persistent memory across conversations.
Memory Stores are created and managed through the API. To learn more, see Using Memory Stores.
To use a Memory Store correctly, a Memory Entity ID must be sent during agent execution. This entity ID scopes memories to a specific user or session.
For more on using Memory Stores with Agents, see the Memory Stores documentation.
Add the memory_stores array to the agent configuration. Include the memory tools so the agent can discover, query, write, and delete memories.
curl -X POST https://my.orq.ai/v2/agents \ -H "Authorization: Bearer $ORQ_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "key": "memory-agent", "role": "Memory Assistant", "description": "Remembers customer details across conversations", "instructions": "You have access to user memories. Use retrieve_memory_stores to find what stores are available, then query_memory_store to search for relevant information before responding.", "path": "Default/agents", "model": "openai/gpt-5.6-luna", "settings": { "max_iterations": 5, "max_execution_time": 300, "tools": [ { "type": "retrieve_memory_stores" }, { "type": "query_memory_store" }, { "type": "write_memory_store" }, { "type": "delete_memory_document" } ] }, "memory_stores": ["customer_information"]}'
from orq_ai_sdk import Orqimport oswith Orq(api_key=os.getenv("ORQ_API_KEY", "")) as orq: agent = orq.agents.create( key="memory-agent", role="Memory Assistant", description="Remembers customer details across conversations", instructions="You have access to user memories. Use retrieve_memory_stores to find what stores are available, then query_memory_store to search for relevant information before responding.", path="Default/agents", model="openai/gpt-5.6-luna", settings={ "max_iterations": 5, "max_execution_time": 300, "tools": [ {"type": "retrieve_memory_stores"}, {"type": "query_memory_store"}, {"type": "write_memory_store"}, {"type": "delete_memory_document"} ] }, memory_stores=["customer_information"] )
import { Orq } from '@orq-ai/node';const orq = new Orq({ apiKey: process.env['ORQ_API_KEY'] ?? '' });await orq.agents.create({ key: 'memory-agent', role: 'Memory Assistant', description: 'Remembers customer details across conversations', instructions: 'You have access to user memories. Use retrieve_memory_stores to find what stores are available, then query_memory_store to search for relevant information before responding.', path: 'Default/agents', model: 'openai/gpt-5.6-luna', settings: { maxIterations: 5, maxExecutionTime: 300, tools: [ { type: 'retrieve_memory_stores' }, { type: 'query_memory_store' }, { type: 'write_memory_store' }, { type: 'delete_memory_document' } ] }, memoryStores: ['customer_information']});
Memory stores do not automatically save all information from conversations. Explicitly instruct the agent what to save. Without clear save instructions, the agent may miss important details.
Pass a memory.entity_id at execution time to scope memories to a specific user or session. See Run Agents for execution details.
Attach a memory store to an agent:
Add the "customer_information" memory store to the "support-bot" agent and include all four memory tools
The assistant uses update_agent with the memory_stores array and the four memory tools in settings.tools.
orq agents update my-agent \ --instructions "You have access to user memories. Use retrieve_memory_stores to find what stores are available, then query_memory_store to search for relevant information before responding." \ --settings '{"max_iterations": 5, "max_execution_time": 300, "tools": [{"type": "retrieve_memory_stores"}, {"type": "query_memory_store"}, {"type": "write_memory_store"}, {"type": "delete_memory_document"}]}' \ --memory-stores customer_information
See install and setup to get started with the CLI. Run orq agents update --help for the full flag reference.
Configure Evaluators and Guardrails
AI Studio
API & SDK
MCP
CLI
Evaluators measure agent performance against defined criteria. Guardrails can block execution when an evaluation fails.
Only pre-configured Evaluators can be attached to agents. To see available standard evaluators or create custom ones, see Evaluators.
Select an evaluator in the Evaluators section, or a guardrail in the Guardrails section.
Configure evaluation parameters:
Input or Output: whether to evaluate the agent’s input or its output.
Sample Rate (Evaluators only): the percentage of executions that trigger evaluation, 1 to 100, defaulting to 50. A guardrail in the Guardrails section ignores it and runs on every request.
Evaluators run automatically during task execution and provide performance metrics.
Output Guardrails and Streaming: When an agent is invoked with streaming enabled, output guardrails are deactivated because they cannot run on partial chunks.
Attach evaluators and guardrails to an agent using the evaluators and guardrails fields inside settings in the create or update payload.For the full schema of evaluator and guardrail configuration, see the Create Agent API reference and Evaluators.
Use PATCH /v2/agents/{key} to add or update evaluators and guardrails on an existing agent without recreating it.
Add an evaluator to an agent:
Add the "response-quality" LLM evaluator to the "support-bot" agent, configured for output evaluation
The assistant uses update_agent with the evaluators field.Add a guardrail:
Add a guardrail to "support-bot" that blocks responses when the toxicity evaluator score is above 0.8
The assistant uses update_agent with the guardrails field.
evaluators and guardrails are fields inside settings, reachable through the existing --settings flag on orq agents update:
See install and setup to get started with the CLI. Run orq agents update --help for the full flag reference.
Evaluators and guardrails attached to an agent run with the Evaluator’s timeout, or 60 seconds if it has none. The settings.evaluators[] and settings.guardrails[] entries have no timeout field, so the execution limit cannot be changed on the agent.To bound a guardrail explicitly, pass it inline on the invoke request instead:
Request-level guardrails are honored on agent invokes, and each entry carries its own timeout, defaulting to the Evaluator’s timeout, or 60 seconds if it has none, and capped at 10 minutes. See Guardrail timeout. An output guardrail does not run when the agent is invoked with stream: true, because it cannot gate a response that has already been streamed.
An evaluator attached both on the agent and inline runs twice, because Orq.ai does not dedupe agent settings against the request. Remove it from the agent when using the inline workaround.
Configure Runtime Constraints
AI Studio
API & SDK
MCP
CLI
Control resource usage and execution limits from the Runtime Constraints section.
Constraint
Description
Max. Turns
Maximum number of LLM reasoning iterations per response. Defaults to 100.
Max. Execution Time
Maximum accumulated model time across iterations, in seconds. Defaults to 600.
Max. Turns and Max. Execution Time compound: an agent requiring many reasoning steps can hit both limits simultaneously. max_execution_time counts only LLM thinking time; tool call and sub-agent call duration is excluded. Start conservative and increase as needed.
Agents are run and scaled by Orq.ai. No infrastructure setup required.
Set constraints in the settings object:
Field
Type
Description
max_iterations
integer
Maximum number of LLM reasoning iterations. Minimum 1, maximum 100, default 100.
max_execution_time
integer
Maximum accumulated model time across iterations, in seconds. Excludes tool call and sub-agent call time. Minimum 2, maximum 600, default 600.
max_cost
number
Maximum cost in USD for the agent execution. The agent stops when accumulated cost reaches the limit. Minimum 0, default 0, which means no cap. Only supported in v3 responses.
See install and setup to get started with the CLI. Run orq agents update --help for the full flag reference.
Expose an Agent via A2A
Each internal Agent has its own endpoint on the A2A Protocol, so an application or agent framework built outside Orq.ai can call it by URL. Open the Agent in AI Studio, expand Expose via A2A in the Settings panel, and copy the connection details.
The Expose via A2A panel with the Agent URL, the Agent card URL, and the scope the calling API key needs.
Value
Use
Agent URL
Endpoint an A2A client sends messages to
Agent card URL
Discovery document the client reads first, including the Agent’s skills
The calling API key needs a2a.execute, which comes with All permissions or Restricted with Write access to External agents, and access to the Agent’s Project. Create the key under API Keys.
Call the Agent from an A2A client
An A2A client reads the card, then sends messages to the Agent URL. This client prints the Agent’s answer, or the task state when the Agent needs more input, and reads the key from ORQ_API_KEY:
Install the client library with pip install a2a-sdk. Transport bindings, message shapes, and ingress limits are on Agents Gateway.
Versions
AI Studio
API & SDK
MCP
CLI
The Versions toggle shows the full history of all published agent configurations. Select Versions next to Settings in the left panel to open it.
The Versions panel shows the full history of published agent configurations with environment assignments.
Each version entry shows the version number, author, timestamp, optional commit message, and any assigned environment badges (e.g. latest, production).
A PATCH publishes a new version when it changes the agent’s run definition, such as its instructions, role, model, tools or execution settings. The default step is a patch bump, so an agent at 1.0.0 moves to 1.0.1.Changes outside the run definition, such as the display_name, a path that moves the agent to another project, or variables, keep the current version. A PATCH that repeats the stored configuration publishes nothing.Set versionIncrement to major, minor or patch to pick the step: minor turns 1.2.3 into 1.3.0, and major into 2.0.0. versionDescription (up to 300 characters) becomes the commit message on the version row in the Versions panel.The newest version is what @latest and an unpinned key resolve to, so the next unpinned invoke runs the new configuration. A version assigned to an environment keeps its existing tag.
from orq_ai_sdk import Orqimport oswith Orq(api_key=os.getenv("ORQ_API_KEY", "")) as orq: agent = orq.agents.update( agent_key="my-agent", instructions="Escalate refunds above $500 to a human.", version_increment="minor", version_description="Tighter refund escalation", ) print(agent.version)
import { Orq } from '@orq-ai/node';const orq = new Orq({ apiKey: process.env['ORQ_API_KEY'] ?? '' });const agent = await orq.agents.update( { instructions: 'Escalate refunds above $500 to a human.', versionIncrement: 'minor', versionDescription: 'Tighter refund escalation', }, 'my-agent',);console.log(agent.version);
By default, invoking an agent routes to the version tagged latest. To target a specific version, append @version-number to the agent key. Route by environment with @environment-name.A continuation request resolves the version again: a turn that passes previous_response_id with an unpinned key runs the newest version at the time of that turn, while an @version-number runs that version. A run resolves the version once when it starts and keeps it until it finishes, even if a new version is published while it runs.
@environment-name follows the tags already assigned to a version. New environment tags can no longer be assigned (Assigning Environments): to publish a version, create an agent deployment and call it with agent/<agent_key>@<deployment_key>.
Show me all published versions of the "support-bot" agent
The assistant uses get_agent to retrieve the agent including its version history.Check the current configuration of a specific version:
What are the instructions on version 3.0.0 of the "support-bot" agent?
The assistant uses get_agent with the version-pinned key support-bot@3.0.0.Publish a new version:
Update the "support-bot" instructions to escalate refunds above $500 to a human, with a minor version bump and the description "Tighter refund escalation"
The assistant uses update_agent with versionIncrement and versionDescription inside updates on every call: the fields name the version a configuration change publishes.
Publish a new version by changing the configuration and naming the bump:
orq agents update my-agent \ --instructions 'Escalate refunds above $500 to a human.' \ --version-increment minor \ --version-description "Tighter refund escalation"
See install and setup to get started with the CLI. Run orq responses create --help and orq agents update --help for the full flag reference.
Comparing Changes
Click on any version to open the Compare Changes view. Use the From and To dropdowns to compare any two versions, including Current (unpublished working changes).
Compare Changes shows a side-by-side diff between any two versions.
Two view modes are available:
Instructions: diff of agent instructions only.
Snapshot: full JSON diff of the complete agent configuration.
Use the button to toggle between side-by-side and unified diff layouts.
Restoring a Version
Open Compare Changes (see above), then click Restore next to an older version to load it into the current working draft.Restore does not publish automatically: the agent is loaded into the draft as unpublished changes, and Publish still needs to be clicked for it to become a real version. Earlier versions are never deleted, so restoring is always reversible.Restore replaces the full agent configuration, including connected Knowledge Bases, Memory Stores, Team of Agents, Skills, Variables, and Tools.
If there are unpublished changes already, a confirmation dialog asks for confirmation before overwriting them.
Assigning Environments
Agent deployments replace environment tags as the way to publish an agent version. Tags already assigned to a version keep their badges and keep routing, so agent/my-agent@production still resolves to the tagged version, but new environments can no longer be assigned to agent versions.To pin a version for callers, create an agent deployment and call it with agent/<agent_key>@<deployment_key>. When a deployment key and an environment tag have the same name, the deployment is used.
Environment tags are visible next to version number.
To learn more about environments, see Environments.
Test in the Playground
The Playground panel sends messages to the agent using its current working configuration, including unpublished changes, so instructions, tools, and model changes can be tested before publishing.
Send a message to see the agent’s response, including any tool calls it makes.
Click Chat History to switch between, rename, or delete previous test conversations.
Use the Variables button above the message input to test declared variables without calling the API. The button shows a count once the instructions declare one or more variables; click a variable to set its value, using Open in panel for longer values. Sent values persist with the conversation until changed.
Testing an agent's declared variables from the Playground.
The Variables panel lists variables already declared with {{variableName}} in the instructions. Adding a new variable name is not supported from this panel; add the placeholder to the instructions first.
Turn on Expose in Playground in the Playground section of Settings to offer the agent as a target in the workspace Playground, so it can be tested without opening the agent. The switch is part of the draft, so the agent reaches the Playground target list once published. Registered external agents and experiment agents stay out of that list.
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Orq.ai Documentation","description":"Documentation for Orq.ai, the EU-built control plane for enterprise AI: govern every LLM and MCP call with the AI Gateway, and ship backlog work with the Software Factory.","colors":{"primary":"#027f6b","light":"#00d2b5","dark":"#027f6b"},"logo":{"light":"https://mintcdn.com/orqai/OG_14djpK9Yasgfk/images/Orq_ai_Symbol_Dark.svg?fit=max\u0026auto=format\u0026n=OG_14djpK9Yasgfk\u0026q=85\u0026s=d01651850182afdbc6309808b688d470","dark":"https://mintcdn.com/orqai/BYq_L5I_ZDBWL_Pf/images/Orq_ai_Symbol_Light.svg?fit=max\u0026auto=format\u0026n=BYq_L5I_ZDBWL_Pf\u0026q=85\u0026s=3e372f93174202f20c31d2c045af92b9","href":"/ai-gateway/get-started/introduction"},"favicon":"https://mintcdn.com/orqai/rmwcfFw4PPljHRCz/favicon.svg?fit=max\u0026auto=format\u0026n=rmwcfFw4PPljHRCz\u0026q=85\u0026s=1827beca4e1fb46e074d8bda067f3fb1","api":{"openapi":"openapi.json","examples":{"languages":["curl","typescript","python"]}},"background":{"color":{"light":"#f7f6f5","dark":"#171717"}},"navbar":{"links":[],"primary":{"type":"button","label":"Get Started","href":"https://my.orq.ai/auth/signup"}},"footer":{"socials":{"github":"https://github.com/orq-ai","x":"https://x.com/orq_ai","linkedin":"https://www.linkedin.com/company/orqai","website":"https://orq.ai"}},"seo":{"metatags":{"author":"Orq.ai","og:type":"website","og:site_name":"Orq.ai Documentation","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@orq_ai","twitter:creator":"@orq_ai","viewport":"width=device-width, initial-scale=1.0","robots":"index, follow","language":"English"},"organization":{"id":"https://docs.orq.ai/#organization","name":"Orq.ai","legalName":"Orq.AI Holding B.V.","url":"https://orq.ai","logo":"https://docs.orq.ai/images/Orq_ai_Symbol_Dark.svg","sameAs":["https://github.com/orq-ai","https://x.com/orq_ai","https://www.linkedin.com/company/orqai/"]},"indexing":"all"},"fonts":{"heading":{"family":"ES Klarheit Kurrent Semibold","weight":600,"source":"https://framerusercontent.com/assets/HiovZWjG27S5NQhE8dyeECDMc.woff2","format":"woff2"},"body":{"family":"Inter","weight":400,"source":"fonts/inter-latin-400-normal.woff2","format":"woff2"}},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":true},"contextual":{"options":["copy","download-spec","chatgpt","claude","view"],"display":"header"},"interaction":{"drilldown":true},"markdown":{"instructions":"Orq.ai is the control plane for model and MCP traffic: one key reaches the workspace's enabled models, MCP servers, and resources. The setup depends on where the agent runs.\nHosted assistant (ChatGPT, claude.ai, a hosted sandbox): install nothing. Tell the human to add https://my.orq.ai/v2/mcp as a remote MCP connector and finish the Orq.ai sign-in. With OAuth, send no Authorization header; otherwise send an API key as a bearer token.\nLocal coding agent (Claude Code, Codex, Cursor, OpenCode): run `curl -fsSL https://cli.orq.ai/install.sh | sh`. It installs the CLI and runs `orq setup`, which signs in, writes a project-scoped key to `~/.orq/env`, and wires the detected agents through the AI Gateway. It can also add the Orq MCP server and Orq Skills, the workflows for agents, evaluations, and traces: https://docs.orq.ai/ai-studio/integrations/code-assistants/orq-skills.md. Verify with `orq status`.\nHeadless or CI: read `ORQ_API_KEY` from the environment; a human creates the key at https://docs.orq.ai/ai-studio/organization/api-keys.md.\nSend model traffic to https://my.orq.ai/v3/router with `Authorization: Bearer $ORQ_API_KEY`; the Anthropic SDK uses https://my.orq.ai/v3/anthropic. New integrations go on `/v3/router`: `/v2/router` stays published for backward compatibility, and `orq.prompt` works only on `/v2/router/chat/completions`.\nEnable a model for the workspace and use its exact `provider/model` id. `POST /v2/workspace-models` enables a model, and a call fails while the workspace has neither credits nor a provider key.\nOn `/chat/completions`, a reasoning model rejects `tools` with a `reasoning_effort` other than `none`; `/responses` keeps reasoning.\nOn a failure, branch on `error.code` and follow `error.doc_url`; a budget rejection answers 429."},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"orqai","hasAudioNarration":false,"actualSubdomain":"orqai","customDomains":["docs.orq.ai"],"gitSource":{"type":"github","owner":"orq-ai","repo":"orquesta-web","deployBranch":"main","contentDirectory":"documentation/mintlify","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b076209aa6ade3866463a40","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"API Reference","count":461},{"language":"default","tag":"Platform APIs","count":292},{"language":"default","tag":"Integrations","count":93},{"language":"default","tag":"Orq SDK","count":82},{"language":"default","tag":"Management APIs","count":79},{"language":"default","tag":"SDK Reference","count":79},{"language":"default","tag":"AI Gateway","count":71},{"language":"default","tag":"Cookbooks","count":34},{"language":"default","tag":"Administration","count":32},{"language":"default","tag":"Model Providers","count":31}],"searchSettings":{"maxResults":15}},"assistantConfig":{"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"deflection":{"enabled":true,"email":"support@orq.ai","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":".nav-anchor img{border-radius:50%}.ig-root{scroll-margin-top:6rem}.ig-search{width:100%;padding:10px 14px 10px 38px;border-radius:8px;border:1px solid rgba(0, 0, 0, 0.15);font-size:14px;outline:none;margin-bottom:20px;background:transparent;box-sizing:border-box;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21 21-4.35-4.35M17 11A6 6 0 1 1 5 11a6 6 0 0 1 12 0Z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:12px center}.dark .ig-search{border-color:rgba(255, 255, 255, 0.15)}.ig-search:focus{border-color:#027f6b}.ig-tabs{display:flex;border-bottom:1px solid rgba(0, 0, 0, 0.1);margin-bottom:20px;gap:0}.dark .ig-tabs{border-bottom-color:rgba(255, 255, 255, 0.1)}.ig-tab{padding:8px 16px;background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;font-size:14px;font-weight:500;color:#888;white-space:nowrap}.ig-tab:hover{color:#027f6b}.dark .ig-tab:hover{color:#677F78}.ig-tab-active{border-bottom-color:#027f6b!important;color:#027f6b!important}.dark .ig-tab-active{border-bottom-color:#677F78!important;color:#677F78!important}.ig-grid{display:grid;grid-template-columns:repeat(4, 1fr);gap:6px}@media (max-width: 768px){.ig-grid{grid-template-columns:repeat(3, 1fr)}}@media (max-width: 480px){.ig-grid{grid-template-columns:repeat(2, 1fr)}}.ig-card{display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid rgba(0, 0, 0, 0.1);border-radius:6px;text-decoration:none!important;color:inherit!important;font-size:14px;font-weight:500;transition:background 0.12s, border-color 0.12s}.ig-card:hover{background:rgba(2, 127, 107, 0.05);border-color:rgba(2, 127, 107, 0.25)}.dark .ig-card{border-color:rgba(255, 255, 255, 0.1)}.dark .ig-card:hover{background:rgba(103, 127, 120, 0.1);border-color:rgba(103, 127, 120, 0.3)}.ig-card-icon{width:20px;height:20px;object-fit:contain;flex-shrink:0}.ig-tab-count{display:inline-flex;align-items:center;justify-content:center;margin-left:6px;padding:0 5px;min-width:18px;height:18px;border-radius:9px;font-size:11px;font-weight:600;background:rgba(0, 0, 0, 0.08);color:inherit}.dark .ig-tab-count{background:rgba(255, 255, 255, 0.12)}.ig-tab-active .ig-tab-count{background:rgba(2, 127, 107, 0.15)}.dark .ig-tab-active .ig-tab-count{background:rgba(103, 127, 120, 0.25)}.ig-empty{text-align:center;padding:48px 24px;color:#999;font-size:14px;grid-column:1 / -1}kbd.key,kbd.key *{color:#fff!important}kbd.key{background:#242424;border-radius:5px;padding:2px 8px;font-size:0.85em;display:inline-flex;align-items:center;gap:6px;border:1px solid #3a3a3a;font-family:inherit;white-space:nowrap}#sidebar-content .flex-1:has(>svg.flex-shrink-0){flex:none!important}#sidebar-content{width:16rem!important;min-width:16rem!important}@media (min-width: 1024px){.lg\\:pl-56{padding-left:16rem!important}}.topbar-right-container nav[aria-label=\"Main\"] .navbar-link a,.topbar-right-container nav[aria-label=\"Main\"] .navbar-link a:hover{background-color:transparent!important}@media (min-width: 1024px){.topbar-right-container nav[aria-label=\"Main\"] ul{gap:1rem!important}.topbar-right-container nav[aria-label=\"Main\"] .navbar-link a{padding-left:0!important;padding-right:0!important}#page-title{font-size:2rem!important;line-height:1.2!important}}.nav-tabs-item:has(a[href^=\"/reference\"]){display:none!important}#navbar .nav-tabs-item[href=\"/ai-studio/integrations/overview\"]{position:relative}#navbar .nav-tabs-item[href=\"/ai-studio/integrations/overview\"]::before{content:'';position:absolute;top:50%;left:-12px;transform:translateY(-50%);height:55%;width:1px;background:rgba(0, 0, 0, 0.15)}.dark #navbar .nav-tabs-item[href=\"/ai-studio/integrations/overview\"]::before{background:rgba(255, 255, 255, 0.15)}@media (min-width: 1280px){#content-container{padding-left:3rem!important;padding-right:2rem!important}#content-side-layout{max-width:20rem!important}#content-area{width:calc(100% - 20rem)!important}}.md-export-list{display:none}@font-face{font-family:'Inter';src:url('/fonts/inter-latin-400-normal.woff2') format('woff2');font-style:normal;font-weight:400;font-display:optional}"}]}
{"page":{"pagePath":"ai-studio/ai-engineering/build-agents","slug":"/ai-studio/ai-engineering/build-agents","pageMetadata":{"title":"Build Agents","sidebarTitle":"Build Agents","description":"Build AI agents in Orq.ai: set instructions with Jinja or Mustache, pick models, and attach tools, knowledge bases, memory, and guardrails.","keywords":["mustache","jinja","template engine","agent instructions"],"href":"/ai-studio/ai-engineering/build-agents"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Build AI agents in Orq.ai: set instructions with Jinja or Mustache, pick models, and attach tools, knowledge bases, memory, and guardrails.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,CodeGroup,Frame,Heading,Icon,Info,Note,OptimizedImage,Step,Steps,Tab,Table,Tabs,Tip,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Icon)_missingMdxReference(`Icon`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Configure every aspect of an agent before execution. For running agents, see `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/run-agents`,children:`Run Agents`}),`.`]}),`\n`,_jsx(_components.p,{children:`Common use cases include customer support assistants, RAG-powered document Q\u0026A, coding assistants, research and data extraction pipelines, and any multi-step AI workflow that needs tools, memory, and knowledge bases.`}),`\n`,_jsx(Heading,{level:`2`,id:`create-an-agent`,children:`Create an Agent`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`AI Studio`,icon:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=ac04dd509320d58ab9701cb6d6137733`,\"data-og-width\":`100`,width:`100`,\"data-og-height\":`100`,height:`100`,\"data-path\":`images/logos/ai-studio-round.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=280\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=d9df8d5b2ef07a766e62eaa0623240cd 280w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=560\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3c40989d2bc47d1ec6d05f8eb3a585dd 560w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=840\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=2c40a18399d00e68a15d7d1262484486 840w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3e853add10f479adccee3068427de43d 1100w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=71d1130736022278f4de6d95e7583c9b 1650w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=41a312377a09cf0f6da1edb9b02b695c 2500w`,id:`ai-studio`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`AI Studio`}),` is the visual interface for building, configuring, and testing AI agents without writing code.`]}),_jsxs(Steps,{children:[_jsx(Step,{title:`Navigate to the AI Studio`,children:_jsxs(_components.p,{children:[`Open `,_jsx(_components.a,{href:`https://my.orq.ai`,children:`the AI Studio`}),`.`]})}),_jsx(Step,{title:`Create a new Agent`,children:_jsxs(_components.p,{children:[`Open `,_jsx(_components.strong,{children:`Agents`}),` in the `,_jsx(_components.strong,{children:`Managed Agents`}),` section, then click `,_jsxs(`kbd`,{children:[_jsx(Icon,{icon:`plus`}),` Agent`]}),`.`]})}),_jsxs(Step,{title:`Configure the Agent`,children:[_jsxs(_components.p,{children:[`Select the model, set the `,_jsx(_components.strong,{children:`Agent key`}),`, and describe the Agent. Choose `,_jsx(_components.strong,{children:`Create with AI`}),` to pre-configure role and instructions, or `,_jsx(_components.strong,{children:`Start from scratch`}),` for full manual control.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/xcLYpNxifrsLt2a_/images/demo-agent-studio.png?fit=max\u0026auto=format\u0026n=xcLYpNxifrsLt2a_\u0026q=85\u0026s=dc2818fdc6e972483884706095891dcf`,alt:`Create Agent dialog with the Create with AI and Start from scratch tabs, and fields for Select model, Agent key, and Description.`,\"data-og-width\":`754`,width:`754`,\"data-og-height\":`958`,height:`958`,\"data-path\":`images/demo-agent-studio.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/xcLYpNxifrsLt2a_/images/demo-agent-studio.png?w=280\u0026fit=max\u0026auto=format\u0026n=xcLYpNxifrsLt2a_\u0026q=85\u0026s=a75c2243502fd13e3c68c8ab0b84d6f7 280w, https://mintcdn.com/orqai/xcLYpNxifrsLt2a_/images/demo-agent-studio.png?w=560\u0026fit=max\u0026auto=format\u0026n=xcLYpNxifrsLt2a_\u0026q=85\u0026s=623ac4a3d8f894d1628f4ffcb9ec31d5 560w, https://mintcdn.com/orqai/xcLYpNxifrsLt2a_/images/demo-agent-studio.png?w=840\u0026fit=max\u0026auto=format\u0026n=xcLYpNxifrsLt2a_\u0026q=85\u0026s=4173052d8d39224b5ea92d100c9a23d9 840w, https://mintcdn.com/orqai/xcLYpNxifrsLt2a_/images/demo-agent-studio.png?w=1100\u0026fit=max\u0026auto=format\u0026n=xcLYpNxifrsLt2a_\u0026q=85\u0026s=a418e0bf8d736443ddff344197a696da 1100w, https://mintcdn.com/orqai/xcLYpNxifrsLt2a_/images/demo-agent-studio.png?w=1650\u0026fit=max\u0026auto=format\u0026n=xcLYpNxifrsLt2a_\u0026q=85\u0026s=d2f1cb49dbadc62f65d42ed0b948d54b 1650w, https://mintcdn.com/orqai/xcLYpNxifrsLt2a_/images/demo-agent-studio.png?w=2500\u0026fit=max\u0026auto=format\u0026n=xcLYpNxifrsLt2a_\u0026q=85\u0026s=8630c0c810e5e54e3e9a997309148cbd 2500w`}),_jsx(_components.p,{children:`AI Studio opens with a customizable template.`})]})]}),_jsx(_components.p,{children:`AI Studio has three panels:`}),_jsx(Frame,{caption:`AI Studio three-panel layout.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/qvAYoaBzJLQw_mW8/images/agent-studio-wide.png?fit=max\u0026auto=format\u0026n=qvAYoaBzJLQw_mW8\u0026q=85\u0026s=fa57b368982175005394d7008f38659f`,alt:`AI Studio showing settings on the left, instructions in the center, and the Playground on the right.`,\"data-og-width\":`1955`,width:`1955`,\"data-og-height\":`1222`,height:`1222`,\"data-path\":`images/agent-studio-wide.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/qvAYoaBzJLQw_mW8/images/agent-studio-wide.png?w=280\u0026fit=max\u0026auto=format\u0026n=qvAYoaBzJLQw_mW8\u0026q=85\u0026s=eb9aab01fca319c08e50ac4a547583b6 280w, https://mintcdn.com/orqai/qvAYoaBzJLQw_mW8/images/agent-studio-wide.png?w=560\u0026fit=max\u0026auto=format\u0026n=qvAYoaBzJLQw_mW8\u0026q=85\u0026s=65eda32c2b2cc0b14ea7f80c853852bc 560w, https://mintcdn.com/orqai/qvAYoaBzJLQw_mW8/images/agent-studio-wide.png?w=840\u0026fit=max\u0026auto=format\u0026n=qvAYoaBzJLQw_mW8\u0026q=85\u0026s=e79ea89a03b39e498909f684f3390278 840w, https://mintcdn.com/orqai/qvAYoaBzJLQw_mW8/images/agent-studio-wide.png?w=1100\u0026fit=max\u0026auto=format\u0026n=qvAYoaBzJLQw_mW8\u0026q=85\u0026s=fc44aad5a8c4aa17e96e4ba67b1c285f 1100w, https://mintcdn.com/orqai/qvAYoaBzJLQw_mW8/images/agent-studio-wide.png?w=1650\u0026fit=max\u0026auto=format\u0026n=qvAYoaBzJLQw_mW8\u0026q=85\u0026s=9a5402b6e62c0eea51445526ace9a87d 1650w, https://mintcdn.com/orqai/qvAYoaBzJLQw_mW8/images/agent-studio-wide.png?w=2500\u0026fit=max\u0026auto=format\u0026n=qvAYoaBzJLQw_mW8\u0026q=85\u0026s=8bd762fa1c7d3465a4e3924490bb6a68 2500w`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Settings (left)`}),`: Set up the model, tools, context, evaluators, and constraints.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Instructions (center)`}),`: Define what the agent does and how it behaves.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Playground (right)`}),`: Chat with the agent and test its behaviour.`]}),`\n`]}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`Save the configuration at any time using the `,_jsx(`kbd`,{className:`key`,children:`Publish`}),` button.`]})})]}),_jsxs(Tab,{title:`API \u0026 SDK`,icon:`code`,id:`api-%26-sdk`,children:[_jsxs(_components.p,{children:[`The Agents API creates and manages internal `,_jsx(_components.strong,{children:`Orq.ai`}),` Agents. Execute them through the Responses API with `,_jsx(_components.code,{children:`model: \"agent/\u003ckey>\"`}),`. This management API does not use the A2A wire contract. To register an external A2A Agent or expose an internal Agent to A2A clients, see `,_jsx(_components.a,{href:`/ai-gateway/features/agents-gateway`,children:`Agents Gateway`}),`.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Prerequisites:`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A Project in the workspace (used as the `,_jsx(_components.code,{children:`path`}),` for resources)`]}),`\n`,_jsxs(_components.li,{children:[`An `,_jsx(_components.a,{href:`/ai-studio/organization/api-keys`,children:`API Key`})]}),`\n`,_jsxs(_components.li,{children:[`Optionally, one of the `,_jsx(_components.a,{href:`/reference/client-libraries`,children:`Orq SDKs`})]}),`\n`]}),_jsx(_components.p,{children:`Create an agent with a minimal configuration:`}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`21`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` POST`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v2/agents`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$ORQ_API_KEY`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"key\": \"my-agent\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"role\": \"Assistant\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"description\": \"A helpful assistant for general tasks\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"instructions\": \"Be helpful and concise\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"path\": \"Default/agents\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"model\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"id\": \"openai/gpt-5.6-sol\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"parameters\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"temperature\": 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"settings\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"max_iterations\": 3,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"max_execution_time\": 300,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"tools\": []`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`18`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq_ai_sdk `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` os`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`with`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`api_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`os.getenv(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"ORQ_API_KEY\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`as`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` agent `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.agents.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"my-agent\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` role`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Assistant\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` description`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"A helpful assistant for general tasks\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` instructions`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Be helpful and concise\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` path`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Default/agents\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` model`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"openai/gpt-5.6-sol\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"parameters\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"temperature\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`1`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` settings`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"max_iterations\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`3`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"max_execution_time\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`300`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"tools\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`f`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Agent created: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`{`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`agent.key`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`}`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`15`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { Orq } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '@orq-ai/node'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` orq`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` Orq`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({ apiKey: process.env[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'ORQ_API_KEY'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`] `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`??`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ''`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` agent`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.agents.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`create`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` key: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'my-agent'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` role: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'Assistant'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` description: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'A helpful assistant for general tasks'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` instructions: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'Be helpful and concise'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` path: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'Default/agents'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` model: { id: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'openai/gpt-5.6-sol'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, parameters: { temperature: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`1`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` } },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` settings: { maxIterations: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`3`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, maxExecutionTime: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`300`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, tools: [] }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`console.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:\"`Agent created: ${\"}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`agent`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`.`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`key`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:\"}`\"}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`);`})]}),`\n`]})})})]}),_jsxs(Tip,{children:[`See the full `,_jsx(_components.a,{href:`/reference/agents/create-agent`,children:`Create Agent API reference`}),`.`]})]}),_jsxs(Tab,{title:`MCP`,icon:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=85ff775ba1532474fb9d6b4e81adc322`,\"data-og-width\":`16`,width:`16`,\"data-og-height\":`16`,height:`16`,\"data-path\":`images/logos/mcp.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=280\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=180551a6d1b3b915c5f0b83e34e5bc0d 280w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=560\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=e5a06a9650d340698043766e024c7766 560w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=840\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=3fcbab367f8208f504acc6f00b6f6830 840w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=a0c4c5b285447d27d21e394c3576f701 1100w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=866eb1cb70e44a2035ec43c6364f13f3 1650w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=8925e81917c2cd7c2e94b2cc14560a77 2500w`,id:`mcp`,children:[_jsxs(_components.p,{children:[`Use the `,_jsx(_components.a,{href:`/ai-studio/integrations/code-assistants/orq-mcp`,children:`Orq MCP server`}),` to manage agents directly from an AI code assistant.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Find an existing agent:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Search for the \"support-bot\" agent in my workspace`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`search_entities`}),` with `,_jsx(_components.code,{children:`type: \"agent\"`}),` to locate agents by name or key.`]}),_jsx(_components.hr,{}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Retrieve full agent configuration:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Get the full configuration of the \"support-bot\" agent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`get_agent`}),` to return instructions, model, tools, and all settings.`]}),_jsx(_components.hr,{}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Create an agent:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Create a customer support agent called \"support-bot\" in the Default/agents project. Use GPT-5.6 Sol with temperature 1 and give it a professional, concise tone.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`create_agent`}),` with the specified key, path, model, model parameters, and instructions.`]})]}),_jsxs(Tab,{title:`CLI`,icon:`terminal`,id:`cli`,children:[_jsxs(_components.p,{children:[`Create an agent with a minimal configuration using `,_jsx(_components.a,{href:`/reference/cli`,children:_jsx(_components.code,{children:`orq agents create`})}),`:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` create`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --key`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --role`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` Assistant`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --description`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"A helpful assistant for general tasks\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --instructions`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Be helpful and concise\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --path`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` Default/agents`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --model`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"id\": \"openai/gpt-5.6-sol\", \"parameters\": {\"temperature\": 1}}'`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --settings`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"max_iterations\": 3, \"max_execution_time\": 300, \"tools\": []}'`})]}),`\n`]})})}),_jsxs(Tip,{children:[`See `,_jsx(_components.a,{href:`/reference/cli`,children:`install and setup`}),` to get started with the CLI. Run `,_jsx(_components.code,{children:`orq agents create --help`}),` for the full flag reference.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`select-a-model`,children:`Select a Model`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`AI Studio`,icon:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=ac04dd509320d58ab9701cb6d6137733`,\"data-og-width\":`100`,width:`100`,\"data-og-height\":`100`,height:`100`,\"data-path\":`images/logos/ai-studio-round.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=280\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=d9df8d5b2ef07a766e62eaa0623240cd 280w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=560\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3c40989d2bc47d1ec6d05f8eb3a585dd 560w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=840\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=2c40a18399d00e68a15d7d1262484486 840w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3e853add10f479adccee3068427de43d 1100w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=71d1130736022278f4de6d95e7583c9b 1650w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=41a312377a09cf0f6da1edb9b02b695c 2500w`,id:`ai-studio-2`,children:[_jsxs(_components.p,{children:[`Select the language model that powers the agent in the `,_jsx(_components.strong,{children:`Model`}),` section.`]}),_jsx(Info,{children:_jsxs(_components.p,{children:[`Available models depend on the `,_jsx(_components.a,{href:`/ai-gateway/using-the-router`,children:`AI Gateway`}),` configuration. Switch models at any time and the agent uses the new model on its next execution.`]})}),_jsx(Frame,{caption:`Access the model parameters sub-menu to configure temperature and other parameters.`,children:_jsx(`video`,{className:`mint-w-3/4 mint-rounded-xl`,src:`https://mintcdn.com/orqai/S6Vj7p_RMiP3r0WF/videos/model-parameters-417.mp4?fit=max\u0026auto=format\u0026n=S6Vj7p_RMiP3r0WF\u0026q=85\u0026s=9d9e458ff5aa846871669b0ca6b1b286`,autoPlay:true,muted:true,loop:true,playsInline:true,\"data-path\":`videos/model-parameters-417.mp4`,children:_jsx(_components.p,{children:`Model panel with a Params button that opens the Model parameters menu showing Response Format set to Text, Cache Control at 5m, Reasoning Effort at High and Max Tokens at 128000.`})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Considerations when selecting a model:`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Speed vs Quality`}),`: Smaller models are faster but less capable.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Cost`}),`: Larger models cost more per token.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Capability`}),`: Some tasks require more advanced reasoning models.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Latency`}),`: Models that use reasoning tokens add latency. Consider the impact of Max. Turns and Max. Execution Time constraints.`]}),`\n`]})]}),_jsxs(Tab,{title:`API \u0026 SDK`,icon:`code`,id:`api-%26-sdk-2`,children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`model`}),` field supports two formats.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Object format (recommended)`}),`: Specify model parameters alongside the model ID.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"model\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"openai/gpt-5.6-luna\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"parameters\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"temperature\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`To save a thinking mode on the `,_jsx(_components.strong,{children:`Agent`}),`, set `,_jsx(_components.code,{children:`parameters.thinking`}),`. It applies on every run as if it were sent in the request. On Sonnet 5.5, `,_jsx(_components.code,{children:`between_tools`}),` streams progress updates between tool calls without up-front thinking:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"model\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"anthropic/claude-sonnet-5-5\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"parameters\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"thinking\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"between_tools\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`Omit `,_jsx(_components.code,{children:`display`}),` with `,_jsx(_components.code,{children:`between_tools`}),`: the `,_jsx(_components.strong,{children:`Agent`}),` is rejected on save. See `,_jsx(_components.a,{href:`/ai-gateway/features/reasoning#progress-updates-between-tool-calls`,children:`Reasoning`}),`.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`String format`}),`: For simple cases without custom parameters.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"model\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"openai/gpt-5.6-luna\"`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Use the `,_jsx(_components.code,{children:`provider/model-id`}),` format. For a complete list of supported models, see the `,_jsx(_components.a,{href:`/ai-gateway/using-the-router`,children:`AI Gateway`}),`.`]}),_jsxs(Tip,{children:[`See the full `,_jsx(_components.a,{href:`/reference/agents/create-agent`,children:`API reference`}),` for all supported model parameters.`]})]}),_jsxs(Tab,{title:`MCP`,icon:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=85ff775ba1532474fb9d6b4e81adc322`,\"data-og-width\":`16`,width:`16`,\"data-og-height\":`16`,height:`16`,\"data-path\":`images/logos/mcp.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=280\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=180551a6d1b3b915c5f0b83e34e5bc0d 280w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=560\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=e5a06a9650d340698043766e024c7766 560w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=840\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=3fcbab367f8208f504acc6f00b6f6830 840w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=a0c4c5b285447d27d21e394c3576f701 1100w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=866eb1cb70e44a2035ec43c6364f13f3 1650w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=8925e81917c2cd7c2e94b2cc14560a77 2500w`,id:`mcp-2`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`List available models:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`List all available chat models in my workspace`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`list_models`}),` with `,_jsx(_components.code,{children:`type: \"chat\"`}),`.`]}),_jsx(_components.hr,{}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Update the model on an existing agent:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Switch the \"support-bot\" agent to use GPT-5.6 Luna`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`update_agent`}),` with `,_jsx(_components.code,{children:`model: { \"id\": \"openai/gpt-5.6-luna\" }`}),`.`]})]}),_jsxs(Tab,{title:`CLI`,icon:`terminal`,id:`cli-2`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --model`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"id\": \"openai/gpt-5.6-luna\", \"parameters\": {\"temperature\": 1}}'`})]}),`\n`]})})}),_jsxs(Tip,{children:[`See `,_jsx(_components.a,{href:`/reference/cli`,children:`install and setup`}),` to get started with the CLI. Run `,_jsx(_components.code,{children:`orq agents update --help`}),` for the full flag reference.`]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`structured-output`,children:`Structured Output`}),`\n`,_jsx(_components.p,{children:`Structured output makes the agent reply with JSON that matches a schema, so the response can be parsed instead of read.`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`AI Studio`,icon:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=ac04dd509320d58ab9701cb6d6137733`,\"data-og-width\":`100`,width:`100`,\"data-og-height\":`100`,height:`100`,\"data-path\":`images/logos/ai-studio-round.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=280\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=d9df8d5b2ef07a766e62eaa0623240cd 280w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=560\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3c40989d2bc47d1ec6d05f8eb3a585dd 560w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=840\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=2c40a18399d00e68a15d7d1262484486 840w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3e853add10f479adccee3068427de43d 1100w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=71d1130736022278f4de6d95e7583c9b 1650w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=41a312377a09cf0f6da1edb9b02b695c 2500w`,id:`ai-studio-3`,children:[_jsxs(_components.p,{children:[`Set `,_jsx(_components.strong,{children:`Response Format`}),` in the `,_jsx(_components.strong,{children:`Model`}),` panel, next to the model picker:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`JSON Mode`}),` returns a JSON object. The instructions still have to ask for JSON.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`JSON Schema`}),` opens a `,_jsx(_components.strong,{children:`Schema`}),` dropdown that selects a `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/create-tools#json-schema-tool`,children:`JSON Schema Tool`}),`, and the agent answers with that tool’s schema.`]}),`\n`]}),_jsxs(_components.p,{children:[`The menu lists the formats the selected model supports. `,_jsx(_components.strong,{children:`Response Format`}),` appears only for models that support JSON Mode or JSON Schema.`]})]}),_jsxs(Tab,{title:`API \u0026 SDK`,icon:`code`,id:`api-%26-sdk-3`,children:[_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`model.parameters.response_format`}),` in JSON and Python, or `,_jsx(_components.code,{children:`model.parameters.responseFormat`}),` in TypeScript. The three formats, their schema rules and `,_jsx(_components.code,{children:`strict`}),` enforcement are documented in `,_jsx(_components.a,{href:`/ai-gateway/features/structured-outputs`,children:`Structured Outputs`}),`.`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`26`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`26`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` PATCH`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v2/agents/my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$ORQ_API_KEY`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"model\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"id\": \"openai/gpt-5.6-luna\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"parameters\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"response_format\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"type\": \"json_schema\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"json_schema\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"name\": \"support_reply\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"strict\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"schema\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"type\": \"object\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"properties\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"answer\": { \"type\": \"string\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"escalate\": { \"type\": \"boolean\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"required\": [\"answer\", \"escalate\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"additionalProperties\": false`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`31`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`31`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq_ai_sdk `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` os`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`schema `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"object\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"properties\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"answer\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"string\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"escalate\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"boolean\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"required\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: [`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"answer\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"escalate\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"additionalProperties\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`False`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`with`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`api_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`os.getenv(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"ORQ_API_KEY\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`as`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` agent `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.agents.update(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` agent_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"my-agent\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` model`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"openai/gpt-5.6-luna\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"parameters\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"response_format\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"json_schema\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"json_schema\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"support_reply\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"strict\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`True`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"schema\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: schema,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(agent.version)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`32`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`32`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { Orq } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '@orq-ai/node'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` orq`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` Orq`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({ apiKey: process.env[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'ORQ_API_KEY'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`] `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`??`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ''`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` agent`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.agents.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`update`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` model: {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` id: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'openai/gpt-5.6-luna'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` parameters: {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` responseFormat: {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` type: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'json_schema'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` jsonSchema: {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` name: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'support_reply'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` strict: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`true`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` schema: {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` type: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'object'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` properties: {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` answer: { type: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'string'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` escalate: { type: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'boolean'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` required: [`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'answer'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'escalate'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` additionalProperties: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`false`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` 'my-agent'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`);`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`console.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(agent.version);`})]}),`\n`]})})})]})]}),_jsx(Tab,{title:`CLI`,icon:`terminal`,id:`cli-3`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --model`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"id\": \"openai/gpt-5.6-luna\", \"parameters\": {\"response_format\": {\"type\": \"json_schema\", \"json_schema\": {\"name\": \"support_reply\", \"strict\": true, \"schema\": {\"type\": \"object\", \"properties\": {\"answer\": {\"type\": \"string\"}, \"escalate\": {\"type\": \"boolean\"}}, \"required\": [\"answer\", \"escalate\"], \"additionalProperties\": false}}}}}'`})]}),`\n`]})})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`fallback-models`,children:`Fallback Models`}),`\n`,_jsx(_components.p,{children:`A fallback model is tried when the primary model fails, in the order the list holds. Once the last fallback fails too, the run returns that error.`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`AI Studio`,icon:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=ac04dd509320d58ab9701cb6d6137733`,\"data-og-width\":`100`,width:`100`,\"data-og-height\":`100`,height:`100`,\"data-path\":`images/logos/ai-studio-round.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=280\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=d9df8d5b2ef07a766e62eaa0623240cd 280w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=560\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3c40989d2bc47d1ec6d05f8eb3a585dd 560w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=840\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=2c40a18399d00e68a15d7d1262484486 840w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3e853add10f479adccee3068427de43d 1100w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=71d1130736022278f4de6d95e7583c9b 1650w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=41a312377a09cf0f6da1edb9b02b695c 2500w`,id:`ai-studio-4`,children:[_jsxs(_components.p,{children:[`Add models in the `,_jsx(_components.strong,{children:`Fallback Models`}),` section of `,_jsx(_components.strong,{children:`Settings`}),`. `,_jsx(_components.strong,{children:`Fallback model`}),` appends the first available model, which is then changed in the entry together with its parameters, and the list holds up to five entries.`]}),_jsx(_components.p,{children:`Only models that support tool calling are offered.`})]}),_jsxs(Tab,{title:`API \u0026 SDK`,icon:`code`,id:`api-%26-sdk-4`,children:[_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`fallback_models`}),` alongside `,_jsx(_components.code,{children:`model`}),` on the agent. Each entry is a model ID string, or an object with `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`parameters`}),`, and `,_jsx(_components.code,{children:`retry`}),`:`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` PATCH`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v2/agents/my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$ORQ_API_KEY`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"fallback_models\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"openai/gpt-5.6-sol\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"id\": \"openai/gpt-5.6-luna\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"parameters\": { \"temperature\": 0.2 }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`15`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq_ai_sdk `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` os`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`with`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`api_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`os.getenv(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"ORQ_API_KEY\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`as`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` agent `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.agents.update(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` agent_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"my-agent\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` fallback_models`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`[`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"openai/gpt-5.6-sol\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"openai/gpt-5.6-luna\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"parameters\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"temperature\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`0.2`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(agent.version)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`15`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { Orq } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '@orq-ai/node'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` orq`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` Orq`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({ apiKey: process.env[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'ORQ_API_KEY'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`] `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`??`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ''`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` agent`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.agents.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`update`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` fallbackModels: [`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` 'openai/gpt-5.6-sol'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { id: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'openai/gpt-5.6-luna'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, parameters: { temperature: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`0.2`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` } },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` 'my-agent'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`);`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`console.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(agent.version);`})]}),`\n`]})})})]}),_jsx(_components.p,{children:`An empty array removes every fallback. Every entry must support tool calling.`}),_jsxs(Tip,{children:[`See the `,_jsx(_components.a,{href:`/reference/agents/update-agent`,children:`API reference`}),` for the full field list.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`configure-instructions`,children:`Configure Instructions`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`AI Studio`,icon:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=ac04dd509320d58ab9701cb6d6137733`,\"data-og-width\":`100`,width:`100`,\"data-og-height\":`100`,height:`100`,\"data-path\":`images/logos/ai-studio-round.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=280\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=d9df8d5b2ef07a766e62eaa0623240cd 280w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=560\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3c40989d2bc47d1ec6d05f8eb3a585dd 560w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=840\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=2c40a18399d00e68a15d7d1262484486 840w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3e853add10f479adccee3068427de43d 1100w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=71d1130736022278f4de6d95e7583c9b 1650w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=41a312377a09cf0f6da1edb9b02b695c 2500w`,id:`ai-studio-5`,children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Instructions`}),` panel defines the agent’s behavior, goals, and personality. Write clear, exhaustive instructions to keep behavior consistent across executions.`]}),_jsx(Tip,{children:_jsx(_components.p,{children:`Use the AI button to generate effective instructions for the agent.`})}),_jsx(Accordion,{title:`Example: Customer Support Agent`,icon:`head-side-brain`,id:`example-customer-support-agent`,children:_jsx(CodeBlock,{numberOfLines:`12`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`You are an experienced customer support specialist for the SaaS company **{company_name}**.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Your job is to provide clear, concise, and accurate answers to customer inquiries about {product_name}.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Responses should be brief, no more than **150 words**, and include any necessary next-step actions.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`**Step-by-Step Instructions**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\"1. **Read the query**: `{customer_query}`.\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. **Extract the core problem** (e.g., password reset, API error, pricing).`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. **Draft a concise answer**: no more than 150 words.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. **Add suggested next steps**: at most 3 actions the customer can take.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:\"5. **End with a friendly closing** and a reminder of available support channels (`{support_contact}`).\"})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})})]}),_jsxs(Tab,{title:`API \u0026 SDK`,icon:`code`,id:`api-%26-sdk-5`,children:[_jsx(_components.p,{children:`The key instruction fields on the agent object:`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`instructions`})}),_jsx(_components.td,{children:`Main instructions for the agent’s behavior and goals`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`role`})}),_jsx(_components.td,{children:`Agent’s responsibility and coverage, reinforced at execution`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`Used by other agents to discover and delegate to this agent`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`system_prompt`})}),_jsx(_components.td,{children:`Additional system-level context injected before execution`})]})]})]}),_jsx(_components.p,{children:`Update instructions on an existing agent:`}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` PATCH`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v2/agents/my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$ORQ_API_KEY`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"instructions\": \"You are a helpful assistant. Be concise and accurate.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"role\": \"General Assistant\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"description\": \"A general-purpose assistant for answering questions and completing tasks\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`10`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq_ai_sdk `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` os`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`with`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`api_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`os.getenv(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"ORQ_API_KEY\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`as`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` agent `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.agents.update(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` agent_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"my-agent\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` instructions`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"You are a helpful assistant. Be concise and accurate.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` role`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"General Assistant\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` description`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"A general-purpose assistant for answering questions and completing tasks\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` )`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`9`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { Orq } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '@orq-ai/node'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` orq`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` Orq`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({ apiKey: process.env[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'ORQ_API_KEY'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`] `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`??`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ''`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.agents.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`update`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` instructions: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'You are a helpful assistant. Be concise and accurate.'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` role: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'General Assistant'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` description: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'A general-purpose assistant for answering questions and completing tasks'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'my-agent'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`);`})]}),`\n`]})})})]}),_jsxs(Tip,{children:[`See the full `,_jsx(_components.a,{href:`/reference/agents/update-agent`,children:`Update Agent API reference`}),`.`]})]}),_jsxs(Tab,{title:`MCP`,icon:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=85ff775ba1532474fb9d6b4e81adc322`,\"data-og-width\":`16`,width:`16`,\"data-og-height\":`16`,height:`16`,\"data-path\":`images/logos/mcp.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=280\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=180551a6d1b3b915c5f0b83e34e5bc0d 280w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=560\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=e5a06a9650d340698043766e024c7766 560w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=840\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=3fcbab367f8208f504acc6f00b6f6830 840w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=a0c4c5b285447d27d21e394c3576f701 1100w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=866eb1cb70e44a2035ec43c6364f13f3 1650w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=8925e81917c2cd7c2e94b2cc14560a77 2500w`,id:`mcp-3`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Update agent instructions:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Show me the current instructions for \"support-bot\", then update them to always respond in the user's language`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`get_agent`}),` to retrieve the current instructions, then `,_jsx(_components.code,{children:`update_agent`}),` with the revised `,_jsx(_components.code,{children:`instructions`}),` field.`]}),_jsx(_components.hr,{}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Set role and description:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Update the \"support-bot\" agent to add a detailed description of its capabilities for use in multi-agent workflows`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`update_agent`}),` with the `,_jsx(_components.code,{children:`description`}),` field.`]})]}),_jsxs(Tab,{title:`CLI`,icon:`terminal`,id:`cli-4`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --instructions`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"You are a helpful assistant. Be concise and accurate.\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --role`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"General Assistant\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --description`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"A general-purpose assistant for answering questions and completing tasks\"`})]}),`\n`]})})}),_jsxs(Tip,{children:[`See `,_jsx(_components.a,{href:`/reference/cli`,children:`install and setup`}),` to get started with the CLI. Run `,_jsx(_components.code,{children:`orq agents update --help`}),` for the full flag reference.`]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`role-and-description`,children:`Role and Description`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Role`}),`: Defines the agent’s responsibility and coverage. Sent to the agent during execution to reinforce its perimeter.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Description`}),`: Used by other agents in multi-agent setups to understand what this agent can do. Write a detailed description so orchestrators delegate correctly.`]}),`\n`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`To learn more about multi-agent orchestration, see `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/run-agents#multi-agent-workflows`,children:`Multi-Agent Workflows`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`skills`,children:`Skills`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/ai-studio/ai-engineering/skills`,children:`Skills`}),` can be used with agents in two ways:`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Static reference:`}),` Use `,_jsx(_components.code,{children:`{{skill.key}}`}),` directly in the instruction text to inject a Skill’s content at that position on every run. Use this for content that should always be present, such as a company policy or a standard output format.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`On-demand attachment:`}),` Click `,_jsxs(`kbd`,{children:[_jsx(Icon,{icon:`circle-plus`}),` Skills`]}),` in the `,_jsx(_components.strong,{children:`Skills`}),` section of the agent configuration to attach a Skill.`]}),`\n`,_jsxs(Frame,{caption:`Attaching a Skill to an agent for on-demand reference.`,children:[_jsx(OptimizedImage,{className:`mint-block dark:mint-hidden`,loading:`lazy`,src:`https://mintcdn.com/orqai/VRupSqwjWyrKTY5_/images/agent-skill-attached-light-419.png?fit=max\u0026auto=format\u0026n=VRupSqwjWyrKTY5_\u0026q=85\u0026s=116656fdf4d46ceb0ea60c8793684eef`,alt:`Agent configuration in light theme with the Skills section holding a summarize_thread Skill, marked as carrying files, above the add Skills button`,\"data-og-width\":`497`,width:`497`,\"data-og-height\":`273`,height:`273`,\"data-path\":`images/agent-skill-attached-light-419.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/VRupSqwjWyrKTY5_/images/agent-skill-attached-light-419.png?w=280\u0026fit=max\u0026auto=format\u0026n=VRupSqwjWyrKTY5_\u0026q=85\u0026s=bada5590b7c0214747bcd5bf86d3e63c 280w, https://mintcdn.com/orqai/VRupSqwjWyrKTY5_/images/agent-skill-attached-light-419.png?w=560\u0026fit=max\u0026auto=format\u0026n=VRupSqwjWyrKTY5_\u0026q=85\u0026s=a42b8b71ecac2fc98834407c61c9e779 560w, https://mintcdn.com/orqai/VRupSqwjWyrKTY5_/images/agent-skill-attached-light-419.png?w=840\u0026fit=max\u0026auto=format\u0026n=VRupSqwjWyrKTY5_\u0026q=85\u0026s=4b8706f994a5f3d1252b0bad84a06b5e 840w, https://mintcdn.com/orqai/VRupSqwjWyrKTY5_/images/agent-skill-attached-light-419.png?w=1100\u0026fit=max\u0026auto=format\u0026n=VRupSqwjWyrKTY5_\u0026q=85\u0026s=ba5d18d3965c31a617af48c965bc4330 1100w, https://mintcdn.com/orqai/VRupSqwjWyrKTY5_/images/agent-skill-attached-light-419.png?w=1650\u0026fit=max\u0026auto=format\u0026n=VRupSqwjWyrKTY5_\u0026q=85\u0026s=702720687e34d5659de4f9e49068810c 1650w, https://mintcdn.com/orqai/VRupSqwjWyrKTY5_/images/agent-skill-attached-light-419.png?w=2500\u0026fit=max\u0026auto=format\u0026n=VRupSqwjWyrKTY5_\u0026q=85\u0026s=762c56113d700564e248eea3cf72fdb4 2500w`}),_jsx(OptimizedImage,{className:`mint-hidden dark:mint-block`,loading:`lazy`,src:`https://mintcdn.com/orqai/VRupSqwjWyrKTY5_/images/agent-skill-attached-dark-419.png?fit=max\u0026auto=format\u0026n=VRupSqwjWyrKTY5_\u0026q=85\u0026s=713125ba841946e9de4e72c6d56532b3`,alt:`Agent configuration in dark theme with the same summarize_thread Skill in the Skills section`,\"data-og-width\":`497`,width:`497`,\"data-og-height\":`273`,height:`273`,\"data-path\":`images/agent-skill-attached-dark-419.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/VRupSqwjWyrKTY5_/images/agent-skill-attached-dark-419.png?w=280\u0026fit=max\u0026auto=format\u0026n=VRupSqwjWyrKTY5_\u0026q=85\u0026s=5c5c73f2a881f14ec5ec7e679f3dc4c0 280w, https://mintcdn.com/orqai/VRupSqwjWyrKTY5_/images/agent-skill-attached-dark-419.png?w=560\u0026fit=max\u0026auto=format\u0026n=VRupSqwjWyrKTY5_\u0026q=85\u0026s=ae4831b742d80fba4a0b66881796713f 560w, https://mintcdn.com/orqai/VRupSqwjWyrKTY5_/images/agent-skill-attached-dark-419.png?w=840\u0026fit=max\u0026auto=format\u0026n=VRupSqwjWyrKTY5_\u0026q=85\u0026s=d9cf1a475902d9aac02bd36929aac0ac 840w, https://mintcdn.com/orqai/VRupSqwjWyrKTY5_/images/agent-skill-attached-dark-419.png?w=1100\u0026fit=max\u0026auto=format\u0026n=VRupSqwjWyrKTY5_\u0026q=85\u0026s=fc7f27edfcb19470b5ae69c69af92bde 1100w, https://mintcdn.com/orqai/VRupSqwjWyrKTY5_/images/agent-skill-attached-dark-419.png?w=1650\u0026fit=max\u0026auto=format\u0026n=VRupSqwjWyrKTY5_\u0026q=85\u0026s=6347b1fc3d4b05490df7bfb3d50b1102 1650w, https://mintcdn.com/orqai/VRupSqwjWyrKTY5_/images/agent-skill-attached-dark-419.png?w=2500\u0026fit=max\u0026auto=format\u0026n=VRupSqwjWyrKTY5_\u0026q=85\u0026s=128233b88e3e885f27a8782838602a7c 2500w`})]}),`\n`,_jsx(_components.p,{children:`Attached Skills are available for the agent to invoke when relevant, without being statically embedded in the instructions. Any update to a Skill propagates automatically to every agent that references or has it attached.`}),`\n`,_jsx(Heading,{level:`3`,id:`variables-and-templates`,children:`Variables and Templates`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`AI Studio`,icon:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=ac04dd509320d58ab9701cb6d6137733`,\"data-og-width\":`100`,width:`100`,\"data-og-height\":`100`,height:`100`,\"data-path\":`images/logos/ai-studio-round.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=280\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=d9df8d5b2ef07a766e62eaa0623240cd 280w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=560\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3c40989d2bc47d1ec6d05f8eb3a585dd 560w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=840\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=2c40a18399d00e68a15d7d1262484486 840w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3e853add10f479adccee3068427de43d 1100w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=71d1130736022278f4de6d95e7583c9b 1650w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=41a312377a09cf0f6da1edb9b02b695c 2500w`,id:`ai-studio-6`,children:[_jsxs(_components.p,{children:[`Reference dynamic values in agent instructions using double braces: `,_jsx(_components.code,{children:`{{variableName}}`}),`. Pass a key-value map in the `,_jsx(_components.code,{children:`variables`}),` field at invocation time and `,_jsx(_components.strong,{children:`Orq.ai`}),` substitutes each variable before execution.`]}),_jsx(Frame,{caption:`Variables defined in the agent instructions are highlighted in the AI Studio.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/yCSQVLw_V_Uv3TzU/images/agent-variable.png?fit=max\u0026auto=format\u0026n=yCSQVLw_V_Uv3TzU\u0026q=85\u0026s=4532aaa41faf7f0eca1de0be32aef907`,alt:`AI Studio editor showing instructions with a {{language}} variable highlighted in green.`,loading:`lazy`,\"data-og-width\":`1518`,width:`1518`,\"data-og-height\":`443`,height:`443`,\"data-path\":`images/agent-variable.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/yCSQVLw_V_Uv3TzU/images/agent-variable.png?w=280\u0026fit=max\u0026auto=format\u0026n=yCSQVLw_V_Uv3TzU\u0026q=85\u0026s=e748e3d6e0de6ba4686fb79ac388cff1 280w, https://mintcdn.com/orqai/yCSQVLw_V_Uv3TzU/images/agent-variable.png?w=560\u0026fit=max\u0026auto=format\u0026n=yCSQVLw_V_Uv3TzU\u0026q=85\u0026s=d7af517095aaf87f828dc517b6263049 560w, https://mintcdn.com/orqai/yCSQVLw_V_Uv3TzU/images/agent-variable.png?w=840\u0026fit=max\u0026auto=format\u0026n=yCSQVLw_V_Uv3TzU\u0026q=85\u0026s=ba8a313266f451355288586b1d834caf 840w, https://mintcdn.com/orqai/yCSQVLw_V_Uv3TzU/images/agent-variable.png?w=1100\u0026fit=max\u0026auto=format\u0026n=yCSQVLw_V_Uv3TzU\u0026q=85\u0026s=a1bcc162975f50d053b810e790756ea2 1100w, https://mintcdn.com/orqai/yCSQVLw_V_Uv3TzU/images/agent-variable.png?w=1650\u0026fit=max\u0026auto=format\u0026n=yCSQVLw_V_Uv3TzU\u0026q=85\u0026s=3257e968b892566718678694187239aa 1650w, https://mintcdn.com/orqai/yCSQVLw_V_Uv3TzU/images/agent-variable.png?w=2500\u0026fit=max\u0026auto=format\u0026n=yCSQVLw_V_Uv3TzU\u0026q=85\u0026s=709ac649440172cc412f96288b094a14 2500w`})}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Orq.ai`}),` supports three template engines. Select an engine from the `,_jsx(_components.strong,{children:`Template Engine`}),` section:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Text`}),` (default): variables use `,_jsx(_components.code,{children:`{{double_braces}}`}),` syntax.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Jinja`}),`: full templating with conditionals, loops, filters, and more.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Mustache`}),`: logic-less templating with sections.`]}),`\n`]}),_jsx(Frame,{caption:`Selecting an engine in the Template Engine section.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/DY_LJpF-6_BhrePx/images/template-engine-agent.png?fit=max\u0026auto=format\u0026n=DY_LJpF-6_BhrePx\u0026q=85\u0026s=0133df1de7e82c977f21e26762d875c3`,alt:`Template Engine dropdown with Text currently selected, and options for Jinja and Mustache.`,\"data-og-width\":`657`,width:`657`,\"data-og-height\":`249`,height:`249`,\"data-path\":`images/template-engine-agent.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/DY_LJpF-6_BhrePx/images/template-engine-agent.png?w=280\u0026fit=max\u0026auto=format\u0026n=DY_LJpF-6_BhrePx\u0026q=85\u0026s=344f79f840b57821a51cd4f089a52a5d 280w, https://mintcdn.com/orqai/DY_LJpF-6_BhrePx/images/template-engine-agent.png?w=560\u0026fit=max\u0026auto=format\u0026n=DY_LJpF-6_BhrePx\u0026q=85\u0026s=500a3b9598678d7d27b31129bd2239b7 560w, https://mintcdn.com/orqai/DY_LJpF-6_BhrePx/images/template-engine-agent.png?w=840\u0026fit=max\u0026auto=format\u0026n=DY_LJpF-6_BhrePx\u0026q=85\u0026s=bb5bcf5587502dd2921642ffbb8960f3 840w, https://mintcdn.com/orqai/DY_LJpF-6_BhrePx/images/template-engine-agent.png?w=1100\u0026fit=max\u0026auto=format\u0026n=DY_LJpF-6_BhrePx\u0026q=85\u0026s=0c73cd2f8dcef411077f405ff6143fc7 1100w, https://mintcdn.com/orqai/DY_LJpF-6_BhrePx/images/template-engine-agent.png?w=1650\u0026fit=max\u0026auto=format\u0026n=DY_LJpF-6_BhrePx\u0026q=85\u0026s=a4a62eb8508413e40c97f799ce2466d0 1650w, https://mintcdn.com/orqai/DY_LJpF-6_BhrePx/images/template-engine-agent.png?w=2500\u0026fit=max\u0026auto=format\u0026n=DY_LJpF-6_BhrePx\u0026q=85\u0026s=3ce43858a0275b8e4292f682df307e43 2500w`})}),_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`Jinja example`,icon:`code`,id:`jinja-example`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Instructions template:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`jinja`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`jinja`,children:_jsxs(_components.code,{language:`jinja`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`You are a support assistant for `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`{{`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`company_name`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`}}`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`.`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`{%`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` if`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` user_tier `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`==`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"premium\"`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` %}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`{{`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`customer_name`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`}}`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` is a premium customer. Greet them by name and let them know they have priority support.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`{%`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` else`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` %}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`{{`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`customer_name`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`}}`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` is on the free plan. Standard response time is 24 hours.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`{%`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` endif`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` %}`})]}),`\n`]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Invoke the agent:`})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` POST`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v3/router/responses`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$ORQ_API_KEY`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"model\": \"agent/support-bot\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"input\": \"I need help.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"variables\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"company_name\": \"Acme\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"customer_name\": \"Sarah\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"user_tier\": \"premium\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }'`})}),`\n`]})})})]}),_jsxs(Accordion,{title:`Mustache example`,icon:`code`,id:`mustache-example`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Instructions template:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`handlebars`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`handlebars`,children:_jsxs(_components.code,{language:`handlebars`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`You are a support assistant for `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`{{`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`company_name`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`}}`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`.`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`{{`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`# `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`is_premium`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`{{`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`customer_name`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`}}`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` is a premium customer. Priority support with a 2-hour SLA.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`{{`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`/`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` is_premium`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`{{`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`^ `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`is_premium`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`{{`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`customer_name`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`}}`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` is on the free plan. Standard response time is 24 hours.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`{{`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`/`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` is_premium`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`}}`})]}),`\n`]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Invoke the agent:`})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` POST`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v3/router/responses`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$ORQ_API_KEY`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"model\": \"agent/support-bot\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"input\": \"I need help.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"variables\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"company_name\": \"Acme\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"customer_name\": \"Sarah\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"is_premium\": true`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }'`})}),`\n`]})})})]})]}),_jsx(Info,{children:_jsxs(_components.p,{children:[`For a complete reference of all template features including filters, loops, and more, see `,_jsx(_components.a,{href:`/ai-studio/prompts/prompt-templating`,children:`Prompt Templating`}),`.`]})}),_jsxs(_components.p,{children:[`To test declared variables without calling the API, use the `,_jsx(`kbd`,{children:`Variables`}),` button in the `,_jsx(_components.strong,{children:`Playground`}),` panel. See `,_jsx(_components.a,{href:`#test-in-the-playground`,children:`Test in the Playground`}),` below.`]})]}),_jsxs(Tab,{title:`API \u0026 SDK`,icon:`code`,id:`api-%26-sdk-6`,children:[_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`{{variableName}}`}),` placeholders in agent instructions and pass the corresponding values in the `,_jsx(_components.code,{children:`variables`}),` field at invocation time.`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`13`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --request`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` POST`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --url`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` 'https://my.orq.ai/v3/router/responses'`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --header`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` 'Authorization: Bearer \u003cORQ_API_KEY>'`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --header`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --data`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"model\": \"agent/my-agent\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"input\": \"I need help with my account.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"variables\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"user_name\": \"John Smith\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"user_role\": \"admin\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"company_name\": \"Acme Corp\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`14`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq_ai_sdk `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` os`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`with`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`api_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`os.getenv(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"ORQ_API_KEY\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`as`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` response `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.responses.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` model`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"agent/my-agent\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` input`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"I need help with my account.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` variables`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"user_name\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"John Smith\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"user_role\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"admin\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"company_name\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Acme Corp\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(response.output[`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`0`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`][`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`][`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`0`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`][`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`])`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`16`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { Orq } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '@orq-ai/node'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` orq`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` Orq`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({ apiKey: process.env[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'ORQ_API_KEY'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`] `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`??`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ''`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` response`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.responses.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`create`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` model: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'agent/my-agent'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` input: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'I need help with my account.'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` variables: {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` user_name: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'John Smith'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` user_role: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'admin'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` company_name: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'Acme Corp'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`if`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` (`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`!`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'output'`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` in`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` response)) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`throw`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` Error`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'Unexpected event stream'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`console.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(response.output?.[`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`0`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`]?.content?.[`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`0`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`]?.text);`})]}),`\n`]})})})]}),_jsxs(Tip,{children:[`See the full `,_jsx(_components.a,{href:`/reference/agents/update-agent`,children:`Update Agent API reference`}),` and `,_jsx(_components.a,{href:`/reference/responses/create-response`,children:`Create Response API reference`}),`.`]})]}),_jsxs(Tab,{title:`MCP`,icon:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=85ff775ba1532474fb9d6b4e81adc322`,\"data-og-width\":`16`,width:`16`,\"data-og-height\":`16`,height:`16`,\"data-path\":`images/logos/mcp.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=280\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=180551a6d1b3b915c5f0b83e34e5bc0d 280w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=560\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=e5a06a9650d340698043766e024c7766 560w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=840\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=3fcbab367f8208f504acc6f00b6f6830 840w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=a0c4c5b285447d27d21e394c3576f701 1100w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=866eb1cb70e44a2035ec43c6364f13f3 1650w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=8925e81917c2cd7c2e94b2cc14560a77 2500w`,id:`mcp-4`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Add variables to agent instructions:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Update \"support-bot\" instructions to use {{user_name}}, {{user_role}}, and {{company_name}} variables`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`update_agent`}),` with the revised `,_jsx(_components.code,{children:`instructions`}),` field containing `,_jsx(_components.code,{children:`{{variable}}`}),` placeholders.`]})]}),_jsxs(Tab,{title:`CLI`,icon:`terminal`,id:`cli-5`,children:[_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`Step 1 — add `,_jsx(_components.code,{children:`{{variable}}`}),` placeholders to the agent’s instruction template:`]})}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --instructions`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"You are a helpful assistant for {{user_name}} ({{user_role}}) at {{company_name}}. Be concise and accurate.\"`})]}),`\n`]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Step 2 — supply variable values at runtime:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` responses`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` create`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --model`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agent/my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --input`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '\"I need help with my account.\"'`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --variables`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` user_name=\"John Smith\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --variables`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` user_role=admin`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --variables`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` company_name=\"Acme Corp\"`})]}),`\n`]})})}),_jsxs(Tip,{children:[`See `,_jsx(_components.a,{href:`/reference/cli`,children:`install and setup`}),` to get started with the CLI. Run `,_jsx(_components.code,{children:`orq agents update --help`}),` and `,_jsx(_components.code,{children:`orq responses create --help`}),` for the full flag reference.`]})]})]}),`\n`,_jsxs(_components.p,{children:[`Each invocation records the values it received as the `,_jsx(_components.code,{children:`orq.variables`}),` span attribute. Open `,_jsx(_components.strong,{children:`Traces`}),`, select the step, and read them under `,_jsx(_components.strong,{children:`Metadata`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`add-tools`,children:`Add Tools`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`AI Studio`,icon:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=ac04dd509320d58ab9701cb6d6137733`,\"data-og-width\":`100`,width:`100`,\"data-og-height\":`100`,height:`100`,\"data-path\":`images/logos/ai-studio-round.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=280\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=d9df8d5b2ef07a766e62eaa0623240cd 280w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=560\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3c40989d2bc47d1ec6d05f8eb3a585dd 560w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=840\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=2c40a18399d00e68a15d7d1262484486 840w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3e853add10f479adccee3068427de43d 1100w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=71d1130736022278f4de6d95e7583c9b 1650w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=41a312377a09cf0f6da1edb9b02b695c 2500w`,id:`ai-studio-7`,children:[_jsx(_components.p,{children:`Tools extend the agent’s capabilities by allowing it to interact with external systems, execute code, or fetch information. Add tools from the Tool selection modal.`}),_jsx(Frame,{caption:`Browse the tool library to find all tools available in the Project.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/jgYoTEfpq7TuJGM3/images/agent-adding-tool.png?fit=max\u0026auto=format\u0026n=jgYoTEfpq7TuJGM3\u0026q=85\u0026s=016c3a0f05f7978e1fbd3bebfc02f304`,alt:`Tool library showing available tools including Web search, Current date, Write memory store, Delete memory document, http_tool, python_tool, and others.`,\"data-og-width\":`1341`,width:`1341`,\"data-og-height\":`801`,height:`801`,\"data-path\":`images/agent-adding-tool.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/jgYoTEfpq7TuJGM3/images/agent-adding-tool.png?w=280\u0026fit=max\u0026auto=format\u0026n=jgYoTEfpq7TuJGM3\u0026q=85\u0026s=4b21d28e6a1e85c42e158bd39d4ac0f1 280w, https://mintcdn.com/orqai/jgYoTEfpq7TuJGM3/images/agent-adding-tool.png?w=560\u0026fit=max\u0026auto=format\u0026n=jgYoTEfpq7TuJGM3\u0026q=85\u0026s=07700a28a0d44386fb7ffb8372596883 560w, https://mintcdn.com/orqai/jgYoTEfpq7TuJGM3/images/agent-adding-tool.png?w=840\u0026fit=max\u0026auto=format\u0026n=jgYoTEfpq7TuJGM3\u0026q=85\u0026s=3d2330ee0e043568d721fb666fd6badb 840w, https://mintcdn.com/orqai/jgYoTEfpq7TuJGM3/images/agent-adding-tool.png?w=1100\u0026fit=max\u0026auto=format\u0026n=jgYoTEfpq7TuJGM3\u0026q=85\u0026s=0a97958e0362c205b7c0af071965e4cc 1100w, https://mintcdn.com/orqai/jgYoTEfpq7TuJGM3/images/agent-adding-tool.png?w=1650\u0026fit=max\u0026auto=format\u0026n=jgYoTEfpq7TuJGM3\u0026q=85\u0026s=adaae89c786f35e893a39a4083127ba9 1650w, https://mintcdn.com/orqai/jgYoTEfpq7TuJGM3/images/agent-adding-tool.png?w=2500\u0026fit=max\u0026auto=format\u0026n=jgYoTEfpq7TuJGM3\u0026q=85\u0026s=9afc629eed54a72e413931ba53995123 2500w`})})]}),_jsx(Tab,{title:`API \u0026 SDK`,icon:`code`,id:`api-%26-sdk-7`,children:_jsxs(_components.p,{children:[`Declare tools in the `,_jsx(_components.code,{children:`settings.tools`}),` array when creating or updating an agent.`]})}),_jsxs(Tab,{title:`MCP`,icon:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=85ff775ba1532474fb9d6b4e81adc322`,\"data-og-width\":`16`,width:`16`,\"data-og-height\":`16`,height:`16`,\"data-path\":`images/logos/mcp.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=280\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=180551a6d1b3b915c5f0b83e34e5bc0d 280w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=560\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=e5a06a9650d340698043766e024c7766 560w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=840\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=3fcbab367f8208f504acc6f00b6f6830 840w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=a0c4c5b285447d27d21e394c3576f701 1100w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=866eb1cb70e44a2035ec43c6364f13f3 1650w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=8925e81917c2cd7c2e94b2cc14560a77 2500w`,id:`mcp-5`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Add a standard tool to an agent:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Add the google_search and current_date tools to the \"research-bot\" agent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`update_agent`}),` with the updated `,_jsx(_components.code,{children:`settings.tools`}),` array.`]}),_jsx(_components.hr,{}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Add a custom tool by key:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Add the HTTP tool with key \"weather_api\" to the \"weather-bot\" agent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`update_agent`}),` with `,_jsx(_components.code,{children:`{\"type\": \"http\", \"key\": \"weather_api\"}`}),` in `,_jsx(_components.code,{children:`settings.tools`}),`.`]})]}),_jsxs(Tab,{title:`CLI`,icon:`terminal`,id:`cli-6`,children:[_jsxs(_components.p,{children:[`Declare tools in the `,_jsx(_components.code,{children:`settings.tools`}),` array using `,_jsx(_components.a,{href:`/reference/cli`,children:_jsx(_components.code,{children:`orq agents update`})}),`:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --settings`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"tools\": [{\"type\": \"google_search\"}, {\"type\": \"current_date\"}]}'`})]}),`\n`]})})}),_jsxs(Tip,{children:[`See `,_jsx(_components.a,{href:`/reference/cli`,children:`install and setup`}),` to get started with the CLI. Run `,_jsx(_components.code,{children:`orq agents update --help`}),` for the full flag reference.`]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`standard-tools`,children:`Standard Tools`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`AI Studio`,icon:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=ac04dd509320d58ab9701cb6d6137733`,\"data-og-width\":`100`,width:`100`,\"data-og-height\":`100`,height:`100`,\"data-path\":`images/logos/ai-studio-round.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=280\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=d9df8d5b2ef07a766e62eaa0623240cd 280w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=560\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3c40989d2bc47d1ec6d05f8eb3a585dd 560w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=840\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=2c40a18399d00e68a15d7d1262484486 840w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3e853add10f479adccee3068427de43d 1100w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=71d1130736022278f4de6d95e7583c9b 1650w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=41a312377a09cf0f6da1edb9b02b695c 2500w`,id:`ai-studio-8`,children:[_jsx(_components.p,{children:`The following tools are available to all agents out of the box:`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Tool`}),_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Current Date`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`current_date`})}),_jsx(_components.td,{children:`Provides the current date to the model`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Web Search`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`google_search`})}),_jsx(_components.td,{children:`Lets an agent perform a web search`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Web Scraper`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`web_scraper`})}),_jsx(_components.td,{children:`Lets an agent scrape a web page`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Query Memory Store`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`query_memory_store`})}),_jsxs(_components.td,{children:[`Lets an agent query a `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/build-agents#connect-memory-stores`,children:`Memory Store`}),`. Added automatically when using a Memory Store.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Retrieve Memory Stores`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`retrieve_memory_stores`})}),_jsxs(_components.td,{children:[`Lets an agent fetch `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/build-agents#connect-memory-stores`,children:`Memory Stores`}),`. Added automatically when using a Memory Store.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Write Memory Store`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`write_memory_store`})}),_jsxs(_components.td,{children:[`Lets an agent save to a `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/build-agents#connect-memory-stores`,children:`Memory Store`}),`. Added automatically when using a Memory Store.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Delete Memory Document`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`delete_memory_document`})}),_jsx(_components.td,{children:`Lets an agent delete a memory document. Added automatically when using a Memory Store.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Query Knowledge Base`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`query_knowledge_base`})}),_jsxs(_components.td,{children:[`Lets an agent query a `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/build-agents#connect-knowledge-bases`,children:`Knowledge Base`}),`. Added automatically when using a Knowledge Base.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Retrieve Knowledge Bases`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`retrieve_knowledge_bases`})}),_jsxs(_components.td,{children:[`Lets an agent fetch a `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/build-agents#connect-knowledge-bases`,children:`Knowledge Base`}),`. Added automatically when using a Knowledge Base.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Call Sub Agent`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`call_sub_agent`})}),_jsx(_components.td,{children:`Lets an agent invoke another agent.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Retrieve Agents`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`retrieve_agents`})}),_jsx(_components.td,{children:`Lets an agent fetch other agents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Advisor`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`advisor`})}),_jsxs(_components.td,{children:[`Lets an agent consult a second, more capable model for advice. See `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/build-agents#advisor-and-sidekick-tools`,children:`Advisor and Sidekick Tools`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Sidekick`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`sidekick`})}),_jsxs(_components.td,{children:[`Lets an agent delegate a self-contained subtask to a second model. See `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/build-agents#advisor-and-sidekick-tools`,children:`Advisor and Sidekick Tools`}),`.`]})]})]})]}),_jsxs(Tip,{children:[_jsx(_components.p,{children:`Create custom tools to use within Agents:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/ai-studio/ai-engineering/create-tools#function-tool`,children:`Function Tool`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/ai-studio/ai-engineering/create-tools#http-tool`,children:`HTTP Tool`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/ai-studio/ai-engineering/create-tools#json-schema-tool`,children:`JSON Schema Tool`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/ai-gateway/mcp-portal/mcp-servers`,children:`MCP Servers`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/ai-studio/ai-engineering/create-tools#python-tool`,children:`Python Tool`})}),`\n`]})]}),_jsxs(Accordion,{title:`Best Practices: Using Tools in Agent Instructions`,icon:`wrench`,id:`best-practices-using-tools-in-agent-instructions`,children:[_jsxs(_components.p,{children:[`Agent instructions must `,_jsx(_components.strong,{children:`explicitly mention the available tools`}),` so the model knows when and how to invoke them.`]}),_jsx(_components.p,{children:`The model will not use tools unless the instructions clearly describe:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`What each tool does`}),`\n`,_jsx(_components.li,{children:`When to use it`}),`\n`,_jsx(_components.li,{children:`How to call it`}),`\n`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example: Web Search Agent`})}),_jsx(CodeBlock,{numberOfLines:`9`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`You are a research assistant. Your job is to find current information.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`**Available Tools:**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. **google_search** - Search the internet for information`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` - Use this when you need current information or factual data`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` - Provide clear search queries`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` - Example: When asked \"What are the latest AI developments?\", call google_search with \"latest AI developments 2025\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]})]}),_jsxs(Tab,{title:`API \u0026 SDK`,icon:`code`,id:`api-%26-sdk-8`,children:[_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Tool`}),_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Current Date`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`current_date`})}),_jsx(_components.td,{children:`Provides the current date to the model`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Web Search`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`google_search`})}),_jsx(_components.td,{children:`Lets an agent perform a web search`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Web Scraper`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`web_scraper`})}),_jsx(_components.td,{children:`Lets an agent scrape a web page`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Query Memory Store`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`query_memory_store`})}),_jsxs(_components.td,{children:[`Lets an agent query a `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/build-agents#connect-memory-stores`,children:`Memory Store`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Retrieve Memory Stores`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`retrieve_memory_stores`})}),_jsxs(_components.td,{children:[`Lets an agent fetch `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/build-agents#connect-memory-stores`,children:`Memory Stores`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Write Memory Store`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`write_memory_store`})}),_jsxs(_components.td,{children:[`Lets an agent save to a `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/build-agents#connect-memory-stores`,children:`Memory Store`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Delete Memory Document`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`delete_memory_document`})}),_jsx(_components.td,{children:`Lets an agent delete a memory document.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Query Knowledge Base`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`query_knowledge_base`})}),_jsxs(_components.td,{children:[`Lets an agent query a `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/build-agents#connect-knowledge-bases`,children:`Knowledge Base`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Retrieve Knowledge Bases`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`retrieve_knowledge_bases`})}),_jsxs(_components.td,{children:[`Lets an agent fetch a `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/build-agents#connect-knowledge-bases`,children:`Knowledge Base`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Call Sub Agent`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`call_sub_agent`})}),_jsx(_components.td,{children:`Lets an agent invoke another agent.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Retrieve Agents`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`retrieve_agents`})}),_jsx(_components.td,{children:`Lets an agent fetch other agents.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Advisor`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`advisor`})}),_jsxs(_components.td,{children:[`Lets an agent consult a second, more capable model for advice. See `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/build-agents#advisor-and-sidekick-tools`,children:`Advisor and Sidekick Tools`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Sidekick`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`sidekick`})}),_jsxs(_components.td,{children:[`Lets an agent delegate a self-contained subtask to a second model. See `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/build-agents#advisor-and-sidekick-tools`,children:`Advisor and Sidekick Tools`}),`.`]})]})]})]}),_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"settings\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"tools\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"current_date\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"google_search\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"web_scraper\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"query_memory_store\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"retrieve_memory_stores\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"write_memory_store\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"delete_memory_document\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"query_knowledge_base\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"retrieve_knowledge_bases\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"call_sub_agent\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"retrieve_agents\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})})]}),_jsxs(Tab,{title:`CLI`,icon:`terminal`,id:`cli-7`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --settings`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"tools\": [{\"type\": \"current_date\"}, {\"type\": \"google_search\"}, {\"type\": \"web_scraper\"}, {\"type\": \"query_memory_store\"}, {\"type\": \"retrieve_memory_stores\"}, {\"type\": \"write_memory_store\"}, {\"type\": \"delete_memory_document\"}, {\"type\": \"query_knowledge_base\"}, {\"type\": \"retrieve_knowledge_bases\"}, {\"type\": \"call_sub_agent\"}, {\"type\": \"retrieve_agents\"}]}'`})]}),`\n`]})})}),_jsxs(Tip,{children:[`See `,_jsx(_components.a,{href:`/reference/cli`,children:`install and setup`}),` to get started with the CLI. Run `,_jsx(_components.code,{children:`orq agents update --help`}),` for the full flag reference.`]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`advisor-and-sidekick-tools`,children:`Advisor and Sidekick Tools`}),`\n`,_jsxs(_components.p,{children:[`An `,_jsx(_components.strong,{children:`Agent`}),` runs every step of a conversation on a single model. That model has to be affordable enough for routine steps, yet capable enough for the hardest reasoning step in the run. Sizing the model for the hardest step makes every step expensive; sizing it for routine steps makes the agent fail exactly when quality matters most. Self-contained subtasks cause a related problem: drafting or summarizing inside the main loop fills the context window with intermediate work the conversation does not need.`]}),`\n`,_jsx(_components.p,{children:`The Advisor and Sidekick tools solve this by giving the agent a second model, configured at design time, that it can call mid-run:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Advisor`}),`: the agent consults a more capable model when it is stuck or faces a high-stakes decision. The advisor receives the recent conversation transcript plus the agent’s question and returns short, actionable guidance. The agent stays in control and produces the final answer itself.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sidekick`}),`: the agent delegates a concrete subtask (drafting, extraction, summarization, transformation) to a second model and receives only the finished result. The sidekick does not see the conversation, so the subtask runs in isolation and the main context stays small.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`This enables a cost and quality mix inside one agent: run a fast, low-cost executor model and escalate to a stronger model only in the moments that need it, without building a separate sub-agent.`}),`\n`,_jsxs(_components.p,{children:[`For both tools, the secondary model and its parameters are fixed in the tool configuration. The agent only supplies the question or task at run time. Each secondary call is metered separately and appears as a nested span in `,_jsx(_components.a,{href:`/ai-studio/observability/traces`,children:`Traces`}),`. When the secondary model call fails, the agent receives an error message as the tool result and the run continues.`]}),`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`AI Studio`}),`, add Advisor or Sidekick from the tool library and open the tool to configure the secondary model and parameters. Via the API, set the fields in the tool’s `,_jsx(_components.code,{children:`configuration`}),` object.`]}),`\n`,_jsx(Heading,{level:`4`,id:`advisor`,children:`Advisor`}),`\n`,_jsxs(_components.p,{children:[`The advisor receives the newest conversation turns within the `,_jsx(_components.code,{children:`max_transcript_tokens`}),` budget, plus the agent’s question and optional context, and replies with concise advice.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"advisor\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"configuration\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"openai/gpt-5.6-sol\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"max_uses\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`3`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"max_transcript_tokens\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`8000`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --settings`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"tools\": [{\"type\": \"advisor\", \"configuration\": {\"model\": \"openai/gpt-5.6-sol\", \"max_uses\": 3, \"max_transcript_tokens\": 8000}}]}'`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`Secondary model in `,_jsx(_components.code,{children:`provider/model`}),` format.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_uses`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Maximum advisor calls per run. `,_jsx(_components.code,{children:`0`}),` or omitted: unlimited.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_transcript_tokens`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Estimated token budget for the conversation transcript sent to the advisor. The newest turn is always included. `,_jsx(_components.code,{children:`0`}),` or omitted: full transcript.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_tokens`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Maximum output tokens for the secondary model. `,_jsx(_components.code,{children:`0`}),` or omitted: provider default.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`temperature`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Sampling temperature, `,_jsx(_components.code,{children:`0`}),` to `,_jsx(_components.code,{children:`2`}),`. Omitted: provider default.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reasoning_effort`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`One of `,_jsx(_components.code,{children:`none`}),`, `,_jsx(_components.code,{children:`minimal`}),`, `,_jsx(_components.code,{children:`low`}),`, `,_jsx(_components.code,{children:`medium`}),`, `,_jsx(_components.code,{children:`high`}),`, `,_jsx(_components.code,{children:`xhigh`}),`, `,_jsx(_components.code,{children:`max`}),`. Omitted: provider default.`]})]})]})]}),`\n`,_jsx(Heading,{level:`4`,id:`sidekick`,children:`Sidekick`}),`\n`,_jsx(_components.p,{children:`The sidekick receives only the task and optional context the agent supplies, together with the configured system prompt and output format. It returns the finished result and nothing else.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"sidekick\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"configuration\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"openai/gpt-5.6-luna\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"max_tokens\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`1024`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"system_prompt\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"You are a meticulous copy editor.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"output_format\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"a concise bulleted list\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --settings`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"tools\": [{\"type\": \"sidekick\", \"configuration\": {\"model\": \"openai/gpt-5.6-luna\", \"max_tokens\": 1024, \"output_format\": \"a concise bulleted list\"}}]}'`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`Secondary model in `,_jsx(_components.code,{children:`provider/model`}),` format.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_uses`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Maximum sidekick calls per run. `,_jsx(_components.code,{children:`0`}),` or omitted: unlimited.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`system_prompt`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Replaces the default sidekick system prompt. Omitted: platform default.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`output_format`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Free-form guidance for the shape of the result, for example `,_jsx(_components.code,{children:`a concise bulleted list`}),` or `,_jsx(_components.code,{children:`valid JSON`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_tokens`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Maximum output tokens for the secondary model. `,_jsx(_components.code,{children:`0`}),` or omitted: provider default.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`temperature`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Sampling temperature, `,_jsx(_components.code,{children:`0`}),` to `,_jsx(_components.code,{children:`2`}),`. Omitted: provider default.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reasoning_effort`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`One of `,_jsx(_components.code,{children:`none`}),`, `,_jsx(_components.code,{children:`minimal`}),`, `,_jsx(_components.code,{children:`low`}),`, `,_jsx(_components.code,{children:`medium`}),`, `,_jsx(_components.code,{children:`high`}),`, `,_jsx(_components.code,{children:`xhigh`}),`, `,_jsx(_components.code,{children:`max`}),`. Omitted: provider default.`]})]})]})]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Mention the tools in the agent instructions so the model knows when to use them, for example: “When unsure about a legal or pricing decision, ask the advisor before answering” or “Delegate document summarization to the sidekick and use its result.”`})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`model`}),` field is required. When the tool is added without a configured model, tool calls return a configuration error to the agent instead of advice or a result.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`function-tools`,children:`Function Tools`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Function tools`}),` let the model call code that runs in the application invoking the agent, not on the `,_jsx(_components.strong,{children:`Orq.ai`}),` platform. See `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/create-tools#choosing-a-tool-type`,children:`Choosing a tool type`}),` for when to use one, `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/create-tools#function-tool`,children:`Function Tool`}),` to create one, and `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/run-agents#use-tools`,children:`Use Tools`}),` for the tool loop the application runs to execute the call and return the result.`]}),`\n`,_jsxs(_components.p,{children:[`Reference a pre-created Function tool by its `,_jsx(_components.code,{children:`key`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"function\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"get_local_events\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --settings`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"tools\": [{\"type\": \"function\", \"key\": \"get_local_events\"}]}'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`python-tools`,children:`Python Tools`}),`\n`,_jsxs(_components.p,{children:[`Reference a pre-created Python tool by its `,_jsx(_components.code,{children:`key`}),`. Create Python tools first via the `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/create-tools#python-tool`,children:`Tools page`}),` or API.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"password_generator\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --settings`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"tools\": [{\"type\": \"code\", \"key\": \"password_generator\"}]}'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`http-tools`,children:`HTTP Tools`}),`\n`,_jsxs(_components.p,{children:[`Reference a pre-created HTTP tool by its `,_jsx(_components.code,{children:`key`}),`. Create HTTP tools first via the `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/create-tools#http-tool`,children:`Tools page`}),` or API.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"http\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"weather_api\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --settings`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"tools\": [{\"type\": \"http\", \"key\": \"weather_api\"}]}'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`mcp-servers`,children:`MCP Servers`}),`\n`,_jsxs(_components.p,{children:[`Reference a pre-created MCP server by its `,_jsx(_components.code,{children:`key`}),` or `,_jsx(_components.code,{children:`id`}),`, and the nested tool by its `,_jsx(_components.code,{children:`tool_id`}),`. Create MCP servers first via the `,_jsx(_components.a,{href:`/ai-gateway/mcp-portal/mcp-servers`,children:`MCP Portal`}),` or API.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"mcp\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"MCP_KEY\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"tool_id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"TOOL_ID\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --settings`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"tools\": [{\"type\": \"mcp\", \"key\": \"MCP_KEY\", \"tool_id\": \"TOOL_ID\"}]}'`})]}),`\n`]})})}),`\n`,_jsxs(Tip,{children:[`See the full `,_jsx(_components.a,{href:`/reference/agents/create-agent`,children:`Create Agent API reference`}),` for all tool configuration options.`]}),`\n`,_jsx(Heading,{level:`3`,id:`tool-approval`,children:`Tool Approval`}),`\n`,_jsxs(_components.p,{children:[`Tool approval is not supported for Agents: an Agent runs its tools without waiting for a human decision, including on `,_jsx(_components.code,{children:`POST /v3/router/responses`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`requires_approval`}),` on a tool and `,_jsx(_components.code,{children:`tool_approval_required`}),` on the Agent are accepted and stored by the Agents API, but have no effect.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`connect-knowledge-bases`,children:`Connect Knowledge Bases`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`AI Studio`,icon:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=ac04dd509320d58ab9701cb6d6137733`,\"data-og-width\":`100`,width:`100`,\"data-og-height\":`100`,height:`100`,\"data-path\":`images/logos/ai-studio-round.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=280\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=d9df8d5b2ef07a766e62eaa0623240cd 280w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=560\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3c40989d2bc47d1ec6d05f8eb3a585dd 560w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=840\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=2c40a18399d00e68a15d7d1262484486 840w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3e853add10f479adccee3068427de43d 1100w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=71d1130736022278f4de6d95e7583c9b 1650w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=41a312377a09cf0f6da1edb9b02b695c 2500w`,id:`ai-studio-9`,children:[_jsx(_components.p,{children:`Attach a Knowledge Base to ground the agent’s responses in relevant data.`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Add context`}),` in the `,_jsx(_components.strong,{children:`Context`}),` section.`]}),`\n`,_jsxs(_components.li,{children:[`Select a `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/knowledge-bases`,children:`Knowledge Base`}),`.`]}),`\n`]}),_jsxs(_components.p,{children:[`Unlike Deployments, a Knowledge Base attached to an agent is not queried on every request. The agent decides when to use the `,_jsx(_components.code,{children:`query_knowledge_base`}),` tool based on context.`]}),_jsx(Warning,{children:_jsx(_components.p,{children:`The Knowledge Base description must be explicit so the agent knows when to query it.`})}),_jsx(Info,{children:_jsxs(_components.p,{children:[`For more on building Knowledge Bases for Agents, see `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/knowledge-bases`,children:`Knowledge Bases`}),`.`]})})]}),_jsxs(Tab,{title:`API \u0026 SDK`,icon:`code`,id:`api-%26-sdk-9`,children:[_jsxs(_components.p,{children:[`Add the `,_jsx(_components.code,{children:`knowledge_bases`}),` array to the agent configuration. Include the `,_jsx(_components.code,{children:`retrieve_knowledge_bases`}),` and `,_jsx(_components.code,{children:`query_knowledge_base`}),` tools so the agent can discover and query them.`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`22`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` POST`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v2/agents`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$ORQ_API_KEY`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"key\": \"knowledge-agent\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"role\": \"Knowledge Base Assistant\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"description\": \"Answers questions from the attached knowledge bases\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"instructions\": \"Help the user. First use retrieve_knowledge_bases to see what knowledge sources are available, then query_knowledge_base to find relevant information.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"path\": \"Default/agents\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"model\": { \"id\": \"openai/gpt-5.6-luna\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"settings\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"max_iterations\": 5,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"max_execution_time\": 600,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"tools\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` { \"type\": \"retrieve_knowledge_bases\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` { \"type\": \"query_knowledge_base\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"knowledge_bases\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` { \"knowledge_id\": \"my_knowledge_base\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`21`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq_ai_sdk `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` os`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`with`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`api_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`os.getenv(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"ORQ_API_KEY\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`as`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` agent `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.agents.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"knowledge-agent\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` role`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Knowledge Base Assistant\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` description`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Answers questions from the attached knowledge bases\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` instructions`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Help the user. First use retrieve_knowledge_bases to see what knowledge sources are available, then query_knowledge_base to find relevant information.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` path`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Default/agents\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` model`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"openai/gpt-5.6-luna\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` settings`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"max_iterations\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`5`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"max_execution_time\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`600`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"tools\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"retrieve_knowledge_bases\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"query_knowledge_base\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` knowledge_bases`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`[{`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"knowledge_id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"my_knowledge_base\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` )`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`21`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { Orq } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '@orq-ai/node'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` orq`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` Orq`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({ apiKey: process.env[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'ORQ_API_KEY'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`] `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`??`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ''`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.agents.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`create`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` key: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'knowledge-agent'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` role: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'Knowledge Base Assistant'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` description: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'Answers questions from the attached knowledge bases'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` instructions: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'Help the user. First use retrieve_knowledge_bases to see what knowledge sources are available, then query_knowledge_base to find relevant information.'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` path: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'Default/agents'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` model: { id: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'openai/gpt-5.6-luna'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` settings: {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` maxIterations: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`5`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` maxExecutionTime: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`600`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` tools: [`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { type: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'retrieve_knowledge_bases'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { type: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'query_knowledge_base'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` knowledgeBases: [{ knowledgeId: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'my_knowledge_base'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`});`})}),`\n`]})})})]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`Agents must use `,_jsx(_components.code,{children:`retrieve_knowledge_bases`}),` before querying. Guide the agent with instructions like: “First use retrieve_knowledge_bases to see what knowledge sources are available, then query_knowledge_base to find relevant information.”`]})}),_jsxs(Tip,{children:[`See the full `,_jsx(_components.a,{href:`/reference/agents/create-agent`,children:`Create Agent API reference`}),` and `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/knowledge-bases`,children:`Knowledge Bases`}),` for more details.`]})]}),_jsxs(Tab,{title:`MCP`,icon:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=85ff775ba1532474fb9d6b4e81adc322`,\"data-og-width\":`16`,width:`16`,\"data-og-height\":`16`,height:`16`,\"data-path\":`images/logos/mcp.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=280\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=180551a6d1b3b915c5f0b83e34e5bc0d 280w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=560\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=e5a06a9650d340698043766e024c7766 560w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=840\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=3fcbab367f8208f504acc6f00b6f6830 840w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=a0c4c5b285447d27d21e394c3576f701 1100w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=866eb1cb70e44a2035ec43c6364f13f3 1650w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=8925e81917c2cd7c2e94b2cc14560a77 2500w`,id:`mcp-6`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Attach a knowledge base to an agent:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Add the knowledge base with ID \"product-docs\" to the \"support-bot\" agent and make sure the query and retrieve tools are included`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`update_agent`}),` with the `,_jsx(_components.code,{children:`knowledge_bases`}),` array and adds `,_jsx(_components.code,{children:`query_knowledge_base`}),` and `,_jsx(_components.code,{children:`retrieve_knowledge_bases`}),` to `,_jsx(_components.code,{children:`settings.tools`}),`.`]})]}),_jsxs(Tab,{title:`CLI`,icon:`terminal`,id:`cli-8`,children:[_jsxs(_components.p,{children:[`Attach a Knowledge Base to an existing agent using `,_jsx(_components.a,{href:`/reference/cli`,children:_jsx(_components.code,{children:`orq agents update`})}),`:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --instructions`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Help the user. First use retrieve_knowledge_bases to see what knowledge sources are available, then query_knowledge_base to find relevant information.\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --settings`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"max_iterations\": 5, \"max_execution_time\": 600, \"tools\": [{\"type\": \"retrieve_knowledge_bases\"}, {\"type\": \"query_knowledge_base\"}]}'`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --knowledge-bases`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '[{\"knowledge_id\": \"my_knowledge_base\"}]'`})]}),`\n`]})})}),_jsxs(Tip,{children:[`See `,_jsx(_components.a,{href:`/reference/cli`,children:`install and setup`}),` to get started with the CLI. Run `,_jsx(_components.code,{children:`orq agents update --help`}),` for the full flag reference.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`connect-memory-stores`,children:`Connect Memory Stores`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`AI Studio`,icon:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=ac04dd509320d58ab9701cb6d6137733`,\"data-og-width\":`100`,width:`100`,\"data-og-height\":`100`,height:`100`,\"data-path\":`images/logos/ai-studio-round.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=280\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=d9df8d5b2ef07a766e62eaa0623240cd 280w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=560\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3c40989d2bc47d1ec6d05f8eb3a585dd 560w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=840\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=2c40a18399d00e68a15d7d1262484486 840w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3e853add10f479adccee3068427de43d 1100w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=71d1130736022278f4de6d95e7583c9b 1650w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=41a312377a09cf0f6da1edb9b02b695c 2500w`,id:`ai-studio-10`,children:[_jsx(_components.p,{children:`Attach a Memory Store to give the agent persistent memory across conversations.`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Add context`}),` in the `,_jsx(_components.strong,{children:`Context`}),` section.`]}),`\n`,_jsxs(_components.li,{children:[`Select a `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/memory-stores`,children:`Memory Store`}),`.`]}),`\n`]}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`Memory Stores are created and managed through the API. To learn more, see `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/memory-stores`,children:`Using Memory Stores`}),`.`]})}),_jsxs(_components.p,{children:[`To use a Memory Store correctly, a `,_jsx(_components.strong,{children:`Memory Entity ID`}),` must be sent during agent execution. This entity ID scopes memories to a specific user or session.`]}),_jsx(Info,{children:_jsxs(_components.p,{children:[`For more on using Memory Stores with Agents, see the `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/memory-stores`,children:`Memory Stores`}),` documentation.`]})})]}),_jsxs(Tab,{title:`API \u0026 SDK`,icon:`code`,id:`api-%26-sdk-10`,children:[_jsxs(_components.p,{children:[`Add the `,_jsx(_components.code,{children:`memory_stores`}),` array to the agent configuration. Include the memory tools so the agent can discover, query, write, and delete memories.`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`22`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` POST`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v2/agents`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$ORQ_API_KEY`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"key\": \"memory-agent\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"role\": \"Memory Assistant\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"description\": \"Remembers customer details across conversations\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"instructions\": \"You have access to user memories. Use retrieve_memory_stores to find what stores are available, then query_memory_store to search for relevant information before responding.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"path\": \"Default/agents\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"model\": \"openai/gpt-5.6-luna\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"settings\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"max_iterations\": 5,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"max_execution_time\": 300,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"tools\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` { \"type\": \"retrieve_memory_stores\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` { \"type\": \"query_memory_store\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` { \"type\": \"write_memory_store\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` { \"type\": \"delete_memory_document\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"memory_stores\": [\"customer_information\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`23`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq_ai_sdk `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` os`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`with`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`api_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`os.getenv(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"ORQ_API_KEY\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`as`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` agent `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.agents.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"memory-agent\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` role`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Memory Assistant\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` description`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Remembers customer details across conversations\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` instructions`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"You have access to user memories. Use retrieve_memory_stores to find what stores are available, then query_memory_store to search for relevant information before responding.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` path`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Default/agents\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` model`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"openai/gpt-5.6-luna\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` settings`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"max_iterations\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`5`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"max_execution_time\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`300`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"tools\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"retrieve_memory_stores\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"query_memory_store\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"write_memory_store\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"delete_memory_document\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` memory_stores`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"customer_information\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` )`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`23`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { Orq } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '@orq-ai/node'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` orq`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` Orq`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({ apiKey: process.env[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'ORQ_API_KEY'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`] `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`??`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ''`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.agents.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`create`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` key: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'memory-agent'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` role: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'Memory Assistant'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` description: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'Remembers customer details across conversations'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` instructions: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'You have access to user memories. Use retrieve_memory_stores to find what stores are available, then query_memory_store to search for relevant information before responding.'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` path: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'Default/agents'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` model: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'openai/gpt-5.6-luna'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` settings: {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` maxIterations: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`5`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` maxExecutionTime: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`300`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` tools: [`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { type: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'retrieve_memory_stores'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { type: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'query_memory_store'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { type: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'write_memory_store'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { type: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'delete_memory_document'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` memoryStores: [`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'customer_information'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`});`})}),`\n`]})})})]}),_jsx(Warning,{children:_jsx(_components.p,{children:`Memory stores do not automatically save all information from conversations. Explicitly instruct the agent what to save. Without clear save instructions, the agent may miss important details.`})}),_jsxs(Tip,{children:[`Pass a `,_jsx(_components.code,{children:`memory.entity_id`}),` at execution time to scope memories to a specific user or session. See `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/run-agents#use-memory-stores`,children:`Run Agents`}),` for execution details.`]})]}),_jsxs(Tab,{title:`MCP`,icon:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=85ff775ba1532474fb9d6b4e81adc322`,\"data-og-width\":`16`,width:`16`,\"data-og-height\":`16`,height:`16`,\"data-path\":`images/logos/mcp.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=280\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=180551a6d1b3b915c5f0b83e34e5bc0d 280w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=560\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=e5a06a9650d340698043766e024c7766 560w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=840\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=3fcbab367f8208f504acc6f00b6f6830 840w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=a0c4c5b285447d27d21e394c3576f701 1100w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=866eb1cb70e44a2035ec43c6364f13f3 1650w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=8925e81917c2cd7c2e94b2cc14560a77 2500w`,id:`mcp-7`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Attach a memory store to an agent:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Add the \"customer_information\" memory store to the \"support-bot\" agent and include all four memory tools`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`update_agent`}),` with the `,_jsx(_components.code,{children:`memory_stores`}),` array and the four memory tools in `,_jsx(_components.code,{children:`settings.tools`}),`.`]})]}),_jsxs(Tab,{title:`CLI`,icon:`terminal`,id:`cli-9`,children:[_jsxs(_components.p,{children:[`Attach a Memory Store to an existing agent using `,_jsx(_components.a,{href:`/reference/cli`,children:_jsx(_components.code,{children:`orq agents update`})}),`:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --instructions`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"You have access to user memories. Use retrieve_memory_stores to find what stores are available, then query_memory_store to search for relevant information before responding.\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --settings`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"max_iterations\": 5, \"max_execution_time\": 300, \"tools\": [{\"type\": \"retrieve_memory_stores\"}, {\"type\": \"query_memory_store\"}, {\"type\": \"write_memory_store\"}, {\"type\": \"delete_memory_document\"}]}'`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --memory-stores`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` customer_information`})]}),`\n`]})})}),_jsxs(Tip,{children:[`See `,_jsx(_components.a,{href:`/reference/cli`,children:`install and setup`}),` to get started with the CLI. Run `,_jsx(_components.code,{children:`orq agents update --help`}),` for the full flag reference.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`configure-evaluators-and-guardrails`,children:`Configure Evaluators and Guardrails`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`AI Studio`,icon:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=ac04dd509320d58ab9701cb6d6137733`,\"data-og-width\":`100`,width:`100`,\"data-og-height\":`100`,height:`100`,\"data-path\":`images/logos/ai-studio-round.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=280\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=d9df8d5b2ef07a766e62eaa0623240cd 280w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=560\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3c40989d2bc47d1ec6d05f8eb3a585dd 560w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=840\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=2c40a18399d00e68a15d7d1262484486 840w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3e853add10f479adccee3068427de43d 1100w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=71d1130736022278f4de6d95e7583c9b 1650w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=41a312377a09cf0f6da1edb9b02b695c 2500w`,id:`ai-studio-11`,children:[_jsx(_components.p,{children:`Evaluators measure agent performance against defined criteria. Guardrails can block execution when an evaluation fails.`}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`Only pre-configured Evaluators can be attached to agents. To see available standard evaluators or create custom ones, see `,_jsx(_components.a,{href:`/ai-studio/optimize/evaluators`,children:`Evaluators`}),`.`]})}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Select an evaluator in the `,_jsx(_components.strong,{children:`Evaluators`}),` section, or a guardrail in the `,_jsx(_components.strong,{children:`Guardrails`}),` section.`]}),`\n`,_jsxs(_components.li,{children:[`Configure evaluation parameters:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Input or Output`}),`: whether to evaluate the agent’s input or its output.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sample Rate`}),` (Evaluators only): the percentage of executions that trigger evaluation, `,_jsx(_components.code,{children:`1`}),` to `,_jsx(_components.code,{children:`100`}),`, defaulting to `,_jsx(_components.code,{children:`50`}),`. A guardrail in the `,_jsx(_components.strong,{children:`Guardrails`}),` section ignores it and runs on every request.`]}),`\n`]}),`\n`]}),`\n`]}),_jsx(_components.p,{children:`Evaluators run automatically during task execution and provide performance metrics.`}),_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Output Guardrails and Streaming`}),`: When an agent is invoked with streaming enabled, output guardrails are deactivated because they cannot run on partial chunks.`]})}),_jsx(Info,{children:_jsxs(_components.p,{children:[`To learn more, see `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/deployments#evaluators-and-guardrails`,children:`Evaluators and Guardrails in Deployments`}),`.`]})})]}),_jsxs(Tab,{title:`API \u0026 SDK`,icon:`code`,id:`api-%26-sdk-11`,children:[_jsxs(_components.p,{children:[`Attach evaluators and guardrails to an agent using the `,_jsx(_components.code,{children:`evaluators`}),` and `,_jsx(_components.code,{children:`guardrails`}),` fields inside `,_jsx(_components.code,{children:`settings`}),` in the create or update payload.`]}),_jsxs(_components.p,{children:[`For the full schema of evaluator and guardrail configuration, see the `,_jsx(_components.a,{href:`/reference/agents/create-agent`,children:`Create Agent API reference`}),` and `,_jsx(_components.a,{href:`/ai-studio/optimize/evaluators`,children:`Evaluators`}),`.`]}),_jsxs(Tip,{children:[`Use `,_jsx(_components.a,{href:`/reference/agents/update-agent`,children:_jsx(_components.code,{children:`PATCH /v2/agents/{key}`})}),` to add or update evaluators and guardrails on an existing agent without recreating it.`]})]}),_jsxs(Tab,{title:`MCP`,icon:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=85ff775ba1532474fb9d6b4e81adc322`,\"data-og-width\":`16`,width:`16`,\"data-og-height\":`16`,height:`16`,\"data-path\":`images/logos/mcp.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=280\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=180551a6d1b3b915c5f0b83e34e5bc0d 280w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=560\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=e5a06a9650d340698043766e024c7766 560w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=840\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=3fcbab367f8208f504acc6f00b6f6830 840w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=a0c4c5b285447d27d21e394c3576f701 1100w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=866eb1cb70e44a2035ec43c6364f13f3 1650w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=8925e81917c2cd7c2e94b2cc14560a77 2500w`,id:`mcp-8`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Add an evaluator to an agent:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Add the \"response-quality\" LLM evaluator to the \"support-bot\" agent, configured for output evaluation`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`update_agent`}),` with the `,_jsx(_components.code,{children:`evaluators`}),` field.`]}),_jsx(_components.hr,{}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Add a guardrail:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Add a guardrail to \"support-bot\" that blocks responses when the toxicity evaluator score is above 0.8`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`update_agent`}),` with the `,_jsx(_components.code,{children:`guardrails`}),` field.`]})]}),_jsxs(Tab,{title:`CLI`,icon:`terminal`,id:`cli-10`,children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`evaluators`}),` and `,_jsx(_components.code,{children:`guardrails`}),` are fields inside `,_jsx(_components.code,{children:`settings`}),`, reachable through the existing `,_jsx(_components.code,{children:`--settings`}),` flag on `,_jsx(_components.a,{href:`/reference/cli`,children:_jsx(_components.code,{children:`orq agents update`})}),`:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --settings`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"evaluators\": [{\"id\": \"response-quality\", \"execute_on\": \"output\", \"sample_rate\": 100}], \"guardrails\": [{\"id\": \"toxicity-guardrail\", \"execute_on\": \"output\", \"sample_rate\": 100}]}'`})]}),`\n`]})})}),_jsxs(Tip,{children:[`See `,_jsx(_components.a,{href:`/reference/cli`,children:`install and setup`}),` to get started with the CLI. Run `,_jsx(_components.code,{children:`orq agents update --help`}),` for the full flag reference.`]})]})]}),`\n`,_jsxs(_components.p,{children:[`Evaluators and guardrails attached to an agent run with the Evaluator’s timeout, or 60 seconds if it has none. The `,_jsx(_components.code,{children:`settings.evaluators[]`}),` and `,_jsx(_components.code,{children:`settings.guardrails[]`}),` entries have no `,_jsx(_components.code,{children:`timeout`}),` field, so the execution limit cannot be changed on the agent.`]}),`\n`,_jsx(_components.p,{children:`To bound a guardrail explicitly, pass it inline on the invoke request instead:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"agent/support-bot\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Summarize the latest escalation.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"guardrails\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"toxicity-guardrail\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"execute_on\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"output\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"is_guardrail\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`true`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`\"timeout\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`15000`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Request-level guardrails are honored on agent invokes, and each entry carries its own `,_jsx(_components.code,{children:`timeout`}),`, defaulting to the Evaluator’s timeout, or 60 seconds if it has none, and capped at 10 minutes. See `,_jsx(_components.a,{href:`/ai-gateway/configuration/guardrails#timeout`,children:`Guardrail timeout`}),`. An output guardrail does not run when the agent is invoked with `,_jsx(_components.code,{children:`stream: true`}),`, because it cannot gate a response that has already been streamed.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`An evaluator attached both on the agent and inline runs twice, because `,_jsx(_components.strong,{children:`Orq.ai`}),` does not dedupe agent settings against the request. Remove it from the agent when using the inline workaround.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`configure-runtime-constraints`,children:`Configure Runtime Constraints`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`AI Studio`,icon:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=ac04dd509320d58ab9701cb6d6137733`,\"data-og-width\":`100`,width:`100`,\"data-og-height\":`100`,height:`100`,\"data-path\":`images/logos/ai-studio-round.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=280\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=d9df8d5b2ef07a766e62eaa0623240cd 280w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=560\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3c40989d2bc47d1ec6d05f8eb3a585dd 560w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=840\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=2c40a18399d00e68a15d7d1262484486 840w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3e853add10f479adccee3068427de43d 1100w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=71d1130736022278f4de6d95e7583c9b 1650w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=41a312377a09cf0f6da1edb9b02b695c 2500w`,id:`ai-studio-12`,children:[_jsxs(_components.p,{children:[`Control resource usage and execution limits from the `,_jsx(_components.strong,{children:`Runtime Constraints`}),` section.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Constraint`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Max. Turns`})}),_jsx(_components.td,{children:`Maximum number of LLM reasoning iterations per response. Defaults to 100.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Max. Execution Time`})}),_jsx(_components.td,{children:`Maximum accumulated model time across iterations, in seconds. Defaults to 600.`})]})]})]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`Max. Turns and Max. Execution Time compound: an agent requiring many reasoning steps can hit both limits simultaneously. `,_jsx(_components.code,{children:`max_execution_time`}),` counts only LLM thinking time; tool call and sub-agent call duration is excluded. Start conservative and increase as needed.`]})}),_jsx(Note,{children:_jsxs(_components.p,{children:[`Agents are run and scaled by `,_jsx(_components.strong,{children:`Orq.ai`}),`. No infrastructure setup required.`]})})]}),_jsxs(Tab,{title:`API \u0026 SDK`,icon:`code`,id:`api-%26-sdk-12`,children:[_jsxs(_components.p,{children:[`Set constraints in the `,_jsx(_components.code,{children:`settings`}),` object:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_iterations`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Maximum number of LLM reasoning iterations. Minimum 1, maximum 100, default 100.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_execution_time`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Maximum accumulated model time across iterations, in seconds. Excludes tool call and sub-agent call time. Minimum 2, maximum 600, default 600.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max_cost`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Maximum cost in USD for the agent execution. The agent stops when accumulated cost reaches the limit. Minimum 0, default 0, which means no cap. Only supported in v3 responses.`})]})]})]}),_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"settings\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"max_iterations\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`5`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \"max_execution_time\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`300`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`Update constraints on an existing agent with `,_jsx(_components.code,{children:`PATCH /v2/agents/{key}`}),`.`]})]}),_jsxs(Tab,{title:`MCP`,icon:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=85ff775ba1532474fb9d6b4e81adc322`,\"data-og-width\":`16`,width:`16`,\"data-og-height\":`16`,height:`16`,\"data-path\":`images/logos/mcp.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=280\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=180551a6d1b3b915c5f0b83e34e5bc0d 280w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=560\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=e5a06a9650d340698043766e024c7766 560w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=840\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=3fcbab367f8208f504acc6f00b6f6830 840w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=a0c4c5b285447d27d21e394c3576f701 1100w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=866eb1cb70e44a2035ec43c6364f13f3 1650w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=8925e81917c2cd7c2e94b2cc14560a77 2500w`,id:`mcp-9`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Update execution constraints:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Set the max iterations to 10 and max execution time to 600 seconds on the \"research-bot\" agent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`update_agent`}),` with the updated `,_jsx(_components.code,{children:`settings.max_iterations`}),` and `,_jsx(_components.code,{children:`settings.max_execution_time`}),` fields.`]})]}),_jsxs(Tab,{title:`CLI`,icon:`terminal`,id:`cli-11`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --settings`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{\"max_iterations\": 5, \"max_execution_time\": 300}'`})]}),`\n`]})})}),_jsxs(Tip,{children:[`See `,_jsx(_components.a,{href:`/reference/cli`,children:`install and setup`}),` to get started with the CLI. Run `,_jsx(_components.code,{children:`orq agents update --help`}),` for the full flag reference.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`expose-an-agent-via-a2a`,children:`Expose an Agent via A2A`}),`\n`,_jsxs(_components.p,{children:[`Each internal Agent has its own endpoint on the `,_jsx(_components.a,{href:`https://a2a-protocol.org/latest/`,children:`A2A Protocol`}),`, so an application or agent framework built outside `,_jsx(_components.strong,{children:`Orq.ai`}),` can call it by URL. Open the Agent in AI Studio, expand `,_jsx(_components.strong,{children:`Expose via A2A`}),` in the `,_jsx(_components.strong,{children:`Settings`}),` panel, and copy the connection details.`]}),`\n`,_jsxs(Frame,{caption:`The Expose via A2A panel with the Agent URL, the Agent card URL, and the scope the calling API key needs.`,children:[_jsx(OptimizedImage,{className:`mint-block dark:mint-hidden`,loading:`lazy`,src:`https://mintcdn.com/orqai/l2hZZV6M24pdY2de/images/agent-expose-a2a-light-419.png?fit=max\u0026auto=format\u0026n=l2hZZV6M24pdY2de\u0026q=85\u0026s=e29c1e04c653b8323c8395172a53a1f3`,alt:`Expose via A2A panel in light theme listing an Agent URL, an Agent card URL, and a required a2a.execute scope, each with a copy button.`,\"data-og-width\":`527`,width:`527`,\"data-og-height\":`440`,height:`440`,\"data-path\":`images/agent-expose-a2a-light-419.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/l2hZZV6M24pdY2de/images/agent-expose-a2a-light-419.png?w=280\u0026fit=max\u0026auto=format\u0026n=l2hZZV6M24pdY2de\u0026q=85\u0026s=95af96bc47e662a43214594914ff5f59 280w, https://mintcdn.com/orqai/l2hZZV6M24pdY2de/images/agent-expose-a2a-light-419.png?w=560\u0026fit=max\u0026auto=format\u0026n=l2hZZV6M24pdY2de\u0026q=85\u0026s=d7b4192e29ccbd8fe5be302824d7a411 560w, https://mintcdn.com/orqai/l2hZZV6M24pdY2de/images/agent-expose-a2a-light-419.png?w=840\u0026fit=max\u0026auto=format\u0026n=l2hZZV6M24pdY2de\u0026q=85\u0026s=f4d83b198051b44b24e61e051df9c974 840w, https://mintcdn.com/orqai/l2hZZV6M24pdY2de/images/agent-expose-a2a-light-419.png?w=1100\u0026fit=max\u0026auto=format\u0026n=l2hZZV6M24pdY2de\u0026q=85\u0026s=851aa9f049e0a3fb0a27fe09c0fc2bd0 1100w, https://mintcdn.com/orqai/l2hZZV6M24pdY2de/images/agent-expose-a2a-light-419.png?w=1650\u0026fit=max\u0026auto=format\u0026n=l2hZZV6M24pdY2de\u0026q=85\u0026s=d5566574855f1105c6134c455ad4cd93 1650w, https://mintcdn.com/orqai/l2hZZV6M24pdY2de/images/agent-expose-a2a-light-419.png?w=2500\u0026fit=max\u0026auto=format\u0026n=l2hZZV6M24pdY2de\u0026q=85\u0026s=67f0ff9428d9aa6b6623a42b732f8e46 2500w`}),_jsx(OptimizedImage,{className:`mint-hidden dark:mint-block`,loading:`lazy`,src:`https://mintcdn.com/orqai/l2hZZV6M24pdY2de/images/agent-expose-a2a-dark-419.png?fit=max\u0026auto=format\u0026n=l2hZZV6M24pdY2de\u0026q=85\u0026s=69e43f7b793d92da4f59c71440803d7b`,alt:`Expose via A2A panel in dark theme listing an Agent URL, an Agent card URL, and a required a2a.execute scope, each with a copy button.`,\"data-og-width\":`527`,width:`527`,\"data-og-height\":`440`,height:`440`,\"data-path\":`images/agent-expose-a2a-dark-419.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/l2hZZV6M24pdY2de/images/agent-expose-a2a-dark-419.png?w=280\u0026fit=max\u0026auto=format\u0026n=l2hZZV6M24pdY2de\u0026q=85\u0026s=fea0b9edff3e7b701bc707e5c96ceec1 280w, https://mintcdn.com/orqai/l2hZZV6M24pdY2de/images/agent-expose-a2a-dark-419.png?w=560\u0026fit=max\u0026auto=format\u0026n=l2hZZV6M24pdY2de\u0026q=85\u0026s=32fb1e4dc79a5e464ef319d0e791cd4e 560w, https://mintcdn.com/orqai/l2hZZV6M24pdY2de/images/agent-expose-a2a-dark-419.png?w=840\u0026fit=max\u0026auto=format\u0026n=l2hZZV6M24pdY2de\u0026q=85\u0026s=ef8ff43bbe38562029126591a6515ee6 840w, https://mintcdn.com/orqai/l2hZZV6M24pdY2de/images/agent-expose-a2a-dark-419.png?w=1100\u0026fit=max\u0026auto=format\u0026n=l2hZZV6M24pdY2de\u0026q=85\u0026s=7063db69c4ea78f54ae4eb53874f287e 1100w, https://mintcdn.com/orqai/l2hZZV6M24pdY2de/images/agent-expose-a2a-dark-419.png?w=1650\u0026fit=max\u0026auto=format\u0026n=l2hZZV6M24pdY2de\u0026q=85\u0026s=9bdb248a6efeeccbbab1d453b099bb8c 1650w, https://mintcdn.com/orqai/l2hZZV6M24pdY2de/images/agent-expose-a2a-dark-419.png?w=2500\u0026fit=max\u0026auto=format\u0026n=l2hZZV6M24pdY2de\u0026q=85\u0026s=99894a64565228b29b21d5ae15f14731 2500w`})]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Use`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Agent URL`})}),_jsx(_components.td,{children:`Endpoint an A2A client sends messages to`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Agent card URL`})}),_jsx(_components.td,{children:`Discovery document the client reads first, including the Agent’s skills`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The calling API key needs `,_jsx(_components.code,{children:`a2a.execute`}),`, which comes with `,_jsx(_components.strong,{children:`All`}),` permissions or `,_jsx(_components.strong,{children:`Restricted`}),` with `,_jsx(_components.strong,{children:`Write`}),` access to `,_jsx(_components.strong,{children:`External agents`}),`, and access to the Agent’s Project. Create the key under `,_jsx(_components.a,{href:`/ai-studio/organization/api-keys`,children:`API Keys`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`call-the-agent-from-an-a2a-client`,children:`Call the Agent from an A2A client`}),`\n`,_jsxs(_components.p,{children:[`An A2A client reads the card, then sends messages to the Agent URL. This client prints the Agent’s answer, or the task state when the Agent needs more input, and reads the key from `,_jsx(_components.code,{children:`ORQ_API_KEY`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`31`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`31`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` asyncio`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` os`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` httpx`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` a2a.client `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` A2ACardResolver, ClientConfig, ClientFactory`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` a2a.types `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Message, Part, Role, SendMessageRequest, TaskState`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`AGENT_URL`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"https://my.orq.ai/v2/a2a/my-agent\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`async`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` def`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` main`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`() -> `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`None`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` headers `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`f`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Bearer `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`{`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'ORQ_API_KEY'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`]`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`}`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` async`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` with`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` httpx.AsyncClient(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`headers`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`headers) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`as`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` http:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` card `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` A2ACardResolver(http, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`AGENT_URL`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`).get_agent_card()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` client `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` ClientFactory(ClientConfig(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`httpx_client`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`http, `}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`streaming`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`False`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)).create(card)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` request `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` SendMessageRequest(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` message`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`Message(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` message_id`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"message-1\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` role`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`Role.`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`ROLE_USER`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` parts`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`[Part(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`text`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Summarize the latest customer question.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` async`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` for`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` event `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`in`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` client.send_message(request):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` if`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` event.HasField(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(event.message.parts[`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`0`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`].text)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` elif`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` event.HasField(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"task\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(TaskState.Name(event.task.status.state))`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`asyncio.run(main())`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Install the client library with `,_jsx(_components.code,{children:`pip install a2a-sdk`}),`. Transport bindings, message shapes, and ingress limits are on `,_jsx(_components.a,{href:`/ai-gateway/features/agents-gateway#expose-an-internal-agent-through-a2a`,children:`Agents Gateway`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`versions`,children:`Versions`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`AI Studio`,icon:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=ac04dd509320d58ab9701cb6d6137733`,\"data-og-width\":`100`,width:`100`,\"data-og-height\":`100`,height:`100`,\"data-path\":`images/logos/ai-studio-round.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=280\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=d9df8d5b2ef07a766e62eaa0623240cd 280w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=560\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3c40989d2bc47d1ec6d05f8eb3a585dd 560w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=840\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=2c40a18399d00e68a15d7d1262484486 840w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=3e853add10f479adccee3068427de43d 1100w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=71d1130736022278f4de6d95e7583c9b 1650w, https://mintcdn.com/orqai/My16MDKJXrKALEHC/images/logos/ai-studio-round.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=My16MDKJXrKALEHC\u0026q=85\u0026s=41a312377a09cf0f6da1edb9b02b695c 2500w`,id:`ai-studio-13`,children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Versions`}),` toggle shows the full history of all published agent configurations. Select `,_jsx(_components.strong,{children:`Versions`}),` next to `,_jsx(_components.strong,{children:`Settings`}),` in the left panel to open it.`]}),_jsx(Frame,{caption:`The Versions panel shows the full history of published agent configurations with environment assignments.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/rxxFUqxDybznrW27/images/agent-versions.png?fit=max\u0026auto=format\u0026n=rxxFUqxDybznrW27\u0026q=85\u0026s=b3960ac97a6906c62d8a86e92e7cf229`,alt:`Versions panel below the Settings and Versions toggles, listing v4.1.0 (latest, beta_env), v4.0.0 (production), v3.0.0, and v2.0.0, each with author and timestamp.`,\"data-og-width\":`586`,width:`586`,\"data-og-height\":`378`,height:`378`,\"data-path\":`images/agent-versions.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/rxxFUqxDybznrW27/images/agent-versions.png?w=280\u0026fit=max\u0026auto=format\u0026n=rxxFUqxDybznrW27\u0026q=85\u0026s=874a359b11b1172137a364cfb5f09175 280w, https://mintcdn.com/orqai/rxxFUqxDybznrW27/images/agent-versions.png?w=560\u0026fit=max\u0026auto=format\u0026n=rxxFUqxDybznrW27\u0026q=85\u0026s=9669eb3c06ff46a90541cf7da7600d40 560w, https://mintcdn.com/orqai/rxxFUqxDybznrW27/images/agent-versions.png?w=840\u0026fit=max\u0026auto=format\u0026n=rxxFUqxDybznrW27\u0026q=85\u0026s=fa6b951c970818017b00ea2cdef9382f 840w, https://mintcdn.com/orqai/rxxFUqxDybznrW27/images/agent-versions.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rxxFUqxDybznrW27\u0026q=85\u0026s=c12d211c00d74386676dbe6d037e925e 1100w, https://mintcdn.com/orqai/rxxFUqxDybznrW27/images/agent-versions.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rxxFUqxDybznrW27\u0026q=85\u0026s=2a0fa56b496b631833c81e58baee6e10 1650w, https://mintcdn.com/orqai/rxxFUqxDybznrW27/images/agent-versions.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rxxFUqxDybznrW27\u0026q=85\u0026s=14b710919439b40c400e59a76f458fd1 2500w`})}),_jsxs(_components.p,{children:[`Each version entry shows the version number, author, timestamp, optional commit message, and any assigned environment badges (e.g. `,_jsx(_components.code,{children:`latest`}),`, `,_jsx(_components.code,{children:`production`}),`).`]})]}),_jsxs(Tab,{title:`API \u0026 SDK`,icon:`code`,id:`api-%26-sdk-13`,children:[_jsxs(_components.p,{children:[`A PATCH publishes a new version when it changes the agent’s run definition, such as its instructions, role, model, tools or execution settings. The default step is a patch bump, so an agent at `,_jsx(_components.code,{children:`1.0.0`}),` moves to `,_jsx(_components.code,{children:`1.0.1`}),`.`]}),_jsxs(_components.p,{children:[`Changes outside the run definition, such as the `,_jsx(_components.code,{children:`display_name`}),`, a `,_jsx(_components.code,{children:`path`}),` that moves the agent to another project, or `,_jsx(_components.code,{children:`variables`}),`, keep the current version. A PATCH that repeats the stored configuration publishes nothing.`]}),_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`versionIncrement`}),` to `,_jsx(_components.code,{children:`major`}),`, `,_jsx(_components.code,{children:`minor`}),` or `,_jsx(_components.code,{children:`patch`}),` to pick the step: `,_jsx(_components.code,{children:`minor`}),` turns `,_jsx(_components.code,{children:`1.2.3`}),` into `,_jsx(_components.code,{children:`1.3.0`}),`, and `,_jsx(_components.code,{children:`major`}),` into `,_jsx(_components.code,{children:`2.0.0`}),`. `,_jsx(_components.code,{children:`versionDescription`}),` (up to 300 characters) becomes the commit message on the version row in the `,_jsx(_components.strong,{children:`Versions`}),` panel.`]}),_jsxs(_components.p,{children:[`The newest version is what `,_jsx(_components.code,{children:`@latest`}),` and an unpinned key resolve to, so the next unpinned invoke runs the new configuration. A version assigned to an environment keeps its existing tag.`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` PATCH`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v2/agents/my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$ORQ_API_KEY`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"instructions\": \"Escalate refunds above $500 to a human.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"versionIncrement\": \"minor\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"versionDescription\": \"Tighter refund escalation\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`11`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq_ai_sdk `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` os`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`with`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`api_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`os.getenv(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"ORQ_API_KEY\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`as`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` agent `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.agents.update(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` agent_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"my-agent\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` instructions`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Escalate refunds above $500 to a human.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` version_increment`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"minor\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` version_description`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Tighter refund escalation\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(agent.version)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`14`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { Orq } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '@orq-ai/node'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` orq`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` Orq`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({ apiKey: process.env[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'ORQ_API_KEY'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`] `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`??`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ''`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` agent`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.agents.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`update`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` instructions: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'Escalate refunds above $500 to a human.'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` versionIncrement: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'minor'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` versionDescription: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'Tighter refund escalation'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` 'my-agent'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`);`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`console.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(agent.version);`})]}),`\n`]})})})]}),_jsxs(_components.p,{children:[`By default, invoking an agent routes to the version tagged `,_jsx(_components.strong,{children:`latest`}),`. To target a specific version, append `,_jsx(_components.code,{children:`@version-number`}),` to the agent key. Route by environment with `,_jsx(_components.code,{children:`@environment-name`}),`.`]}),_jsxs(_components.p,{children:[`A continuation request resolves the version again: a turn that passes `,_jsx(_components.code,{children:`previous_response_id`}),` with an unpinned key runs the newest version at the time of that turn, while an `,_jsx(_components.code,{children:`@version-number`}),` runs that version. A run resolves the version once when it starts and keeps it until it finishes, even if a new version is published while it runs.`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` POST`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v3/router/responses`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$ORQ_API_KEY`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"model\": \"agent/my-agent@4.0.0\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"input\": \"Hello\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`9`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq_ai_sdk `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` os`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`with`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` Orq(`}),_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:`api_key`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`os.getenv(`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"ORQ_API_KEY\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`)) `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`as`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` response `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.responses.create(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` model`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"agent/my-agent@4.0.0\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` input`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"Hello\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` print`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(response)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`10`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`import`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` { Orq } `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '@orq-ai/node'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` orq`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` new`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` Orq`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({ apiKey: process.env[`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'ORQ_API_KEY'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`] `}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`??`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` ''`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` response`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` orq.responses.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`create`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` model: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'agent/my-agent@4.0.0'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` input: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`'Hello'`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`console.`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`log`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(response);`})]}),`\n`]})})})]}),_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`@environment-name`}),` to route to whichever version is assigned to that environment:`]}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -X`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` POST`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://my.orq.ai/v3/router/responses`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`$ORQ_API_KEY`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -H`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -d`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '{ \"model\": \"agent/my-agent@production\", \"input\": \"...\" }'`})]}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`@environment-name`}),` follows the tags already assigned to a version. New environment tags can no longer be assigned (`,_jsx(_components.a,{href:`#assigning-environments`,children:`Assigning Environments`}),`): to publish a version, create an `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/agent-deployments`,children:`agent deployment`}),` and call it with `,_jsx(_components.code,{children:`agent/\u003cagent_key>@\u003cdeployment_key>`}),`.`]}),_jsxs(Tip,{children:[`See the full `,_jsx(_components.a,{href:`/reference/responses/create-response`,children:`Create Response API reference`}),`.`]})]}),_jsxs(Tab,{title:`MCP`,icon:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=85ff775ba1532474fb9d6b4e81adc322`,\"data-og-width\":`16`,width:`16`,\"data-og-height\":`16`,height:`16`,\"data-path\":`images/logos/mcp.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=280\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=180551a6d1b3b915c5f0b83e34e5bc0d 280w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=560\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=e5a06a9650d340698043766e024c7766 560w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=840\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=3fcbab367f8208f504acc6f00b6f6830 840w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=a0c4c5b285447d27d21e394c3576f701 1100w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=866eb1cb70e44a2035ec43c6364f13f3 1650w, https://mintcdn.com/orqai/E6QxcuOkIZbPb-u-/images/logos/mcp.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=E6QxcuOkIZbPb-u-\u0026q=85\u0026s=8925e81917c2cd7c2e94b2cc14560a77 2500w`,id:`mcp-10`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Retrieve agent version history:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Show me all published versions of the \"support-bot\" agent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`get_agent`}),` to retrieve the agent including its version history.`]}),_jsx(_components.hr,{}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Check the current configuration of a specific version:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`What are the instructions on version 3.0.0 of the \"support-bot\" agent?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`get_agent`}),` with the version-pinned key `,_jsx(_components.code,{children:`support-bot@3.0.0`}),`.`]}),_jsx(_components.hr,{}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Publish a new version:`})}),_jsx(CodeBlock,{filename:``,wrap:`true`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Update the \"support-bot\" instructions to escalate refunds above $500 to a human, with a minor version bump and the description \"Tighter refund escalation\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The assistant uses `,_jsx(_components.code,{children:`update_agent`}),` with `,_jsx(_components.code,{children:`versionIncrement`}),` and `,_jsx(_components.code,{children:`versionDescription`}),` inside `,_jsx(_components.code,{children:`updates`}),` on every call: the fields name the version a configuration change publishes.`]})]}),_jsxs(Tab,{title:`CLI`,icon:`terminal`,id:`cli-12`,children:[_jsx(_components.p,{children:`Invoke a version:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` responses`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` create`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --model`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agent/my-agent@4.0.0`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --input`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '\"Hello\"'`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Route by environment with `,_jsx(_components.code,{children:`@environment-name`}),`:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` responses`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` create`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --model`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agent/my-agent@production`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --input`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` '\"...\"'`})]}),`\n`]})})}),_jsx(_components.p,{children:`Publish a new version by changing the configuration and naming the bump:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`orq`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` agents`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` update`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` my-agent`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --instructions`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` 'Escalate refunds above $500 to a human.'`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --version-increment`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` minor`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --version-description`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Tighter refund escalation\"`})]}),`\n`]})})}),_jsxs(Tip,{children:[`See `,_jsx(_components.a,{href:`/reference/cli`,children:`install and setup`}),` to get started with the CLI. Run `,_jsx(_components.code,{children:`orq responses create --help`}),` and `,_jsx(_components.code,{children:`orq agents update --help`}),` for the full flag reference.`]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`comparing-changes`,children:`Comparing Changes`}),`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(`kbd`,{children:_jsx(Icon,{icon:`right-left`})}),` on any version to open the `,_jsx(_components.strong,{children:`Compare Changes`}),` view. Use the `,_jsx(_components.strong,{children:`From`}),` and `,_jsx(_components.strong,{children:`To`}),` dropdowns to compare any two versions, including `,_jsx(_components.strong,{children:`Current`}),` (unpublished working changes).`]}),`\n`,_jsx(Frame,{caption:`Compare Changes shows a side-by-side diff between any two versions.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/rxxFUqxDybznrW27/images/agent-compare-changes.png?fit=max\u0026auto=format\u0026n=rxxFUqxDybznrW27\u0026q=85\u0026s=a4441fa6b933bf167beae63391e5bd5f`,alt:`Side-by-side diff view comparing two agent versions, highlighting changed lines in the instructions field.`,\"data-og-width\":`1679`,width:`1679`,\"data-og-height\":`928`,height:`928`,\"data-path\":`images/agent-compare-changes.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/rxxFUqxDybznrW27/images/agent-compare-changes.png?w=280\u0026fit=max\u0026auto=format\u0026n=rxxFUqxDybznrW27\u0026q=85\u0026s=da26daa7d841a799597bba8d44f1bbdf 280w, https://mintcdn.com/orqai/rxxFUqxDybznrW27/images/agent-compare-changes.png?w=560\u0026fit=max\u0026auto=format\u0026n=rxxFUqxDybznrW27\u0026q=85\u0026s=5fd9b56b747593136b0b05718d9e8a32 560w, https://mintcdn.com/orqai/rxxFUqxDybznrW27/images/agent-compare-changes.png?w=840\u0026fit=max\u0026auto=format\u0026n=rxxFUqxDybznrW27\u0026q=85\u0026s=1a038efbef9fe01087007b8eb145aa78 840w, https://mintcdn.com/orqai/rxxFUqxDybznrW27/images/agent-compare-changes.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rxxFUqxDybznrW27\u0026q=85\u0026s=1e150148fd9d41ba39b24c7ca8184a35 1100w, https://mintcdn.com/orqai/rxxFUqxDybznrW27/images/agent-compare-changes.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rxxFUqxDybznrW27\u0026q=85\u0026s=eb8846a9de103a8ba601e4c5804b36e3 1650w, https://mintcdn.com/orqai/rxxFUqxDybznrW27/images/agent-compare-changes.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rxxFUqxDybznrW27\u0026q=85\u0026s=4be8ede34a07dd0aa13cccff2a9cb1e7 2500w`})}),`\n`,_jsx(_components.p,{children:`Two view modes are available:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Instructions`}),`: diff of agent instructions only.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Snapshot`}),`: full JSON diff of the complete agent configuration.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Use the `,_jsx(`kbd`,{children:_jsx(Icon,{icon:`columns`})}),` button to toggle between side-by-side and unified diff layouts.`]}),`\n`,_jsx(Heading,{level:`3`,id:`restoring-a-version`,children:`Restoring a Version`}),`\n`,_jsxs(_components.p,{children:[`Open `,_jsx(_components.strong,{children:`Compare Changes`}),` (see above), then click `,_jsx(`kbd`,{className:`key`,children:`Restore`}),` next to an older version to load it into the current working draft.`]}),`\n`,_jsxs(_components.p,{children:[`Restore does not publish automatically: the agent is loaded into the draft as unpublished changes, and `,_jsx(`kbd`,{className:`key`,children:`Publish`}),` still needs to be clicked for it to become a real version. Earlier versions are never deleted, so restoring is always reversible.`]}),`\n`,_jsxs(_components.p,{children:[`Restore replaces the full agent configuration, including connected `,_jsx(_components.strong,{children:`Knowledge Bases`}),`, `,_jsx(_components.strong,{children:`Memory Stores`}),`, `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/run-agents#multi-agent-workflows`,children:_jsx(_components.strong,{children:`Team of Agents`})}),`, `,_jsx(_components.strong,{children:`Skills`}),`, `,_jsx(_components.strong,{children:`Variables`}),`, and `,_jsx(_components.strong,{children:`Tools`}),`.`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`If there are unpublished changes already, a confirmation dialog asks for confirmation before overwriting them.`})}),`\n`,_jsx(Heading,{level:`3`,id:`assigning-environments`,children:`Assigning Environments`}),`\n`,_jsxs(_components.p,{children:[`Agent deployments replace environment tags as the way to publish an agent version. Tags already assigned to a version keep their badges and keep routing, so `,_jsx(_components.code,{children:`agent/my-agent@production`}),` still resolves to the tagged version, but new environments can no longer be assigned to agent versions.`]}),`\n`,_jsxs(_components.p,{children:[`To pin a version for callers, create an `,_jsx(_components.a,{href:`/ai-studio/ai-engineering/agent-deployments`,children:`agent deployment`}),` and call it with `,_jsx(_components.code,{children:`agent/\u003cagent_key>@\u003cdeployment_key>`}),`. When a deployment key and an environment tag have the same name, the deployment is used.`]}),`\n`,_jsx(Frame,{caption:`Environment tags are visible next to version number.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/TdSq_8EDaotSaebr/images/agent-version-envs.png?fit=max\u0026auto=format\u0026n=TdSq_8EDaotSaebr\u0026q=85\u0026s=952eb762a509c452d52d3b48675b950a`,alt:`Version row showing environment badge labels assigned to a specific version.`,style:{width:`70%`},loading:`lazy`,\"data-og-width\":`566`,width:`566`,\"data-og-height\":`739`,height:`739`,\"data-path\":`images/agent-version-envs.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/orqai/TdSq_8EDaotSaebr/images/agent-version-envs.png?w=280\u0026fit=max\u0026auto=format\u0026n=TdSq_8EDaotSaebr\u0026q=85\u0026s=a7fed6dccee845d4e7d1b21aac2aa42a 280w, https://mintcdn.com/orqai/TdSq_8EDaotSaebr/images/agent-version-envs.png?w=560\u0026fit=max\u0026auto=format\u0026n=TdSq_8EDaotSaebr\u0026q=85\u0026s=784d3b8fd75e06d40a8af1ba5ca5ff73 560w, https://mintcdn.com/orqai/TdSq_8EDaotSaebr/images/agent-version-envs.png?w=840\u0026fit=max\u0026auto=format\u0026n=TdSq_8EDaotSaebr\u0026q=85\u0026s=2b547dbfea3a9f89200bd793c3ebd793 840w, https://mintcdn.com/orqai/TdSq_8EDaotSaebr/images/agent-version-envs.png?w=1100\u0026fit=max\u0026auto=format\u0026n=TdSq_8EDaotSaebr\u0026q=85\u0026s=c4cc7d968383066514202085b5094d6b 1100w, https://mintcdn.com/orqai/TdSq_8EDaotSaebr/images/agent-version-envs.png?w=1650\u0026fit=max\u0026auto=format\u0026n=TdSq_8EDaotSaebr\u0026q=85\u0026s=7db038c3e33d17ec118bde06584358a6 1650w, https://mintcdn.com/orqai/TdSq_8EDaotSaebr/images/agent-version-envs.png?w=2500\u0026fit=max\u0026auto=format\u0026n=TdSq_8EDaotSaebr\u0026q=85\u0026s=217a01de99febec1d61db6e365f89b43 2500w`})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`To learn more about environments, see `,_jsx(_components.a,{href:`/ai-studio/organization/environments`,children:`Environments`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`test-in-the-playground`,children:`Test in the Playground`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Playground`}),` panel sends messages to the agent using its current working configuration, including unpublished changes, so instructions, tools, and model changes can be tested before publishing.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Send a message to see the agent’s response, including any tool calls it makes.`}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(`kbd`,{children:`Chat History`}),` to switch between, rename, or delete previous test conversations.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Use the `,_jsx(`kbd`,{children:`Variables`}),` button above the message input to test declared variables without calling the API. The button shows a count once the instructions declare one or more variables; click a variable to set its value, using `,_jsx(`kbd`,{children:`Open in panel`}),` for longer values. Sent values persist with the conversation until changed.`]}),`\n`,_jsx(Frame,{caption:`Testing an agent's declared variables from the Playground.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/orqai/aNfInVnkzH8Wea8e/images/variable-ai-chat.gif?s=31e5bde01d291ae5c1df4ca2ba363f20`,alt:`Playground message input with a Variables button showing a count of 2 declared variables.`,\"data-og-width\":`566`,width:`566`,\"data-og-height\":`472`,height:`472`,\"data-path\":`images/variable-ai-chat.gif`,\"data-optimize\":`true`,\"data-opv\":`3`})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`The Variables panel lists variables already declared with `,_jsx(_components.code,{children:`{{variableName}}`}),` in the instructions. Adding a new variable name is not supported from this panel; add the placeholder to the instructions first.`]})}),`\n`,_jsxs(_components.p,{children:[`Turn on `,_jsx(_components.strong,{children:`Expose in Playground`}),` in the `,_jsx(_components.strong,{children:`Playground`}),` section of `,_jsx(_components.strong,{children:`Settings`}),` to offer the agent as a target in the workspace `,_jsx(_components.a,{href:`/ai-studio/prompts/playgrounds`,children:`Playground`}),`, so it can be tested without opening the agent. The switch is part of the draft, so the agent reaches the `,_jsx(_components.strong,{children:`Playground`}),` target list once published. Registered external agents and experiment agents stay out of that list.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Build Agents","sidebarTitle":"Build Agents","description":"Build AI agents in Orq.ai: set instructions with Jinja or Mustache, pick models, and attach tools, knowledge bases, memory, and guardrails.","keywords":["mustache","jinja","template engine","agent instructions"],"href":"/ai-studio/ai-engineering/build-agents"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Create an Agent","slug":"create-an-agent","depth":2,"children":[]},{"title":"Select a Model","slug":"select-a-model","depth":2,"children":[{"title":"Structured Output","slug":"structured-output","depth":3,"children":[]},{"title":"Fallback Models","slug":"fallback-models","depth":3,"children":[]}]},{"title":"Configure Instructions","slug":"configure-instructions","depth":2,"children":[{"title":"Role and Description","slug":"role-and-description","depth":3,"children":[]},{"title":"Skills","slug":"skills","depth":3,"children":[]},{"title":"Variables and Templates","slug":"variables-and-templates","depth":3,"children":[]}]},{"title":"Add Tools","slug":"add-tools","depth":2,"children":[{"title":"Standard Tools","slug":"standard-tools","depth":3,"children":[]},{"title":"Advisor and Sidekick Tools","slug":"advisor-and-sidekick-tools","depth":3,"children":[]},{"title":"Advisor","slug":"advisor","depth":4,"children":[]},{"title":"Sidekick","slug":"sidekick","depth":4,"children":[]},{"title":"Function Tools","slug":"function-tools","depth":3,"children":[]},{"title":"Python Tools","slug":"python-tools","depth":3,"children":[]},{"title":"HTTP Tools","slug":"http-tools","depth":3,"children":[]},{"title":"MCP Servers","slug":"mcp-servers","depth":3,"children":[]},{"title":"Tool Approval","slug":"tool-approval","depth":3,"children":[]}]},{"title":"Connect Knowledge Bases","slug":"connect-knowledge-bases","depth":2,"children":[]},{"title":"Connect Memory Stores","slug":"connect-memory-stores","depth":2,"children":[]},{"title":"Configure Evaluators and Guardrails","slug":"configure-evaluators-and-guardrails","depth":2,"children":[]},{"title":"Configure Runtime Constraints","slug":"configure-runtime-constraints","depth":2,"children":[]},{"title":"Expose an Agent via A2A","slug":"expose-an-agent-via-a2a","depth":2,"children":[{"title":"Call the Agent from an A2A client","slug":"call-the-agent-from-an-a2a-client","depth":3,"children":[]}]},{"title":"Versions","slug":"versions","depth":2,"children":[{"title":"Comparing Changes","slug":"comparing-changes","depth":3,"children":[]},{"title":"Restoring a Version","slug":"restoring-a-version","depth":3,"children":[]},{"title":"Assigning Environments","slug":"assigning-environments","depth":3,"children":[]}]},{"title":"Test in the Playground","slug":"test-in-the-playground","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/orqai/41867e13ebfaa3ff/gtm.js","/_mintlify/custom/orqai/1f1a49b99957b631/commonroom-signals.js"],"dynamicCss":".mint-block {\n display: block\n}\n.mint-hidden {\n display: none\n}\n.mint-w-3\\/4 {\n width: 75%\n}\n.mint-rounded-xl {\n border-radius: 0.75rem\n}\n.dark\\:mint-block:is(.dark *) {\n display: block\n}\n.dark\\:mint-hidden:is(.dark *) {\n display: none\n}","subdomain":"orqai","siteName":"Orq.ai Documentation","title":"Build Agents - Orq.ai Documentation","contextualStarterQuestions":[{"_id":"6b075f9c764b3035ef805610","deploymentId":"68c9bcd7a1b07562da8b036b","questionText":"How do I create an agent?","status":"active","generatedBy":"contextual","path":"ai-studio/ai-engineering/build-agents","createdAt":"2026-11-25T22:22:20.157Z","updatedAt":"2026-11-25T22:22:20.157Z","__v":0},{"_id":"6b075f9c764b3035ef805611","deploymentId":"68c9bcd7a1b07562da8b036b","questionText":"What tools can I attach?","status":"active","generatedBy":"contextual","path":"ai-studio/ai-engineering/build-agents","createdAt":"2026-11-25T22:22:20.157Z","updatedAt":"2026-11-25T22:22:20.157Z","__v":0},{"_id":"6b075f9c764b3035ef805612","deploymentId":"68c9bcd7a1b07562da8b036b","questionText":"How do I set agent instructions?","status":"active","generatedBy":"contextual","path":"ai-studio/ai-engineering/build-agents","createdAt":"2026-11-25T22:22:20.157Z","updatedAt":"2026-11-25T22:22:20.157Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-25T22:22:15.026Z","originalFileLocation":"ai-studio/ai-engineering/build-agents.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Build AI agents in Orq.ai: set instructions with Jinja or Mustache, pick models, and attach tools, knowledge bases, memory, and guardrails.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Orq.ai Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Build Agents - Orq.ai Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Build AI agents in Orq.ai: set instructions with Jinja or Mustache, pick models, and attach tools, knowledge bases, memory, and guardrails.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Orq.ai Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.orq.ai/ai-studio/ai-engineering/build-agents\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://orqai.mintlify.site/_mintlify/api/og/v2?division=Managed+Agents\u0026amp;title=Build+Agents\u0026amp;description=Build+AI+agents+in+Orq.ai%3A+set+instructions+with+Jinja+or+Mustache%2C+pick+models%2C+and+attach+tools%2C+knowledge+bases%2C+memory%2C+and+guardrails.\u0026amp;theme=3624f44f3669d4325dc81433\u0026amp;signature=7b1e53713662ae213265bba85dfd5b8d0ceb4b159dd53abbf991563a3066b4b7\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Build Agents - Orq.ai Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Build AI agents in Orq.ai: set instructions with Jinja or Mustache, pick models, and attach tools, knowledge bases, memory, and guardrails.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://orqai.mintlify.site/_mintlify/api/og/v2?division=Managed+Agents\u0026amp;title=Build+Agents\u0026amp;description=Build+AI+agents+in+Orq.ai%3A+set+instructions+with+Jinja+or+Mustache%2C+pick+models%2C+and+attach+tools%2C+knowledge+bases%2C+memory%2C+and+guardrails.\u0026amp;theme=3624f44f3669d4325dc81433\u0026amp;signature=7b1e53713662ae213265bba85dfd5b8d0ceb4b159dd53abbf991563a3066b4b7\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/orqai/5zquLIiRlftT1q7X/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Orq.ai Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#027f6b\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"author\" content=\"Orq.ai\">\u003cmeta data-mint-head name=\"twitter:creator\" content=\"@orq_ai\">\u003cmeta data-mint-head name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\u003cmeta data-mint-head name=\"language\" content=\"English\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.orq.ai/ai-studio/ai-engineering/build-agents\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ai-studio/ai-engineering/build-agents.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.orq.ai/#organization\",\"name\":\"Orq.ai\",\"legalName\":\"Orq.AI Holding B.V.\",\"url\":\"https://orq.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://docs.orq.ai/images/Orq_ai_Symbol_Dark.svg\"},\"sameAs\":[\"https://github.com/orq-ai\",\"https://x.com/orq_ai\",\"https://www.linkedin.com/company/orqai/\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.orq.ai#website\",\"name\":\"Orq.ai Documentation\",\"url\":\"https://docs.orq.ai\",\"publisher\":{\"@id\":\"https://docs.orq.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.orq.ai/ai-studio/ai-engineering/build-agents#webpage\",\"url\":\"https://docs.orq.ai/ai-studio/ai-engineering/build-agents\",\"name\":\"Build Agents\",\"description\":\"Build AI agents in Orq.ai: set instructions with Jinja or Mustache, pick models, and attach tools, knowledge bases, memory, and guardrails.\",\"dateModified\":\"2026-11-25T22:22:15.026Z\",\"isPartOf\":{\"@id\":\"https://docs.orq.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.orq.ai/ai-studio/ai-engineering/build-agents#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.orq.ai/ai-studio/ai-engineering/build-agents#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Orq.ai Documentation\",\"item\":\"https://docs.orq.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Build Agents\",\"item\":\"https://docs.orq.ai/ai-studio/ai-engineering/build-agents\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.orq.ai/ai-studio/ai-engineering/build-agents#article\",\"headline\":\"Build Agents\",\"name\":\"Build Agents\",\"description\":\"Build AI agents in Orq.ai: set instructions with Jinja or Mustache, pick models, and attach tools, knowledge bases, memory, and guardrails.\",\"url\":\"https://docs.orq.ai/ai-studio/ai-engineering/build-agents\",\"mainEntityOfPage\":{\"@id\":\"https://docs.orq.ai/ai-studio/ai-engineering/build-agents#webpage\"},\"dateModified\":\"2026-11-25T22:22:15.026Z\",\"keywords\":\"mustache, jinja, template engine, agent instructions\",\"publisher\":{\"@id\":\"https://docs.orq.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.orq.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Orq.ai Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Orq.ai\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/ai-studio/ai-engineering/build-agents.md","siteName":"Orq.ai Documentation","nav":{"global":null,"tabs":[{"tab":"AI Gateway","pages":[{"title":"AI Gateway","href":"/ai-gateway/get-started/introduction"}]},{"tab":"AI Observability","pages":[{"title":"AI Observability","href":"/ai-studio/observability/quickstart"}]},{"tab":"Managed agents","groups":[{"group":"Overview","icon":"rocket","pages":[{"title":"Build an AI agent with Orq.ai","sidebarTitle":"Quickstart","href":"/ai-studio/ai-engineering/quickstart"},{"title":"Cookbooks and tutorials","sidebarTitle":"Cookbooks","mode":"wide","href":"/ai-studio/cookbooks/cookbooks"},{"title":"Marketplace","sidebarTitle":"Marketplace","description":"Browse and import pre-built evaluators from the Orq.ai Marketplace. Add them to your projects and use them in Experiments, Deployments, and Agents.","href":"/ai-studio/marketplace"}]},{"group":"Managed Agents","icon":"robot","pages":[{"title":"Build Agents","sidebarTitle":"Build Agents","href":"/ai-studio/ai-engineering/build-agents"},{"title":"Run Agents","sidebarTitle":"Run Agents","description":"Run AI agents in Orq.ai via the API, AI Studio, or MCP. Send messages, stream responses, attach files, manage task state, and trace every execution.","href":"/ai-studio/ai-engineering/run-agents"},{"title":"Agent Deployments","sidebarTitle":"Agent Deployments","href":"/ai-studio/ai-engineering/agent-deployments"},{"title":"Create Tools","sidebarTitle":"Create Tools","href":"/ai-studio/ai-engineering/create-tools"},{"title":"Skills","sidebarTitle":"Skills","href":"/ai-studio/ai-engineering/skills"},{"title":"Agent governance","sidebarTitle":"Governance","href":"/ai-studio/ai-engineering/agent-governance"},{"title":"Prompts","sidebarTitle":"Prompts","href":"/ai-studio/prompts/prompts"},{"title":"Create a Deployment","sidebarTitle":"Deployments","href":"/ai-studio/ai-engineering/deployments"}]},{"group":"Context Management","icon":"brain","pages":[{"title":"Knowledge Bases","sidebarTitle":"Knowledge Bases","href":"/ai-studio/ai-engineering/knowledge-bases"},{"title":"External Knowledge Bases","sidebarTitle":"External Knowledge Bases","href":"/ai-studio/ai-engineering/external-knowledge-bases"},{"title":"Chunking","sidebarTitle":"Chunking","href":"/ai-studio/ai-engineering/chunking"},{"title":"Memories","sidebarTitle":"Memories","href":"/ai-studio/ai-engineering/memory-stores"},{"title":"Files API","sidebarTitle":"Files","href":"/ai-studio/ai-engineering/files"}]},{"group":"Test \u0026 Evaluate","icon":"flask","pages":[{"title":"Create Playgrounds","sidebarTitle":"Playgrounds","href":"/ai-studio/prompts/playgrounds"},{"title":"Build Datasets","sidebarTitle":"Datasets","href":"/ai-studio/optimize/datasets"},{"title":"Build Experiments","sidebarTitle":"Experiments","href":"/ai-studio/optimize/experiments"},{"title":"Create Evaluators","sidebarTitle":"Evaluators","href":"/ai-studio/optimize/evaluators"},{"title":"Red Teaming","href":"/ai-studio/optimize/red-teaming"},{"title":"Agent Simulation","href":"/ai-studio/optimize/agent-simulations"}]},{"group":"Chat","icon":"https://mintlify.s3.us-west-1.amazonaws.com/orqai/images/logos/chat.svg","pages":[{"title":"Chat","sidebarTitle":"Using Chat","href":"/ai-studio/ai-chat/using-chat"}]}]},{"tab":"Administration","pages":[{"title":"Administration","href":"/ai-studio/organization/workspace-settings"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/ai-studio/integrations/overview"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/reference/client-libraries"}]},{"tab":"Cookbooks","hidden":true,"pages":[{"title":"Cookbooks","href":"/ai-studio/cookbooks/cookbooks"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/release-4-19"}]}]},"basePath":"","title":"Build Agents - Orq.ai Documentation","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":["a74be98ba7","07c022d89b"],"chunks":["zoom-image-lightbox-CIIGaZaE.js","lightbox-handle-r17bVUz3.js","Frame-D6LgX1ys.js","DynamicMarkdown-CZT_WAnN.js"]}