Returns the details of an existing agent by ID, optionally for a specific revision or the published revision.
The ID of the agent to retrieve. To get a list of agent IDs make a List agents request.
If true, returns the agent's published revision; returns an error if the agent has no published revision. Defaults to false, which returns the latest revision.
Optional ID of a specific revision to retrieve. When set, the published field is ignored.
A successful response.
AgentRevision represents a configured agent and the settings of the requested revision.
The email address of the user who created the agent.
The email address of the user who last updated the agent.
AgentStatus represents the lifecycle status of an agent.
- AGENT_STATUS_UNSPECIFIED: Unspecified or unknown status.
- AGENT_STATUS_DRAFT: Draft: the agent has no published revision.
- AGENT_STATUS_PUBLISHED: Published: the agent's latest revision is published, with no unpublished changes.
- AGENT_STATUS_UNPUBLISHED_CHANGES: Unpublished changes: the agent has a published revision, but a newer draft exists.
The name of the LLM model used by the agent.
The agent's instructions prompt.
The name of the LLM provider account (subscription) the agent uses to make model calls.
The name of the integration instance configured for the agent.
Additional configuration values required by the agent's integration. The applicable keys depend on the integration vendor.
The JSON schema the agent's output must conform to, if configured.
A JSON schema describing the agent's input parameters. A field may set format to integration or file
to indicate a value backed by a configured integration or an uploaded file, respectively.
The tools attached to the agent.
AgentTool represents a tool available to an agent.
The timestamp when the tool was created.
The timestamp when the tool was last updated.
AgentToolType enumerates the kinds of tools that can be attached to an agent.
- AGENT_TOOL_TYPE_UNSPECIFIED: Unspecified tool type.
- AGENT_TOOL_TYPE_WORKFLOW: A Torq workflow used as a tool.
- AGENT_TOOL_TYPE_STEP: A single Torq step used as a tool.
- AGENT_TOOL_TYPE_BUILTIN: A built-in tool provided by Torq.
- AGENT_TOOL_TYPE_MCP: A tool backed by a Model Context Protocol (MCP) server.
- AGENT_TOOL_TYPE_AGENT: Another agent used as a tool.
AgentAvailability holds which surfaces may offer an agent. Sent whole: an omitted field reads as false, so a partial message narrows the agent rather than leaving it unchanged.
Whether the agent may be offered in the workflow builder.
Whether the agent may be offered in Socrates.
Invalid bearer token. If you receive this message more than once try creating a new Client ID/Client Secret or generating a new bearer token.
You don't have permission to access this resource.