import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const agentView = await client.agents.retrieve('id');
console.log(agentView.id);{
"id": "<string>",
"name": "<string>",
"create_time_ms": 123,
"is_public": true,
"version": "<string>",
"source": {
"type": "<string>",
"npm": {
"package_name": "<string>",
"registry_url": "<string>",
"agent_setup": [
"<string>"
]
},
"pip": {
"package_name": "<string>",
"registry_url": "<string>",
"agent_setup": [
"<string>"
]
},
"object": {
"object_id": "<string>",
"agent_setup": [
"<string>"
]
},
"git": {
"repository": "<string>",
"ref": "<string>",
"agent_setup": [
"<string>"
]
}
}
}Retrieve a specific Agent by its unique identifier.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const agentView = await client.agents.retrieve('id');
console.log(agentView.id);{
"id": "<string>",
"name": "<string>",
"create_time_ms": 123,
"is_public": true,
"version": "<string>",
"source": {
"type": "<string>",
"npm": {
"package_name": "<string>",
"registry_url": "<string>",
"agent_setup": [
"<string>"
]
},
"pip": {
"package_name": "<string>",
"registry_url": "<string>",
"agent_setup": [
"<string>"
]
},
"object": {
"object_id": "<string>",
"agent_setup": [
"<string>"
]
},
"git": {
"repository": "<string>",
"ref": "<string>",
"agent_setup": [
"<string>"
]
}
}
}Documentation Index
Fetch the complete documentation index at: https://docs.runloop.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the Agent to retrieve.
Agent retrieved successfully.
An Agent represents a registered AI agent entity.
The unique identifier of the Agent.
The name of the Agent.
The creation time of the Agent (Unix timestamp milliseconds).
Whether the Agent is publicly accessible.
Optional version identifier for the Agent. For npm/pip sources this is typically a semver string (e.g. '2.0.65'). For git sources it can be a branch or tag. Omitted for object sources or when not provided.
The source configuration for the Agent.
Show child attributes
Was this page helpful?