> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/platform/core-concepts/agent-executor.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Agent Executor

The runtime that runs every agent, how its versions work, and why the version an agent is on matters.

The **Agent Executor** is the runtime that runs your agent. You build the agent in the Agent Builder; the executor runs its conversations, whether they come from the Agent Builder, the chat widget, the API or another agent.

## Versions

The executor is released in versions, such as 1.4 and 1.5. Several versions run side by side, and each agent is pinned to one of them. An agent stays on its version until someone changes it, so a new executor release doesn't change an agent that is already running.

| Version | Status                                 |
| ------- | -------------------------------------- |
| 1.5     | Opt-in. All built-in agents run on it. |
| 1.1–1.4 | Available.                             |
| 1.0     | Deprecated.                            |

The version appears in the API path for the agent, as in `/agent-executor/1.5/agents/:agentId/trigger`. Use the version your agent is pinned to.

## Why the version matters

* **Features.** Some features work only on a newer version. Webhooks in the trigger request need 1.2 or later, agent webhooks set in Agent Config need 1.5 or later, A2A needs 1.4 or later, and features such as auto-compaction need 1.5.
* **How callers connect.** On 1.5, browsers and apps no longer use widget keys. Your server calls the agent with an API key and gives browsers and apps a short-lived access token.
* **Behavior.** An upgrade can change how the agent behaves, so test the agent after you change its version.

## Executor version and agent version

The executor version and the agent's own versions are separate:

* The **executor version** picks the runtime. Each agent has one.
* An **agent version** is a saved snapshot of the agent's configuration: a draft, numbered saved versions and one live version.

Changing one doesn't change the other. See [Commonly confused](https://docs.uptiq.ai/platform/core-concepts/commonly-confused.md).

## Learn more

{% content-ref url="/pages/93drMOZnnsM8BIO4Hwwp" %}
[Agent Executor](https://docs.uptiq.ai/platform/platform-resources/agent-executor.md)
{% endcontent-ref %}

{% content-ref url="/pages/zH9Bsg8FxRdLqitlHI8J" %}
[Runtime & Versioning](https://docs.uptiq.ai/platform/console/agent-builder/build/runtime-and-versioning.md)
{% endcontent-ref %}

{% content-ref url="/pages/T6JgYeciEEqYGeREIZGH" %}
[Embed Agent](https://docs.uptiq.ai/platform/core-concepts/embed-agent.md)
{% endcontent-ref %}

{% content-ref url="/pages/CV05J1gf2k7du41he7m3" %}
[Widget](https://docs.uptiq.ai/platform/core-concepts/widget.md)
{% endcontent-ref %}

***

{% columns %}
{% column width="83.33333333333334%" %}

<p align="right"><em>Maintained by</em> <mark style="color:green;">Abhishek Paul</mark><br><code>AI-assisted, human-approved</code></p>
{% endcolumn %}

{% column width="16.666666666666664%" %}

<div align="left"><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-d034645b4f8f8ee661985f5306b60ded3289653c%2Fmaintainer-abhishek-paul.png?alt=media" alt="" width="60"></div>
{% endcolumn %}
{% endcolumns %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/platform/core-concepts/agent-executor.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
