{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beam-ai/json-schema/beam-ai-update-agent-dto-schema.json",
  "title": "UpdateAgentDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beam-ai-agents-api-openapi.yml#/components/schemas/UpdateAgentDto",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 100
    },
    "description": {
      "type": "string",
      "maxLength": 500
    },
    "settings": {
      "$ref": "#/$defs/AgentSettingDto"
    },
    "agentConfig": {
      "$ref": "#/$defs/AgentConfig"
    },
    "vectorDbId": {
      "type": "string"
    },
    "type": {
      "enum": [
        "beam-os",
        "user-agent",
        "pre-configured-agent"
      ],
      "type": "string"
    },
    "workspaceId": {
      "type": "string"
    },
    "agentCategoryId": {
      "type": "string"
    },
    "themeIconUrl": {
      "type": "string"
    },
    "personality": {
      "type": "string"
    },
    "userAccessTokenId": {
      "type": "string"
    },
    "agentIntroMessage": {
      "type": "string"
    },
    "agentSetupMessage": {
      "type": "string"
    },
    "agentSetupSessionId": {
      "type": "string"
    },
    "skipAgentSetupSop": {
      "type": "boolean"
    },
    "isAttachmentDataPulledIn": {
      "type": "boolean"
    },
    "tools": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "templates": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AgentTaskTemplate"
      }
    },
    "preferredModel": {
      "type": "string"
    },
    "instructions": {
      "type": "string"
    }
  },
  "$defs": {
    "AgentConfig": {
      "type": "object",
      "properties": {
        "restrictions": {
          "type": "string"
        },
        "taskTemplates": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentTaskTemplate"
          }
        },
        "tools": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "llmTools": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "sop": {
          "type": "object"
        },
        "defaultTaskId": {
          "type": "string"
        },
        "workspaceId": {
          "type": "string"
        }
      }
    },
    "AgentSettingDto": {
      "type": "object",
      "properties": {
        "prompts": {
          "description": "Array of prompt templates used to guide the agent behavior.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "preferredModel": {
          "type": "string",
          "description": "Preferred AI model for this agent."
        },
        "instructions": {
          "type": "string",
          "description": "Additional instructions for agent behavior."
        }
      },
      "required": [
        "prompts"
      ]
    },
    "AgentTaskTemplate": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Template ID."
        },
        "objective": {
          "type": "string",
          "description": "Task objective."
        },
        "description": {
          "type": "string",
          "description": "Task description."
        },
        "steps": {
          "description": "Steps in this task template.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentTaskTemplateStep"
          }
        },
        "default": {
          "type": "boolean",
          "description": "Whether this is the default template."
        },
        "category": {
          "$ref": "#/$defs/AgentTaskTemplateCategory"
        },
        "lastUpdatedAt": {
          "format": "date-time",
          "type": "string",
          "description": "Last updated timestamp."
        }
      },
      "required": [
        "id",
        "objective",
        "description",
        "steps"
      ]
    },
    "AgentTaskTemplateCategory": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      }
    },
    "AgentTaskTemplateStep": {
      "type": "object",
      "properties": {
        "step": {
          "type": "string",
          "description": "Step description."
        },
        "toolId": {
          "type": "string",
          "description": "Tool ID."
        },
        "iconSrc": {
          "type": "string",
          "description": "Icon source URL."
        },
        "iconUrl": {
          "type": "string",
          "description": "Icon URL."
        },
        "beamTool": {
          "type": "boolean",
          "description": "Whether this is a Beam tool."
        },
        "gptTool": {
          "type": "boolean",
          "description": "Whether this is a GPT tool."
        },
        "consentRequired": {
          "type": "boolean",
          "description": "Whether consent is required."
        },
        "integrationId": {
          "type": "string",
          "description": "Integration ID."
        },
        "isIntegrationRequired": {
          "type": "boolean",
          "description": "Whether integration is required."
        },
        "isIntegrationConnected": {
          "type": "boolean",
          "description": "Whether integration is connected."
        },
        "integrationProvider": {
          "type": "string",
          "description": "Integration provider."
        },
        "integrationIdentifier": {
          "type": "string",
          "description": "Integration identifier."
        },
        "toolDetail": {
          "type": "object"
        },
        "integrationCustomAuthParameters": {
          "type": "object"
        }
      },
      "required": [
        "step"
      ]
    }
  }
}