Space Docs
API ReferenceAi Agent

aiAgent.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
namestringYesName
descriptionstringNoDescription
providerenum(anthropic, openai, google_ai)YesProvider
modelstringYesModel
systemPromptstringNoSystem prompt
defaultTemperaturenumberNoDefault temperature
defaultMaxOutputTokensintegerYesDefault max output tokens
monthlyBudgetUsdunknownNoMonthly budget usd
apiKeystringYesApi key
inboundEnabledbooleanYesfalseInbound enabled
statusenum(active, paused, disabled)NoStatus

Example

{
  "name": "Example Name",
  "description": "A description",
  "provider": "anthropic",
  "model": "example",
  "systemPrompt": "example",
  "defaultTemperature": 0,
  "defaultMaxOutputTokens": 0,
  "apiKey": "example",
  "inboundEnabled": false
}

On this page