Get agent source

agentSource(input: ProjectAgentInput!): ProjectAgentDocument!

Requires project.agents.read.

Arguments

ArgumentTypeRequired
inputProjectAgentInput!Yes

Input fields

input

ProjectAgentInput

FieldTypeRequired
projectReferenceStringNo
agentIdString!Yes
sourceTargetKindStringNo
runtimeTargetKindStringNo
targetEnvironmentIdIDNo
targetBranchIdIDNo

Response

Returns ProjectAgentDocument!. Open the type for its fields and nested types.

FieldType
idID!
nameString!
descriptionString
modelString
systemPromptString
thinkingJSON
temperatureFloat
maxStepsInt

All fields of ProjectAgentDocument.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query AgentSource($input: ProjectAgentInput!) {
  agentSource(input: $input) {
    id
    name
    allowedModels
    allToolsEnabled
    avatar
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "agentId": "00000000-0000-4000-8000-000000000001"
  }
}