{"openapi":"3.1.0","info":{"title":"Agent Builder API","description":"\n**API for Managing and Invoking AI Agents**\n- [User Guide](https://hyland.github.io/ContentIntelligence-Docs/category/user-guide)\n - [Quick Start Guide](https://hyland.github.io/ContentIntelligence-Docs/AgentBuilderPlatform/UserGuide/quickstart)\n - [Supported LLMs](https://hyland.github.io/ContentIntelligence-Docs/AgentBuilderPlatform/UserGuide/supported_llms)\n - [Authorization](https://hyland.github.io/ContentIntelligence-Docs/AgentBuilderPlatform/UserGuide/authorization)\n - [RAG (Retrieval Augmented Generation)](https://hyland.github.io/ContentIntelligence-Docs/AgentBuilderPlatform/UserGuide/rag)\n - [Tool Agent](https://hyland.github.io/ContentIntelligence-Docs/AgentBuilderPlatform/UserGuide/tool_agent)\n - [Task Agent](https://hyland.github.io/ContentIntelligence-Docs/AgentBuilderPlatform/UserGuide/task_agent)\n","version":"1.0.0"},"paths":{"/v1/agents/types":{"get":{"tags":["agent_management"],"summary":"Get Agent Types","operationId":"get_agent_types_v1_agents_types_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTypeInfoList"}}}}}}},"/v1/agents":{"get":{"tags":["agent_management"],"summary":"Get All Agents","description":"Get metadata for all agents in the current tenant as well as the global agents.","operationId":"get_all_agents_v1_agents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"is_global","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Global"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentListModel"}}}}}},"post":{"tags":["agent_management"],"summary":"Create Agent","description":"Create a new agent with an initial version and log the creation action for the tenant.","operationId":"create_agent_v1_agents_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreateModel"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentModel"}}}}}}},"/v1/agents/{agent_id}/permissions":{"get":{"tags":["agent_management"],"summary":"Get Agent Permissions","description":"Get permissions based off an agent id","operationId":"get_agent_permissions_v1_agents__agent_id__permissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPermissionModel"}}}}}},"put":{"tags":["agent_management"],"summary":"Update Agent Permissions","description":"Update the user permission restrictions for an agent in the current tenant by adding/updating required user groups.","operationId":"update_agent_permissions_v1_agents__agent_id__permissions_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPermissionModel"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPermissionModel"}}}}}}},"/v1/agents/{agent_id}/versions":{"get":{"tags":["agent_management"],"summary":"Get Agent Versions","description":"Get all versions of a specific agent for the tenant or global.","operationId":"get_agent_versions_v1_agents__agent_id__versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVersionListModel"}}}}}},"post":{"tags":["agent_management"],"summary":"Add Agent Version","description":"Update an agent by adding a new version for the current tenant.","operationId":"add_agent_version_v1_agents__agent_id__versions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdateModel"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVersionModel"}}}}}}},"/v1/agents/{agent_id}/versions/{version_id}":{"get":{"tags":["agent_management"],"summary":"Get Agent Version","description":"Get a specific version of an agent.","operationId":"get_agent_version_v1_agents__agent_id__versions__version_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"version_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVersionModel"}}}}}}},"/v1/agents/versions/batch-get":{"post":{"tags":["agent_management"],"summary":"Get Agent Versions Batch","description":"Get agents and their latest versions for a batch of agent IDs.\n \n**Batch Limits:** Maximum 100 agent IDs allowed per request.","operationId":"get_agent_versions_batch_v1_agents_versions_batch_get_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVersionsBatchRequestModel"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVersionsBatchResponseModel"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/agents/lookup":{"post":{"tags":["agent_management"],"summary":"Lookup Agent","description":"Lookup an agent based on a name and optional version label","operationId":"lookup_agent_v1_agents_lookup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLookupRequestModel"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVersionModel"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/agents/{agent_id}":{"delete":{"tags":["agent_management"],"summary":"Delete Agent","description":"Delete an agent and corresponding versions and permissions. Log the delete action for the current tenant.","operationId":"delete_agent_v1_agents__agent_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDeleteModel"}}}}}},"patch":{"tags":["agent_management"],"summary":"Patch Agent","description":"Update agent name and/or description for the current tenant.","operationId":"patch_agent_v1_agents__agent_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPatchModel"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentModel"}}}}}}},"/v1/models":{"get":{"tags":["agent_resources"],"summary":"Get Supported Models","description":"Retrieves a paginated list of available LLM models with their metadata.","operationId":"get_supported_models_v1_models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"filter[agentType]","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AgentType"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMModelList"}}}}}}},"/v1/guardrails":{"get":{"tags":["agent_resources"],"summary":"Get Supported Guardrails","description":"Retrieves a paginated list of available guardrails.","operationId":"get_supported_guardrails_v1_guardrails_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardrailList"}}}}}}},"/v1/agents/{agent_id}/versions/{version_id}/invoke":{"post":{"tags":["runtimes"],"summary":"Invoke Agent","description":"Invoke an agent and return the response.","operationId":"invoke_agent_v1_agents__agent_id__versions__version_id__invoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"version_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequestBaseSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}}}}},"/v1/agents/{agent_id}/versions/{version_id}/invoke-stream":{"post":{"tags":["runtimes"],"summary":"[EXPERIMENTAL] Invoke tool or rag agent with streaming response","description":"Invoke an agent and stream the response.","operationId":"invoke_agent_stream_v1_agents__agent_id__versions__version_id__invoke_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"version_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequestBaseSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/files":{"post":{"tags":["runtimes","beta"],"summary":"[EXPERIMENTAL] Create file upload session","description":"Creates a new file upload session by generating a presigned URL for direct\nS3 upload. Clients use the returned uploadUrl to upload the file directly to S3,\nbypassing the server.","operationId":"create_file_upload_v1_files_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUploadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUploadResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/agents/{agent_id}/versions/{version_id}/invoke-task":{"post":{"tags":["runtimes"],"summary":"Invoke Task","description":"Invoke a task agent using structured inputs instead of messages.\nThis endpoint forwards the request to the agent runtime for processing.","operationId":"invoke_task_v1_agents__agent_id__versions__version_id__invoke_task_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"version_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskRequestBaseSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}}}}},"/v1/agents/{agent_id}/versions/{version_id}/invoke-task-stream":{"post":{"tags":["runtimes"],"summary":"[EXPERIMENTAL] Invoke task agent with streaming response","description":"Invoke a task agent using structured inputs and stream the response.\nThis endpoint forwards the request to the agent runtime for processing.","operationId":"invoke_task_stream_v1_agents__agent_id__versions__version_id__invoke_task_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"version_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskRequestBaseSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/mcp-servers":{"post":{"tags":["mcp_servers"],"summary":"Create Mcp Server","description":"Create a new MCP server.","operationId":"create_mcp_server_v1_mcp_servers_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPServerCreateModel"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPServerModel"}}}}}},"get":{"tags":["mcp_servers"],"summary":"Get Mcp Servers","description":"Get all MCP servers for the current tenant and global servers.","operationId":"get_mcp_servers_v1_mcp_servers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPServerListModel"}}}}}}},"/v1/mcp-servers/{server_id}":{"get":{"tags":["mcp_servers"],"summary":"Get Mcp Server","description":"Get a specific MCP server by ID.","operationId":"get_mcp_server_v1_mcp_servers__server_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPServerModel"}}}}}},"put":{"tags":["mcp_servers"],"summary":"Update Mcp Server","description":"Update an existing MCP server.","operationId":"update_mcp_server_v1_mcp_servers__server_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPServerUpdateModel"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPServerModel"}}}}}},"delete":{"tags":["mcp_servers"],"summary":"Delete Mcp Server","description":"Delete an MCP server.","operationId":"delete_mcp_server_v1_mcp_servers__server_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPServerDeleteModel"}}}}}}},"/v1/mcp-servers/{server_id}/tools":{"get":{"tags":["mcp_servers"],"summary":"Get Mcp Server Tools","description":"Get tools from a specific MCP server using the MCP Protocol.","operationId":"get_mcp_server_tools_v1_mcp_servers__server_id__tools_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPServerToolsModel"}}}}}}},"/":{"get":{"summary":"Read Root","description":"Root endpoint.","operationId":"read_root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health Check","description":"Health check endpoint.","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}}}}}},"components":{"schemas":{"AgentConfig-Input":{"properties":{"tools":{"items":{"$ref":"#/components/schemas/ToolConfig-Input"},"type":"array","title":"Tools","description":"List of tools available to the agent","default":[]},"llmModelId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"LLM Model ID","description":"ID of the language model to use"},"systemPrompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt","description":"System prompt for the agent"},"inferenceConfig":{"$ref":"#/components/schemas/InferenceConfig","title":"Inference Config","description":"Configuration for model inference"},"inputSchema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Schema","description":"JSON schema for task agent inputs (required for Task Agents)"},"hxqlQuery":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"HXQL Query","description":"Default HXQL query for agent-level RAG retrieval"},"limit":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Limit","description":"Result limit for RAG agents"},"guardrails":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guardrails","description":"List of guardrail names for the agent"}},"type":"object","title":"AgentConfig","description":"Main configuration model for the agent"},"AgentConfig-Output":{"properties":{"tools":{"items":{"$ref":"#/components/schemas/ToolConfig-Output"},"type":"array","title":"Tools","description":"List of tools available to the agent","default":[]},"llmModelId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"LLM Model ID","description":"ID of the language model to use"},"systemPrompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt","description":"System prompt for the agent"},"inferenceConfig":{"$ref":"#/components/schemas/InferenceConfig","title":"Inference Config","description":"Configuration for model inference"},"inputSchema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Schema","description":"JSON schema for task agent inputs (required for Task Agents)"},"hxqlQuery":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"HXQL Query","description":"Default HXQL query for agent-level RAG retrieval"},"limit":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Limit","description":"Result limit for RAG agents"},"guardrails":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guardrails","description":"List of guardrail names for the agent"}},"type":"object","title":"AgentConfig","description":"Main configuration model for the agent"},"AgentCreateModel":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","maxLength":200,"title":"Description"},"versionLabel":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Versionlabel"},"agentType":{"type":"string","title":"Agenttype"},"notes":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Notes"},"config":{"$ref":"#/components/schemas/AgentConfig-Input"}},"type":"object","required":["name","description","agentType","config"],"title":"AgentCreateModel","examples":[{"agentType":"tool","config":{"guardrails":["HAIP-Hate-High","HAIP-Insults-Low"],"inference_config":{"max_tokens":4000},"llm_model_id":"anthropic.claude-3-haiku-20240307-v1:0","system_prompt":"You are a helpful assistant with access to various tools.","tools":[{"description":"Multiplies two numbers","func_name":"multiply","name":"multiply","tool_type":"function"}]},"description":"An agent that multiplies two numbers","name":"multiply","notes":"This agent is used for multiplication tasks.","versionLabel":"v1.0"},{"agentType":"base","config":{"guardrails":["HAIP-Hate-High","HAIP-Insults-Low"],"inference_config":{"max_tokens":2000},"input_schema":{"properties":{"policy_rules":{"default":"Company Standard Policy v2.1","description":"Rules for evaluating the claim","type":"string"},"denial_letter":{"description":"Text of the denial letter","type":"string"}},"required":["denial_letter"],"type":"object"},"llm_model_id":"gpt-4-1106-preview","system_prompt":"You are a claims evaluator.\n\nPolicy rules: {{policy_rules}}\n\nLetter: {{denial_letter}}\n\nRespond with a clear evaluation."},"description":"Evaluates denial letters using structured inputs","name":"ClaimEvaluator"}]},"AgentDeleteModel":{"properties":{"agentId":{"type":"string","format":"uuid","title":"Agentid"}},"type":"object","required":["agentId"],"title":"AgentDeleteModel"},"AgentListModel":{"properties":{"agents":{"items":{"$ref":"#/components/schemas/AgentModel"},"type":"array","title":"Agents"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"type":"object","required":["agents","pagination"],"title":"AgentListModel"},"AgentLookupRequestModel":{"properties":{"name":{"type":"string","title":"Name","description":"Name of the agent to lookup"},"versionLabel":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Versionlabel","description":"Version label to lookup. Remove from payload to get the 'latest' for the current version or specify a version label like 'v1.0'"}},"type":"object","required":["name"],"title":"AgentLookupRequestModel","examples":[{"name":"ClaimEvaluator","versionLabel":"v1.0"},{"name":"Calculator"}]},"AgentModel":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","title":"Status","default":"CREATED"},"isGlobalAgent":{"type":"boolean","title":"Isglobalagent"},"currentVersionId":{"type":"string","format":"uuid","title":"Currentversionid"},"createdAt":{"type":"string","title":"Createdat"},"createdBy":{"type":"string","title":"Createdby"},"modifiedAt":{"type":"string","title":"Modifiedat"},"modifiedBy":{"type":"string","title":"Modifiedby"}},"type":"object","required":["id","type","name","description","isGlobalAgent","currentVersionId","createdAt","createdBy","modifiedAt","modifiedBy"],"title":"AgentModel"},"AgentPatchModel":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Description"}},"type":"object","title":"AgentPatchModel","description":"Model for patching agent name and description.","examples":[{"description":"Updated agent description","name":"Updated Agent Name"}]},"AgentPermissionModel":{"properties":{"userGroups":{"items":{"type":"string"},"type":"array","title":"Usergroups"}},"type":"object","required":["userGroups"],"title":"AgentPermissionModel","examples":[{"userGroups":["Group 1","Group 2"]}]},"AgentResponse":{"properties":{"createdAt":{"type":"integer","title":"Createdat"},"model":{"type":"string","title":"Model"},"object":{"type":"string","const":"response","title":"Object","default":"response"},"output":{"items":{"anyOf":[{"$ref":"#/components/schemas/TextOutput"},{"$ref":"#/components/schemas/ToolCallOutput"}]},"type":"array","title":"Output"},"customOutputs":{"anyOf":[{"$ref":"#/components/schemas/RAGCustomOutputs"},{"type":"null"}]}},"type":"object","required":["createdAt","model","output"],"title":"AgentResponse","examples":[{"createdAt":1741705447,"customOutputs":{"ragMode":"normal","sourceNodes":[{"chunkId":"b9f622c9-7a62-46fc-8cf1-0d1f4d3c35d7","id":"1d2da9c7-56f1-46a2-b308-07c9e58fbc1a","objectId":"6e4a7f58-13f1-4d3f-83b9-ec86c5b7df60","score":0.95,"text":"AVAILABILITY OF HANDBOOK AND POLICY UPDATES A copy of this handbook, Company policies and any updates made to them is available for viewing on the HR Portal located at classified_url It is your responsibility to be aware of the handbook and policies and any changes made to them. Hyland reserves the right to make changes to the handbook and policies at any time with no advance notice given."}]},"model":"amazon.nova-micro-v1:0","object":"response","output":[{"content":[{"text":"Detailed information about the company's sick leave policy and other HR policies can be found on the HR Portal located at classified_url. This portal contains a copy of the Employee Handbook, company policies, and any updates made to them. It is important to regularly check this portal to stay informed about any changes to the policies. If you have any questions regarding these policies, you are encouraged to contact the Human Resources department.","type":"text"}],"role":"assistant","status":"completed","type":"message"}]},{"createdAt":1741705500,"customOutputs":{"ragMode":"normal","sourceNodes":[]},"model":"amazon.nova-micro-v1:0","object":"response","output":[{"arguments":"{\"a\": 5, \"b\": 20}","callId":"tooluse_U0S5D2uSRBi3rbPBUi-KXw","name":"multiply","status":"completed","type":"function"}]}]},"AgentType":{"type":"string","enum":["tool","rag","task"],"title":"AgentType","description":"Enum defining valid agent types"},"AgentTypeInfo":{"properties":{"type":{"type":"string","title":"Type"},"description":{"type":"string","title":"Description"}},"type":"object","required":["type","description"],"title":"AgentTypeInfo"},"AgentTypeInfoList":{"properties":{"agentTypes":{"items":{"$ref":"#/components/schemas/AgentTypeInfo"},"type":"array","title":"Agenttypes"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"type":"object","required":["agentTypes","pagination"],"title":"AgentTypeInfoList"},"AgentUpdateModel":{"properties":{"versionLabel":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Versionlabel"},"notes":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Notes"},"config":{"anyOf":[{"$ref":"#/components/schemas/AgentConfig-Input"},{"type":"null"}]}},"type":"object","title":"AgentUpdateModel","examples":[{"config":{"guardrails":["HAIP-Hate-High","HAIP-Insults-Low"],"inference_config":{"max_tokens":4000},"llm_model_id":"anthropic.claude-3-haiku-20240307-v1:0","system_prompt":"You are a helpful assistant with access to various tools.","tools":[{"description":"Multiplies two numbers","func_name":"multiply","name":"multiply","tool_type":"function"}]},"notes":"Updated notes for the agent","versionLabel":"v1.0"}]},"AgentVersionListModel":{"properties":{"agent":{"$ref":"#/components/schemas/AgentModel"},"versions":{"items":{"$ref":"#/components/schemas/VersionModel"},"type":"array","title":"Versions"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"type":"object","required":["agent","versions","pagination"],"title":"AgentVersionListModel"},"AgentVersionModel":{"properties":{"agent":{"$ref":"#/components/schemas/AgentModel"},"version":{"$ref":"#/components/schemas/VersionConfigModel"}},"type":"object","required":["agent","version"],"title":"AgentVersionModel"},"AgentVersionsBatchRequestModel":{"properties":{"agentIds":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Agentids"}},"type":"object","required":["agentIds"],"title":"AgentVersionsBatchRequestModel"},"AgentVersionsBatchResponseModel":{"properties":{"agents":{"items":{"$ref":"#/components/schemas/AgentVersionModel"},"type":"array","title":"Agents"},"errors":{"items":{"$ref":"#/components/schemas/ErrorModel"},"type":"array","title":"Errors"}},"type":"object","required":["agents","errors"],"title":"AgentVersionsBatchResponseModel"},"ArtifactEventData":{"properties":{"type":{"type":"string","const":"document","title":"Type","default":"document"},"createdAt":{"type":"integer","title":"Createdat"},"data":{"$ref":"#/components/schemas/DocumentArtifactData"}},"type":"object","required":["data"],"title":"ArtifactEventData","description":"Artifact event data structure."},"Base64DocumentSource":{"properties":{"type":{"type":"string","const":"base64","title":"Type","default":"base64"},"mediaType":{"type":"string","title":"Mediatype","description":"The media type of the document, e.g., application/pdf, text/csv"},"data":{"type":"string","title":"Data","description":"Base64-encoded document data"}},"type":"object","required":["mediaType","data"],"title":"Base64DocumentSource","description":"Source for base64-encoded document data."},"Base64ImageSource":{"properties":{"type":{"type":"string","const":"base64","title":"Type","default":"base64"},"mediaType":{"type":"string","title":"Mediatype","description":"The media type of the image, e.g., image/jpeg, image/png, image/tiff"},"data":{"type":"string","title":"Data","description":"Base64-encoded image data"}},"type":"object","required":["mediaType","data"],"title":"Base64ImageSource","description":"Source for base64-encoded image data."},"ChatRequestBaseSchema":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/MessageModel"},"type":"array","title":"Messages"},"hxqlQuery":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hxqlquery","description":"Pre-composed HXQL query for Content Lake."},"hybridSearch":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hybridsearch","description":"Enable/disable hybrid search (embeddings + full-text). Uses config default if not specified."},"enableDeepSearch":{"type":"boolean","title":"Enabledeepsearch","description":"Experimental Feature. Enable deep search mode for enhanced research","default":false},"guardrails":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guardrails"}},"type":"object","required":["messages"],"title":"ChatRequestBaseSchema","description":"Schema For Chat Requests to be used by Agent Orchestrator Invoke Method\n(Non Overridable properties)","examples":[{"guardrails":["HAIP-Hate-High","HAIP-Insults-Low"],"hxqlQuery":"SELECT * FROM SysContent WHERE sys_docType = 'Invoice'","hybridSearch":true,"messages":[{"content":"What's the weather like today?","role":"user"}]}]},"DeprecationStatus":{"properties":{"deprecated":{"type":"boolean","title":"Deprecated","default":false},"deprecationDate":{"type":"string","title":"Deprecationdate","default":""},"replacementModelName":{"type":"string","title":"Replacementmodelname","default":""}},"type":"object","title":"DeprecationStatus","description":"Deprecation status information for a model."},"DocumentArtifactData":{"properties":{"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"type":{"type":"string","title":"Type","default":"markdown"},"sources":{"items":{"$ref":"#/components/schemas/DocumentArtifactSource"},"type":"array","title":"Sources"}},"type":"object","required":["title","content"],"title":"DocumentArtifactData","description":"Document artifact data structure."},"DocumentArtifactSource":{"properties":{"id":{"type":"string","title":"Id"}},"type":"object","required":["id"],"title":"DocumentArtifactSource","description":"Source reference for document artifacts."},"ErrorModel":{"properties":{"agentId":{"type":"string","format":"uuid","title":"Agentid"},"status":{"type":"integer","title":"Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["agentId","status","message"],"title":"ErrorModel"},"FileUploadRequest":{"properties":{"fileName":{"type":"string","title":"Filename","description":"Name of the file to upload"},"contentType":{"type":"string","title":"Contenttype","description":"MIME type of the file (e.g., application/pdf, image/png)"},"sizeBytes":{"type":"integer","maximum":104857600.0,"exclusiveMinimum":0.0,"title":"Sizebytes","description":"Size of the file in bytes"}},"type":"object","required":["fileName","contentType","sizeBytes"],"title":"FileUploadRequest","description":"Request to create a file upload session."},"FileUploadResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Unique file upload session ID"},"sizeBytes":{"type":"integer","title":"Sizebytes","description":"Size of the file in bytes"},"fileName":{"type":"string","title":"Filename","description":"Name of the file"},"createdAt":{"type":"string","format":"date-time","title":"Createdat","description":"Timestamp when the upload session was created"},"uploadUrl":{"type":"string","title":"Uploadurl","description":"Presigned URL for direct client upload to S3"},"uploadExpiresAt":{"type":"string","format":"date-time","title":"Uploadexpiresat","description":"Timestamp when the upload URL expires"}},"type":"object","required":["id","sizeBytes","fileName","createdAt","uploadUrl","uploadExpiresAt"],"title":"FileUploadResponse","description":"Response containing file upload session details."},"GuardrailList":{"properties":{"guardrails":{"items":{"$ref":"#/components/schemas/GuardrailModel"},"type":"array","title":"Guardrails"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"type":"object","required":["guardrails","pagination"],"title":"GuardrailList","description":"Model for paginated list of Guardrails."},"GuardrailModel":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""}},"type":"object","required":["name"],"title":"GuardrailModel","examples":[{"description":"Filters content related to insults with high strength.","name":"HAIP-Insults-High"}]},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InferenceConfig":{"properties":{"temperature":{"type":"number","title":"Temperature","description":"Temperature for inference (0.0 to 1.0)","default":0.0},"maxRetries":{"type":"integer","title":"Max Retries","description":"Maximum number of retries for inference","default":10},"timeout":{"type":"integer","title":"Timeout","description":"Timeout for inference in seconds","default":3600},"maxTokens":{"type":"integer","title":"Max Tokens","description":"Maximum number of tokens to generate","default":4000}},"additionalProperties":false,"type":"object","title":"InferenceConfig"},"InputDocumentContent":{"properties":{"type":{"type":"string","const":"document","title":"Type","default":"document"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name","description":"A name for the document. Min 1, Max 200 chars. Allowed: alphanumeric, single spaces, hyphens, parentheses, square brackets. Note: This field is vulnerable to prompt injections; use a neutral name."},"source":{"oneOf":[{"$ref":"#/components/schemas/Base64DocumentSource"},{"$ref":"#/components/schemas/UrlDocumentSource"},{"$ref":"#/components/schemas/PathDocumentSource"}],"title":"Source","discriminator":{"propertyName":"type","mapping":{"base64":"#/components/schemas/Base64DocumentSource","s3_path":"#/components/schemas/PathDocumentSource","url":"#/components/schemas/UrlDocumentSource"}}}},"type":"object","required":["name","source"],"title":"InputDocumentContent","description":"Document input content type."},"InputImageContent":{"properties":{"type":{"type":"string","const":"image","title":"Type","default":"image"},"source":{"oneOf":[{"$ref":"#/components/schemas/Base64ImageSource"},{"$ref":"#/components/schemas/UrlImageSource"},{"$ref":"#/components/schemas/PathImageSource"}],"title":"Source","discriminator":{"propertyName":"type","mapping":{"base64":"#/components/schemas/Base64ImageSource","s3_path":"#/components/schemas/PathImageSource","url":"#/components/schemas/UrlImageSource"}}}},"type":"object","required":["source"],"title":"InputImageContent","description":"Image input content type, compatible with Claude's image structure."},"InputTextContent":{"properties":{"type":{"type":"string","const":"text","title":"Type","default":"text"},"text":{"type":"string","title":"Text","description":"The text content"}},"type":"object","required":["text"],"title":"InputTextContent","description":"Text input content type."},"LLMModel":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"badge":{"type":"string","title":"Badge"},"metadata":{"type":"string","title":"Metadata"},"agentTypes":{"items":{"type":"string"},"type":"array","title":"Agenttypes"},"capabilities":{"additionalProperties":true,"type":"object","title":"Capabilities"},"regions":{"items":{"type":"string"},"type":"array","title":"Regions"},"deprecationStatus":{"$ref":"#/components/schemas/DeprecationStatus","default":{"deprecated":false,"deprecationDate":"","replacementModelName":""}}},"type":"object","required":["id","name","description","badge","metadata","agentTypes","capabilities","regions"],"title":"LLMModel","description":"Model representing an LLM (Large Language Model) with its metadata.","examples":[{"agentTypes":["rag","tool","task"],"badge":"Fast","capabilities":{"function_calling":true,"max_context_length":32000,"streaming":true,"tool_choice":false},"deprecationStatus":{"deprecated":false,"deprecationDate":"","replacementModelName":""},"description":"A small and efficient model from Amazon for RAG tasks.","id":"amazon.nova-micro-v1:0","metadata":"recommended","name":"Amazon Nova Micro","regions":["us-east-1","us-west-1"]}]},"LLMModelList":{"properties":{"models":{"items":{"$ref":"#/components/schemas/LLMModel"},"type":"array","title":"Models"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"type":"object","required":["models","pagination"],"title":"LLMModelList","description":"Model for paginated list of LLM models."},"MCPServerCreateModel":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"isGlobalServer":{"type":"boolean","title":"Isglobalserver","default":false},"properties":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Properties"}},"type":"object","required":["name","url"],"title":"MCPServerCreateModel"},"MCPServerDeleteModel":{"properties":{"mcpServerId":{"type":"string","format":"uuid","title":"Mcpserverid"}},"type":"object","required":["mcpServerId"],"title":"MCPServerDeleteModel"},"MCPServerListModel":{"properties":{"mcpServers":{"items":{"$ref":"#/components/schemas/MCPServerModel"},"type":"array","title":"Mcpservers"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"type":"object","required":["mcpServers","pagination"],"title":"MCPServerListModel"},"MCPServerModel":{"properties":{"mcpServerId":{"type":"string","format":"uuid","title":"Mcpserverid"},"accountId":{"type":"string","format":"uuid","title":"Accountid"},"environmentId":{"type":"string","format":"uuid","title":"Environmentid"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"url":{"type":"string","title":"Url"},"isGlobalServer":{"type":"boolean","title":"Isglobalserver"},"createdBy":{"type":"string","title":"Createdby"},"modifiedBy":{"type":"string","title":"Modifiedby"},"createdAt":{"type":"string","title":"Createdat"},"modifiedAt":{"type":"string","title":"Modifiedat"},"properties":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Properties"}},"type":"object","required":["mcpServerId","accountId","environmentId","name","description","url","isGlobalServer","createdBy","modifiedBy","createdAt","modifiedAt"],"title":"MCPServerModel"},"MCPServerReference":{"properties":{"validationMode":{"$ref":"#/components/schemas/ValidationMode","title":"Validation Mode","description":"The validation mode for the MCP tool","default":"strict"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"ID","description":"Immutable, precise references for production"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"URL","description":"Location-based for deployment workflows"},"toolConfiguration":{"anyOf":[{"$ref":"#/components/schemas/MCPToolConfiguration"},{"type":"null"}],"title":"Tool Configuration","description":"MCP tool configuration"}},"type":"object","title":"MCPServerReference","description":"MCP server reference configuration"},"MCPServerToolsModel":{"properties":{"mcpServerId":{"type":"string","format":"uuid","title":"Mcpserverid"},"serverName":{"type":"string","title":"Servername"},"url":{"type":"string","title":"Url"},"tools":{"items":{"$ref":"#/components/schemas/MCPToolModel"},"type":"array","title":"Tools"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["mcpServerId","serverName","url","tools","count"],"title":"MCPServerToolsModel"},"MCPServerUpdateModel":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Url"},"isGlobalServer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isglobalserver"},"properties":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Properties"}},"type":"object","title":"MCPServerUpdateModel"},"MCPToolConfiguration":{"properties":{"allowedTools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Tools","description":"Specifies exactly which tools/functions this MCP server can execute for this agent, implementing the principle of least privilege"}},"type":"object","title":"MCPToolConfiguration"},"MCPToolModel":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"inputSchema":{"additionalProperties":true,"type":"object","title":"Inputschema"}},"type":"object","required":["name","description","inputSchema"],"title":"MCPToolModel"},"Message":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"Message"},"MessageModel":{"properties":{"role":{"type":"string","enum":["assistant","user"],"title":"Role"},"content":{"anyOf":[{"type":"string"},{"items":{"oneOf":[{"$ref":"#/components/schemas/InputTextContent"},{"$ref":"#/components/schemas/InputImageContent"},{"$ref":"#/components/schemas/InputDocumentContent"}],"discriminator":{"propertyName":"type","mapping":{"document":"#/components/schemas/InputDocumentContent","image":"#/components/schemas/InputImageContent","text":"#/components/schemas/InputTextContent"}}},"type":"array"}],"title":"Content"}},"type":"object","required":["role","content"],"title":"MessageModel","description":"Enhanced message model with comprehensive content validation.","examples":[{"content":[{"text":"What is the company's sick leave policy?","type":"text"}],"role":"user"},{"content":"What is the company's sick leave policy?","role":"user"},{"content":[{"text":"How much are wings?","type":"text"},{"source":{"mediaType":"image/jpeg","type":"url","url":"https://example.com/menu.jpg"},"type":"image"}],"role":"user"},{"content":[{"text":"Analyze this document","type":"text"},{"name":"Report","source":{"mediaType":"application/pdf","path":"s3://bucket/file.pdf","type":"s3_path"},"type":"document"}],"role":"user"},{"content":[{"text":"Describe this base64 image.","type":"text"},{"source":{"data":"iVBORw0KGgoAAAANSUhEUgAAAAUA...","mediaType":"image/png","type":"base64"},"type":"image"}],"role":"user"},{"content":[{"text":"What about this image from S3?","type":"text"},{"source":{"mediaType":"image/jpeg","path":"s3://my-bucket/my-image.jpg","type":"s3_path"},"type":"image"}],"role":"user"}]},"Pagination":{"properties":{"totalItems":{"type":"integer","title":"Totalitems"},"offset":{"type":"integer","title":"Offset"},"limit":{"type":"integer","title":"Limit"},"hasMore":{"type":"boolean","title":"Hasmore"}},"type":"object","required":["totalItems","offset","limit","hasMore"],"title":"Pagination"},"PathDocumentSource":{"properties":{"type":{"type":"string","const":"s3_path","title":"Type","default":"s3_path"},"mediaType":{"type":"string","title":"Mediatype","description":"The media type of the document, e.g., application/pdf, text/csv"},"path":{"type":"string","title":"Path","description":"Path to document (e.g., S3 path)"}},"type":"object","required":["mediaType","path"],"title":"PathDocumentSource","description":"Source for a document path (e.g., S3 path)."},"PathImageSource":{"properties":{"type":{"type":"string","const":"s3_path","title":"Type","default":"s3_path"},"mediaType":{"type":"string","title":"Mediatype","description":"The media type of the image, e.g., image/jpeg, image/png, image/tiff. Required for path-based images."},"path":{"type":"string","title":"Path","description":"Path to image (e.g., S3 path)"}},"type":"object","required":["mediaType","path"],"title":"PathImageSource","description":"Source for an image path (e.g., S3 path)."},"RAGCustomOutputs":{"properties":{"sourceNodes":{"items":{"$ref":"#/components/schemas/SourceNode"},"type":"array","title":"Sourcenodes"},"ragMode":{"$ref":"#/components/schemas/RAGMode","default":"normal"},"eventType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eventtype"},"eventData":{"anyOf":[{"$ref":"#/components/schemas/UIEventData"},{"$ref":"#/components/schemas/ArtifactEventData"},{"type":"null"}],"title":"Eventdata"}},"type":"object","title":"RAGCustomOutputs","description":"Custom outputs specific to RAG responses."},"RAGMode":{"type":"string","enum":["normal","deepResearch"],"title":"RAGMode","description":"Available modes for RAG operations."},"SourceNode":{"properties":{"docId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Docid"},"chunkId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chunkid"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"}},"type":"object","title":"SourceNode","description":"Simplified source node model with only essential fields."},"TaskRequestBaseSchema":{"properties":{"inputs":{"additionalProperties":true,"type":"object","title":"Inputs"},"guardrails":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guardrails"}},"type":"object","required":["inputs"],"title":"TaskRequestBaseSchema","description":"Schema for invoking agents with structured inputs instead of messages.","examples":[{"guardrails":["HAIP-Hate-High","HAIP-Insults-Low"],"inputs":{"denial_letter":"The claim was denied due to late submission."}}]},"TextContent":{"properties":{"type":{"type":"string","const":"output_text","title":"Type","default":"output_text"},"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"TextContent"},"TextOutput":{"properties":{"type":{"type":"string","const":"message","title":"Type","default":"message"},"status":{"type":"string","const":"completed","title":"Status","default":"completed"},"content":{"items":{"$ref":"#/components/schemas/TextContent"},"type":"array","title":"Content"},"role":{"type":"string","title":"Role","default":"assistant"}},"type":"object","required":["content"],"title":"TextOutput"},"ToolCallOutput":{"properties":{"type":{"type":"string","const":"function_call","title":"Type","default":"function_call"},"status":{"type":"string","const":"completed","title":"Status","default":"completed"},"arguments":{"type":"string","title":"Arguments"},"callId":{"type":"string","title":"Callid"},"name":{"type":"string","title":"Name"}},"type":"object","required":["arguments","callId","name"],"title":"ToolCallOutput"},"ToolConfig-Input":{"properties":{"toolType":{"type":"string","enum":["rag","function","mcp","structured_output","task_agent"],"title":"Tool Type","description":"Type of the tool (rag, function, mcp, structured_output, task_agent)"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Name","description":"Name of the tool"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the tool"},"funcName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function Name","description":"Function name if applicable"},"hxqlQuery":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"HXQL Query","description":"HXQL query for RAG tools (e.g., 'SELECT * FROM SysContent WHERE sys_docType = \"Invoice\"')"},"mcpServerReferences":{"items":{"$ref":"#/components/schemas/MCPServerReference"},"type":"array","title":"MCP Server References","description":"List of MCP server references for this tool","default":[]},"outputSchema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Schema","description":"JSON schema for structured output tools"},"modelId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model ID","description":"Optional model ID for LLM-assisted schema parsing"},"agentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent ID","description":"ID of the task agent to invoke as a tool"},"agentVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Version","description":"Version of the task agent to invoke (UUID or 'latest')"},"taskAgentConfig":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Agent Configuration","description":"Configuration of the task agent obtained from the DB"}},"type":"object","required":["toolType"],"title":"ToolConfig","description":"Configuration model for agent tools","examples":[{"description":"Multiplies two numbers","funcName":"multiply","name":"multiply","toolType":"function"},{"description":"Searches HR documents","funcName":"semantic_search","hxqlQuery":"SELECT * FROM SysContent WHERE sys_docType = 'HR'","name":"hr_docs_search","toolType":"rag"},{"description":"Tool for MCP server","mcpServerReferences":[{"toolConfiguration":{"allowedTools":["get_customer","update_customer"]},"url":"https://crm.company.com/mcp","validationMode":"lenient"},{"id":"550e8400-e29b-41d4-a716-446655440001","toolConfiguration":{"allowedTools":["create_ticket","get_ticket_status"]},"validationMode":"strict"}],"name":"mcp_tool","toolType":"mcp"},{"description":"Extracts person info from text","modelId":"us.anthropic.claude-3-5-sonnet-20241022-v2:0","name":"structured_output","outputSchema":{"properties":{"name":{"description":"Full name of the person","type":"string"},"age":{"description":"Age of the person","type":"integer"}},"title":"Person","type":"object"},"toolType":"structured_output"},{"agentId":"agent_123","agentVersion":"latest","description":"An example agent tool","name":"example_agent","toolType":"task_agent"}]},"ToolConfig-Output":{"properties":{"toolType":{"type":"string","enum":["rag","function","mcp","structured_output","task_agent"],"title":"Tool Type","description":"Type of the tool (rag, function, mcp, structured_output, task_agent)"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Name","description":"Name of the tool"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the tool"},"funcName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function Name","description":"Function name if applicable"},"hxqlQuery":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"HXQL Query","description":"HXQL query for RAG tools (e.g., 'SELECT * FROM SysContent WHERE sys_docType = \"Invoice\"')"},"mcpServerReferences":{"items":{"$ref":"#/components/schemas/MCPServerReference"},"type":"array","title":"MCP Server References","description":"List of MCP server references for this tool","default":[]},"outputSchema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Schema","description":"JSON schema for structured output tools"},"modelId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model ID","description":"Optional model ID for LLM-assisted schema parsing"},"agentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent ID","description":"ID of the task agent to invoke as a tool"},"agentVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Version","description":"Version of the task agent to invoke (UUID or 'latest')"},"taskAgentConfig":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Agent Configuration","description":"Configuration of the task agent obtained from the DB"}},"type":"object","required":["toolType"],"title":"ToolConfig","description":"Configuration model for agent tools","examples":[{"description":"Multiplies two numbers","funcName":"multiply","name":"multiply","toolType":"function"},{"description":"Searches HR documents","funcName":"semantic_search","hxqlQuery":"SELECT * FROM SysContent WHERE sys_docType = 'HR'","name":"hr_docs_search","toolType":"rag"},{"description":"Tool for MCP server","mcpServerReferences":[{"toolConfiguration":{"allowedTools":["get_customer","update_customer"]},"url":"https://crm.company.com/mcp","validationMode":"lenient"},{"id":"550e8400-e29b-41d4-a716-446655440001","toolConfiguration":{"allowedTools":["create_ticket","get_ticket_status"]},"validationMode":"strict"}],"name":"mcp_tool","toolType":"mcp"},{"description":"Extracts person info from text","modelId":"us.anthropic.claude-3-5-sonnet-20241022-v2:0","name":"structured_output","outputSchema":{"properties":{"name":{"description":"Full name of the person","type":"string"},"age":{"description":"Age of the person","type":"integer"}},"title":"Person","type":"object"},"toolType":"structured_output"},{"agentId":"agent_123","agentVersion":"latest","description":"An example agent tool","name":"example_agent","toolType":"task_agent"}]},"UIEventData":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"The id of the event"},"event":{"type":"string","enum":["retrieve","analyze","answer"],"title":"Event","description":"The event type","default":"retrieve"},"state":{"type":"string","enum":["pending","inprogress","done","error"],"title":"State","description":"The state of the event","default":"pending"},"question":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question","description":"Used by answer event to display the question"},"answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer","description":"Used by answer event to display the answer of the question"}},"type":"object","title":"UIEventData","description":"Events for DeepResearch workflow which has 3 main stages:\n- Retrieve: Retrieve information from the knowledge base.\n- Analyze: Analyze the retrieved information and provide list of questions for answering.\n- Answer: Answering the provided questions. There are multiple answer events, each with its own id that is used to display the answer for a particular question."},"UrlDocumentSource":{"properties":{"type":{"type":"string","const":"url","title":"Type","default":"url"},"mediaType":{"type":"string","title":"Mediatype","description":"The media type of the document, e.g., application/pdf, text/csv"},"url":{"type":"string","title":"Url","description":"HTTPS URL to the document"}},"type":"object","required":["mediaType","url"],"title":"UrlDocumentSource","description":"Source for a document URL."},"UrlImageSource":{"properties":{"type":{"type":"string","const":"url","title":"Type","default":"url"},"mediaType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mediatype","description":"Optional: The media type of the image, e.g., image/jpeg. If 'image/tiff', URL extension is checked."},"url":{"type":"string","title":"Url","description":"HTTPS URL to the image"}},"type":"object","required":["url"],"title":"UrlImageSource","description":"Source for an image URL."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ValidationMode":{"type":"string","enum":["strict","lenient"],"title":"ValidationMode"},"VersionConfigModel":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"number":{"type":"integer","title":"Number"},"versionLabel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Versionlabel"},"notes":{"type":"string","title":"Notes"},"createdAt":{"type":"string","title":"Createdat"},"createdBy":{"type":"string","title":"Createdby"},"config":{"$ref":"#/components/schemas/AgentConfig-Output"}},"type":"object","required":["id","number","notes","createdAt","createdBy","config"],"title":"VersionConfigModel"},"VersionModel":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"number":{"type":"integer","title":"Number"},"versionLabel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Versionlabel"},"notes":{"type":"string","title":"Notes"},"createdAt":{"type":"string","title":"Createdat"},"createdBy":{"type":"string","title":"Createdby"}},"type":"object","required":["id","number","notes","createdAt","createdBy"],"title":"VersionModel"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}