Create a new AI agent with specified configuration, tools, and knowledge bases
serverless (default) or containermanager (default)AIAgent object:
ACTIVE or INACTIVEserverless, container, or nullopenai)gpt-4o, gpt-4.1)agno)API Key for authentication
The name of the agent to create
The organization id
The agent type to create. Manager only
manager, regular, a2a, curl The agent deployment type to create. Serverless default
serverless, container The user id of the user requesting to create this agent
Target environment id to create the agent in
Is the agent use Nvidia NeMo?
Successful Response
Enumeration of the agent delegation end strategies.
Attributes: ReturnToStart: when last agent is finished and about to announce "finish" it will summarize and return to the first agent. FinishWithLast: finish at the last agent.
return-to-start, finish-with-last serverless, container personal, organizational Enumeration of possible agent statuses.
Attributes: DRAFT: Agent is in a draft state. ACTIVE: Agent is active and operational. INACTIVE: Agent is inactive and not operational.
DRAFT, ACTIVE, INACTIVE Enumeration of the agent types.
Attributes: Manager: marks the agent as a Managing agent. Regular: marks the agent as a regular agent. A2A: marks the agent as an external agent used via A2A protocol. Curl: marks the agent as an external agent used via a CURL.
manager, regular, a2a, curl Enumeration of the agent delegation types.
Attributes: Router: Marks the agent as a router agent - xpanderAI's LLM will decide which sub-agent to trigger. Sequence: Marks the agent as a sequence agent - sub-agents will delegate to other sub-agents.
router, sequence Enumeration of the agent delegation memory strategies.
Attributes: Full: The memory object will be passed completely between agents. Summarization: Between each sub-agent delegation, a summarization will occur, and a new thread will be created for each agent. OriginalInput: the sub agent will get the initial task with a fresh memory thread
full, summarization, original-input openai, nim, amazon_bedrock, huggingFace, friendlyAI, anthropic, gemini, fireworks, google_ai_studio, helicone, open_router, nebius text, markdown, json xpander, custom