Waiting for engine...
Skip to main content

aiAgentLlmCreate

Updated 

Create a language model for a specified provider account and establish associations with agents' DRAFT versions.

Description: This mutation creates a language model for a specified provider account and establishes associations with specified agents' DRAFT versions.

Input Parameters (AiAgentLlmCreateInput):

  • providerAccountId: ID! - Required. Provider account GUID.
  • name: String! - Required. Name of the LLM.
  • description: String - Optional. Description of the LLM.
  • agentIds: [ID!] - Optional. List of AI Agent IDs to associate with this LLM. This will associate to DRAFT version of those agents.

Response:

  • Returns the newly created AiAgentLlm object.

Example Request:

mutation CreateAiAgentLlm {
aiAgentLlmCreate(input: {
providerAccountId: "77196b85-9d08-4ee7-981f-65b45c11fd8b"
name: "OpenAI GPT-4o"
description: "Advanced language model for AI agents"
agentIds: ["37b35a1c-10d9-4be3-b5b9-604eb62f99f4", "4d9e7221-5cde-44dc-84f7-3175874e2725"]
}) {
id
name
description
agentVersions {
id
name
version
}
}
}

Example Response (success):


{
"data": {
"aiAgentLlmCreate": {
"id": "e505fed8-b9a2-4e66-b29e-ff33a43e7e83",
"name": "OpenAI GPT-4o",
"description": "Advanced language model for AI agents",
"agentVersions": [
{ "id": "e7fabdf1-b88e-4b3f-b0fd-eacb332073f5", "name": "Alpha", "version": "DRAFT" },
{ "id": "ba563ad1-77af-45cb-b445-aa4287e15175", "name": "Beta", "version": "DRAFT" }
]
}
}
}

aiAgentLlmCreate(
input: AiAgentLlmCreateInput!
): AiAgentLlm

Arguments​

aiAgentLlmCreate.input ● AiAgentLlmCreateInput! non-null input agent-control-tower {#input}

Type​

AiAgentLlm object agent-control-tower

On this Page