Space Docs
API ReferenceAi Agent

aiAgent.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
namestringYes—Name
descriptionstringNo—Description
providerenum(anthropic, openai, google_ai)Yes—Provider
modelstringYes—Model
systemPromptstringNo—System prompt
defaultTemperaturenumberNo—Default temperature
defaultMaxOutputTokensintegerYes—Default max output tokens
monthlyBudgetUsdunknownNo—Monthly budget usd
apiKeystringYes—Api key
inboundEnabledbooleanYesfalseInbound enabled
statusenum(active, paused, disabled)No—Status

Example

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

On this page