For conceptual information about agents and how they work, see Agents Core Concepts.
Overview
The Agents Service enables you to:- List agents with pagination and filtering
- Get agent details including configuration, capabilities, and status
- Create agents with custom configurations
- Update agent settings for existing agents
- Delete agents when no longer needed
- Execute agents via Temporal workflows
Quick Start
List Agents
List all agents in your organization with pagination and filtering.Basic Listing
Paginated Listing
Filter by Status
List All Agents
Get Agent Details
Retrieve detailed information about a specific agent.By Agent ID
Extract Agent Information
Find Agent by Name
Create Agent
Create a new AI agent with custom configuration.Basic Agent Creation
Agent with Environment Variables
Agent with Policies
Agent with Custom Instructions
Update Agent
Update an existing agent’s configuration.Basic Update
Add Skills to Agent
Update Agent Model
Enable/Disable Agent
Delete Agent
Delete an agent.Delete with Safety Check
Execute Agent
Execute an agent via Temporal workflow.Basic Execution
Execute with Parameters
Execute with Callback
Practical Examples
The following examples show how to use the Agents Service for common real-world scenarios, such as creating, updating, and executing agents. Each example includes a short explanation of when and why you might use it.1. Agent Inventory Report
Use this pattern to generate a high-level inventory of all agents in your organization so you can understand coverage by runtime, model, skills, and integrations.2. Agent Configuration Validator
Use this validator before creating or updating agents to catch missing fields or questionable configurations early, instead of discovering issues at execution time.3. Agent Cloning
Use cloning when you want to spin up a new agent that is similar to an existing one (for a new team, environment, or experiment) while safely applying only a small set of changes.4. Bulk Agent Operations
Use bulk updates when you need to roll out the same change (such as a new default model or status) across many agents in a controlled way.Error Handling
Agent operations can fail if an agent does not exist, has an invalid configuration, or if there are connectivity or permission issues when executing workflows. The following examples show how to catchAgentError, surface useful information, and fall back to safer behavior like listing available agents.
Best Practices
1. Use Descriptive Names
Give agents clear, descriptive names and descriptions so platform teams and end users can quickly understand what each agent is responsible for.2. Validate Configuration Before Creation
Always validate agent configuration before creating it in the Control Plane so you avoid half-configured agents and confusing runtime errors.3. Use Appropriate Models for Tasks
Choose runtimes and models that match the kind of work the agent will perform, balancing capability and cost for code-heavy versus general-purpose scenarios.4. Handle Agent Lifecycle
Treat agents as long-lived resources with a lifecycle: pause when not in use, resume when needed, and retire carefully after archiving any important state or configuration.API Reference
Methods
Agent Object Structure
Execution Object Structure
Next Steps
Skills Service
Manage agent skills and capabilities
Policies Service
Configure agent policies
Runtimes Service
Configure agent runtimes