Search documentation
karat

+

K

User Documentation ↗

Get Agent

GET/api/v2/aipAgents/agents/{agentRid}
Warning

This endpoint is in preview and may be modified or removed at any time. To use this endpoint, add preview=true to the request query parameters.

Get details for an AIP Agent.

Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:aip-agents-read.

Path parameters

agentRid
string

An RID identifying an AIP Agent created in AIP Agent Studio.

Query parameters

version
string
optional

The version of the Agent to retrieve. If not specified, the latest published version will be returned.

preview
boolean
optional

Enables the use of preview functionality.

Response body

Agent
object
Hide child attributes

Hide child attributes

rid
string

An RID identifying an AIP Agent created in AIP Agent Studio.

version
string

The version of this instance of the Agent.

metadata
object

Metadata for an Agent.

Show child attributes

Show child attributes

displayName
string

The name of the Agent.

description
string
optional

The description for the Agent.

inputPlaceholder
string
optional

The default text to show as the placeholder input for chats with the Agent.

suggestedPrompts
list<string>
optional

Prompts to show to the user as example messages to start a conversation with the Agent.

parameters
map<ParameterId, Parameter>
optional

The types and names of parameters configured for the Agent in AIP Agent Studio. Parameters are variables in the prompt sent to an Agent that can be used to customize and control the behavior of the Agent.

Show child attributes

Show child attributes

ParameterId
string

The unique identifier for a parameter, as configured in AIP Agent Studio.

Parameter
object

A parameter configured for an Agent in AIP Agent Studio.

Show child attributes

Show child attributes

parameterType
union

Details of the types of values accepted and defaults for this parameter.

Show child attributes

Show child attributes

string
object
optional
Show child attributes

Show child attributes

defaultValue
string
optional

The default value to use for this parameter.

objectSet
object
optional
Show child attributes

Show child attributes

expectedObjectTypes
list<ObjectTypeId>
optional

The types of objects that are expected in ObjectSet values passed for this parameter.

Show child attributes

Show child attributes

ObjectTypeId
string

The unique identifier (ID) for an object type. This can be viewed in Ontology Manager.

access
string (enum)

The access mode controls how the Agent is able to interact with the parameter.

Enum values: READ_ONLY, READ_WRITE

description
string
optional

A description to explain the use of this parameter. This description is injected with the parameter value into the Agent's prompt, to provide context for when to use the parameter.

Examples

Request

Copied!
1 2 3 curl \ -H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/aipAgents/agents/ri.aip-agents..agent.732cd5b4-7ca7-4219-aabb-6e976faf63b1?preview=true"

Response

Copied!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 { "metadata": { "displayName": "Supply Chain Support Agent", "suggestedPrompts": [ "What is the status of my order?", "How do I track my shipment?" ], "description": "An intelligent assistant to help answer questions about supply chain operations.", "inputPlaceholder": "Ask about supply chain operations..." }, "rid": "ri.aip-agents..agent.732cd5b4-7ca7-4219-aabb-6e976faf63b1", "version": "1.0", "parameters": { "customerName": { "access": "READ_ONLY", "description": "The name of the customer to answer supply chain-related questions for." } } }