Files
EvoFlow/docs/generated/openapi-gateway.json
EvovexAI 6c490fd493 chore: initialize public repository
Clean public baseline for EvovexAI/EvoFlow: public-only CI, no private sync tooling, no Haze-Ctrl branding, and scrubbed non-public skills/docs leftovers.
2026-09-12 23:20:07 +08:00

9034 lines
247 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"openapi": "3.1.0",
"info": {
"title": "EvoFlow API Gateway",
"description": "\n## EvoFlow API Gateway\n\nControl-plane API for EvoFlow — a native Agent Runtime for long-running Agent Teams\n(plan → execute → recover → deliver) with sandboxed tools and observability.\n\n### Features\n\n- **Models Management**: Query and retrieve available AI models\n- **MCP Configuration**: Manage Model Context Protocol (MCP) server configurations\n- **Memory Management**: Access and manage global memory data for personalized conversations\n- **Skills Management**: Query and manage skills and their enabled status\n- **Artifacts**: Access thread artifacts and generated files\n- **Health Monitoring**: System health check endpoints\n\n### Architecture\n\nLangGraph is mounted in-process under `/api/langgraph` (single uvicorn process).\nThis gateway provides custom endpoints for models, MCP configuration, skills, artifacts, and more.\n ",
"version": "1.0.0"
},
"paths": {
"/api/models": {
"get": {
"tags": [
"models"
],
"summary": "List All Models",
"description": "Retrieve a list of all available AI models configured in the system.",
"operationId": "list_models_api_models_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ModelsListResponse"
}
}
}
}
}
},
"post": {
"tags": [
"models"
],
"summary": "Create Model",
"description": "Add a new AI model to the configuration.",
"operationId": "create_model_api_models_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ModelCreateRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ModelResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/models/primary": {
"get": {
"tags": [
"models"
],
"summary": "Get Primary Model",
"description": "Get the current primary (default) model name.",
"operationId": "get_primary_model_api_models_primary_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Get Primary Model Api Models Primary Get"
}
}
}
}
}
},
"post": {
"tags": [
"models"
],
"summary": "Set Primary Model",
"description": "Set a model as the primary (default) model by setting the primary_model field in config.",
"operationId": "set_primary_model_api_models_primary_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SetPrimaryModelRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Set Primary Model Api Models Primary Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/models/invoke": {
"post": {
"tags": [
"models"
],
"summary": "Invoke configured model",
"description": "Run one chat completion using EvoFlow config (config.yaml), same as the main agent stack.",
"operationId": "invoke_configured_model_api_models_invoke_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ModelInvokeRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ModelInvokeResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/models/{model_name}": {
"get": {
"tags": [
"models"
],
"summary": "Get Model Details",
"description": "Retrieve detailed information about a specific AI model by its name.",
"operationId": "get_model_api_models__model_name__get",
"parameters": [
{
"name": "model_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Model Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ModelResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"tags": [
"models"
],
"summary": "Update Model",
"description": "Update an existing AI model configuration.",
"operationId": "update_model_api_models__model_name__put",
"parameters": [
{
"name": "model_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Model Name"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ModelCreateRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ModelResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"tags": [
"models"
],
"summary": "Delete Model",
"description": "Remove an AI model from the configuration.",
"operationId": "delete_model_api_models__model_name__delete",
"parameters": [
{
"name": "model_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Model Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Delete Model Api Models Model Name Delete"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/models/test": {
"post": {
"tags": [
"models"
],
"summary": "Test Model Connection",
"description": "Test connectivity to a model by sending a simple request.",
"operationId": "test_model_connection_api_models_test_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TestModelRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Test Model Connection Api Models Test Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/mcp/config": {
"get": {
"tags": [
"mcp"
],
"summary": "Get MCP Configuration",
"description": "Retrieve the current Model Context Protocol (MCP) server configurations.",
"operationId": "get_mcp_configuration_api_mcp_config_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/McpConfigResponse"
}
}
}
}
}
},
"put": {
"tags": [
"mcp"
],
"summary": "Update MCP Configuration",
"description": "Update Model Context Protocol (MCP) server configurations and save to file.",
"operationId": "update_mcp_configuration_api_mcp_config_put",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/McpConfigUpdateRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/McpConfigResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/memory/agents": {
"get": {
"tags": [
"memory"
],
"summary": "List Memory Scopes",
"description": "List global memory plus each agent directory that has config and/or memory.json.",
"operationId": "list_memory_agents_api_memory_agents_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MemoryAgentsListResponse"
}
}
}
}
}
}
},
"/api/memory": {
"get": {
"tags": [
"memory"
],
"summary": "Get Memory Data",
"description": "Retrieve memory data for the global store or a specific agent (agents/{id}/memory.json).",
"operationId": "get_memory_api_memory_get",
"parameters": [
{
"name": "agent",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Agent id; omit for global memory",
"title": "Agent"
},
"description": "Agent id; omit for global memory"
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MemoryResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"tags": [
"memory"
],
"summary": "Clear All Memory Data",
"description": "Delete all saved memory for the global store or one agent and reset to an empty structure.",
"operationId": "clear_memory_api_memory_delete",
"parameters": [
{
"name": "agent",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Agent id; omit to clear global memory",
"title": "Agent"
},
"description": "Agent id; omit to clear global memory"
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MemoryResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/memory/reload": {
"post": {
"tags": [
"memory"
],
"summary": "Reload Memory Data",
"description": "Reload memory data from the storage file, refreshing the in-memory cache.",
"operationId": "reload_memory_api_memory_reload_post",
"parameters": [
{
"name": "agent",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Agent id; omit for global memory",
"title": "Agent"
},
"description": "Agent id; omit for global memory"
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MemoryResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/memory/facts/{fact_id}": {
"delete": {
"tags": [
"memory"
],
"summary": "Delete Memory Fact",
"description": "Delete a single saved memory fact by its fact id (global or agent scope).",
"operationId": "delete_memory_fact_endpoint_api_memory_facts__fact_id__delete",
"parameters": [
{
"name": "fact_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Fact Id"
}
},
{
"name": "agent",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Agent id; omit for global memory",
"title": "Agent"
},
"description": "Agent id; omit for global memory"
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MemoryResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/memory/config": {
"get": {
"tags": [
"memory"
],
"summary": "Get Memory Configuration",
"description": "Retrieve the current memory system configuration.",
"operationId": "get_memory_config_endpoint_api_memory_config_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MemoryConfigResponse"
}
}
}
}
}
}
},
"/api/memory/status": {
"get": {
"tags": [
"memory"
],
"summary": "Get Memory Status",
"description": "Retrieve both memory configuration and current data in a single request.",
"operationId": "get_memory_status_api_memory_status_get",
"parameters": [
{
"name": "agent",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Agent id; omit for global memory in `data`",
"title": "Agent"
},
"description": "Agent id; omit for global memory in `data`"
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MemoryStatusResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/skills": {
"get": {
"tags": [
"skills"
],
"summary": "List All Skills",
"description": "Retrieve a list of all available skills from both public and custom directories.",
"operationId": "list_skills_api_skills_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SkillsListResponse"
}
}
}
}
}
}
},
"/api/skills/{skill_name}": {
"get": {
"tags": [
"skills"
],
"summary": "Get Skill Details",
"description": "Retrieve detailed information about a specific skill by its name.",
"operationId": "get_skill_api_skills__skill_name__get",
"parameters": [
{
"name": "skill_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Skill Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SkillResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"tags": [
"skills"
],
"summary": "Update Skill",
"description": "Update a skill's enabled status by modifying the extensions_config.json file.",
"operationId": "update_skill_api_skills__skill_name__put",
"parameters": [
{
"name": "skill_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Skill Name"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SkillUpdateRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SkillResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"tags": [
"skills"
],
"summary": "Delete Skill",
"description": "Permanently delete a **custom** skill by removing its directory under ``skills/custom/``. Built-in **public** skills cannot be deleted. The skill entry is removed from ``extensions_config.json`` when present.",
"operationId": "delete_skill_api_skills__skill_name__delete",
"parameters": [
{
"name": "skill_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Skill Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SkillDeleteResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/skills/install": {
"post": {
"tags": [
"skills"
],
"summary": "Install Skill",
"description": "Install a skill from a .skill file (ZIP archive) located in the thread's user-data directory.",
"operationId": "install_skill_api_skills_install_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SkillInstallRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SkillInstallResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/skills/install-from-market": {
"post": {
"tags": [
"skills"
],
"summary": "Install skill from SkillHub market",
"description": "Download a .skill archive by slug from the public SkillHub CDN and install it into custom skills.",
"operationId": "install_skill_from_market_api_skills_install_from_market_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SkillMarketInstallRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SkillInstallResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/threads/{thread_id}/artifacts/{path}": {
"get": {
"tags": [
"artifacts"
],
"summary": "Get Artifact File",
"description": "Retrieve an artifact file generated by the AI agent. Text and binary files can be viewed inline, while active web content is always downloaded.",
"operationId": "get_artifact_api_threads__thread_id__artifacts__path__get",
"parameters": [
{
"name": "thread_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Thread Id"
}
},
{
"name": "path",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
},
{
"name": "download",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"default": false,
"title": "Download"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/threads/{thread_id}/uploads": {
"post": {
"tags": [
"uploads"
],
"summary": "Upload Files",
"description": "Upload multiple files to a thread's uploads directory.",
"operationId": "upload_files_api_threads__thread_id__uploads_post",
"parameters": [
{
"name": "thread_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Thread Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/Body_upload_files_api_threads__thread_id__uploads_post"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UploadResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/threads/{thread_id}/uploads/list": {
"get": {
"tags": [
"uploads"
],
"summary": "List Uploaded Files",
"description": "List all files in a thread's uploads directory.",
"operationId": "list_uploaded_files_api_threads__thread_id__uploads_list_get",
"parameters": [
{
"name": "thread_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Thread Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response List Uploaded Files Api Threads Thread Id Uploads List Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/threads/{thread_id}/uploads/{filename}": {
"delete": {
"tags": [
"uploads"
],
"summary": "Delete Uploaded File",
"description": "Delete a file from a thread's uploads directory.",
"operationId": "delete_uploaded_file_api_threads__thread_id__uploads__filename__delete",
"parameters": [
{
"name": "thread_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Thread Id"
}
},
{
"name": "filename",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Filename"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Delete Uploaded File Api Threads Thread Id Uploads Filename Delete"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/threads/{thread_id}": {
"delete": {
"tags": [
"threads"
],
"summary": "Delete Thread Data",
"description": "Delete local persisted filesystem data for a thread.\n\nThis endpoint only cleans EvoFlow-managed thread directories. LangGraph\nthread state deletion remains handled by the LangGraph API.",
"operationId": "delete_thread_data_api_threads__thread_id__delete",
"parameters": [
{
"name": "thread_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Thread Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ThreadDeleteResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/workspaces/resolve": {
"post": {
"tags": [
"workspaces"
],
"summary": "Resolve Workspace",
"description": "Resolve and validate a local workspace path (frontend-selected directory).\n\n- Normalizes user input (expands env vars and ~).\n- Resolves to an absolute path where possible.\n- Returns existence and directory flags for UI validation.",
"operationId": "resolve_workspace_api_workspaces_resolve_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResolveWorkspaceRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResolveWorkspaceResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/workspaces": {
"get": {
"tags": [
"workspaces"
],
"summary": "List Workspaces",
"description": "List thread-bound workspace directories managed by EvoFlow.",
"operationId": "list_workspaces_api_workspaces_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ListWorkspacesResponse"
}
}
}
}
}
}
},
"/api/agents": {
"get": {
"tags": [
"agents"
],
"summary": "List Custom Agents",
"description": "List all custom agents available in the agents directory, including the main agent.",
"operationId": "list_agents_api_agents_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentsListResponse"
}
}
}
}
}
},
"post": {
"tags": [
"agents"
],
"summary": "Create Custom Agent",
"description": "Create a new custom agent with its config and SOUL.md.",
"operationId": "create_agent_endpoint_api_agents_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentCreateRequest"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/agents/check": {
"get": {
"tags": [
"agents"
],
"summary": "Check Agent Name",
"description": "Validate an agent name and check if it is available (case-insensitive).",
"operationId": "check_agent_name_api_agents_check_get",
"parameters": [
{
"name": "name",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Check Agent Name Api Agents Check Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/agents/{name}": {
"get": {
"tags": [
"agents"
],
"summary": "Get Custom Agent",
"description": "Retrieve details and SOUL.md content for a specific custom agent. Use 'main' for the default agent.",
"operationId": "get_agent_api_agents__name__get",
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"tags": [
"agents"
],
"summary": "Update Custom Agent",
"description": "Update an existing custom agent's config and/or SOUL.md. Use 'main' for the default agent.",
"operationId": "update_agent_api_agents__name__put",
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Name"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentUpdateRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AgentResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"tags": [
"agents"
],
"summary": "Delete Custom Agent",
"description": "Delete a custom agent and all its files (config, SOUL.md, memory).",
"operationId": "delete_agent_api_agents__name__delete",
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Name"
}
}
],
"responses": {
"204": {
"description": "Successful Response"
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tools/metadata": {
"get": {
"tags": [
"agents"
],
"summary": "Get Available Tools Metadata",
"description": "Return lists of available builtin tools, MCP servers, and skills for agent configuration UI.",
"operationId": "get_tools_metadata_api_tools_metadata_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ToolListResponse"
}
}
}
}
}
}
},
"/api/threads/{thread_id}/suggestions": {
"post": {
"tags": [
"suggestions"
],
"summary": "Generate Follow-up Questions",
"description": "Generate short follow-up questions a user might ask next, based on recent conversation context.",
"operationId": "generate_suggestions_api_threads__thread_id__suggestions_post",
"parameters": [
{
"name": "thread_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Thread Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SuggestionsRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SuggestionsResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/channels/": {
"get": {
"tags": [
"channels"
],
"summary": "Get Channels Status",
"description": "Get the status of all IM channels.",
"operationId": "get_channels_status_api_channels__get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChannelStatusResponse"
}
}
}
}
}
}
},
"/api/channels/{name}/restart": {
"post": {
"tags": [
"channels"
],
"summary": "Restart Channel",
"description": "Restart a specific IM channel.",
"operationId": "restart_channel_api_channels__name__restart_post",
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChannelRestartResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/channels/{name}/enable": {
"post": {
"tags": [
"channels"
],
"summary": "Enable Channel",
"description": "Enable or disable a specific IM channel.",
"operationId": "enable_channel_api_channels__name__enable_post",
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Name"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChannelEnableRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChannelEnableResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/channels/{name}/config": {
"get": {
"tags": [
"channels"
],
"summary": "Get Channel Config",
"description": "Get the configuration of a specific IM channel.",
"operationId": "get_channel_config_api_channels__name__config_get",
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChannelConfigResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"tags": [
"channels"
],
"summary": "Update Channel Config",
"description": "Update the configuration of a specific IM channel.",
"operationId": "update_channel_config_api_channels__name__config_put",
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Name"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Config"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChannelRestartResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/channels/feishu/push": {
"post": {
"tags": [
"channels"
],
"summary": "Feishu Push",
"description": "Send a proactive Feishu message (markdown card). Intended for cron or other schedulers.\n\nConfigure ``channels.feishu.push_secret`` in ``config.yaml`` or set ``EVOFLOW_FEISHU_PUSH_SECRET``.\nSend the same value in header ``X-EvoFlow-Feishu-Push-Secret`` or ``Authorization: Bearer <secret>``.\nRequires the Feishu channel to be enabled and running (Gateway started with channel service).",
"operationId": "feishu_push_api_channels_feishu_push_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FeishuPushRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FeishuPushResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/channels/feishu/registration/begin": {
"post": {
"tags": [
"channels"
],
"summary": "Feishu Registration Begin",
"description": "Begin Feishu QR registration. Returns a QR URL to scan with the Feishu app.\n\nAfter scanning and authorizing in the Feishu app, poll the ``/poll`` endpoint\nuntil ``status == \"completed\"``, then call ``/apply`` to save credentials\nand start the channel automatically.",
"operationId": "feishu_registration_begin_api_channels_feishu_registration_begin_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FeishuRegistrationBeginResponse"
}
}
}
}
}
}
},
"/api/channels/feishu/registration/{session_id}/poll": {
"get": {
"tags": [
"channels"
],
"summary": "Feishu Registration Poll",
"description": "Poll Feishu registration status.\n\nCall this every 2-3 seconds after ``/begin``. When ``status == \"completed\"``,\nthe response contains ``app_id`` and ``app_secret``.",
"operationId": "feishu_registration_poll_api_channels_feishu_registration__session_id__poll_get",
"parameters": [
{
"name": "session_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Session Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FeishuRegistrationPollResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/channels/feishu/registration/{session_id}/apply": {
"post": {
"tags": [
"channels"
],
"summary": "Feishu Registration Apply",
"description": "Apply Feishu registration credentials.\n\nSaves ``app_id`` / ``app_secret`` to ``config.yaml`` and automatically starts\n(or restarts) the Feishu channel. Intended to be called after ``/poll``\nreturns ``status == \"completed\"``.",
"operationId": "feishu_registration_apply_api_channels_feishu_registration__session_id__apply_post",
"parameters": [
{
"name": "session_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Session Id"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FeishuRegistrationApplyRequest",
"default": {
"enabled": true
}
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FeishuRegistrationApplyResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/channels/weixin/registration/begin": {
"post": {
"tags": [
"channels"
],
"summary": "Weixin Registration Begin",
"description": "Begin Weixin (personal WeChat) iLink QR login. Returns ``qr_url`` to render as a QR image.",
"operationId": "weixin_registration_begin_api_channels_weixin_registration_begin_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WeixinRegistrationBeginResponse"
}
}
}
}
}
}
},
"/api/channels/weixin/registration/{session_id}/poll": {
"get": {
"tags": [
"channels"
],
"summary": "Weixin Registration Poll",
"description": "Poll Weixin iLink QR status (call every ~2s after ``/begin``).",
"operationId": "weixin_registration_poll_api_channels_weixin_registration__session_id__poll_get",
"parameters": [
{
"name": "session_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Session Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WeixinRegistrationPollResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/channels/weixin/registration/{session_id}/apply": {
"post": {
"tags": [
"channels"
],
"summary": "Weixin Registration Apply",
"description": "Save Weixin credentials to disk and ``config.yaml``, then start or restart the channel.",
"operationId": "weixin_registration_apply_api_channels_weixin_registration__session_id__apply_post",
"parameters": [
{
"name": "session_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Session Id"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WeixinRegistrationApplyRequest",
"default": {
"enabled": true
}
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WeixinRegistrationApplyResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/automation/scheduler/status": {
"get": {
"tags": [
"automation"
],
"summary": "Automation Scheduler Status",
"description": "Return whether backend cron is enabled and last tick diagnostics (for EvoPanel / curl).",
"operationId": "automation_scheduler_status_api_automation_scheduler_status_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Automation Scheduler Status Api Automation Scheduler Status Get"
}
}
}
}
}
}
},
"/api/automation/scheduler/start": {
"post": {
"tags": [
"automation"
],
"summary": "Automation Scheduler Client Start",
"description": "EvoPanel «启动调度» — reports task counts and live Gateway scheduler snapshot (same idea as dev-api ``automation_start``).",
"operationId": "automation_scheduler_client_start_api_automation_scheduler_start_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Automation Scheduler Client Start Api Automation Scheduler Start Post"
}
}
}
}
}
}
},
"/api/automation/scheduler/stop": {
"post": {
"tags": [
"automation"
],
"summary": "Automation Scheduler Client Stop",
"description": "EvoPanel «停止调度» — state only (backend loop is env-controlled); matches dev-api.",
"operationId": "automation_scheduler_client_stop_api_automation_scheduler_stop_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "Response Automation Scheduler Client Stop Api Automation Scheduler Stop Post"
}
}
}
}
}
}
},
"/api/automation/tasks": {
"get": {
"tags": [
"automation"
],
"summary": "Automation Tasks List",
"operationId": "automation_tasks_list_api_automation_tasks_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Automation Tasks List Api Automation Tasks Get"
}
}
}
}
}
},
"post": {
"tags": [
"automation"
],
"summary": "Automation Task Create",
"operationId": "automation_task_create_api_automation_tasks_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Body"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Automation Task Create Api Automation Tasks Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/automation/tasks/{task_id}/history": {
"get": {
"tags": [
"automation"
],
"summary": "Automation Task History",
"operationId": "automation_task_history_api_automation_tasks__task_id__history_get",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"maximum": 50,
"minimum": 1,
"default": 50,
"title": "Limit"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Automation Task History Api Automation Tasks Task Id History Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/automation/tasks/{task_id}": {
"get": {
"tags": [
"automation"
],
"summary": "Automation Task Get",
"operationId": "automation_task_get_api_automation_tasks__task_id__get",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Automation Task Get Api Automation Tasks Task Id Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"tags": [
"automation"
],
"summary": "Automation Task Update",
"operationId": "automation_task_update_api_automation_tasks__task_id__put",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Body"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Automation Task Update Api Automation Tasks Task Id Put"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"tags": [
"automation"
],
"summary": "Automation Task Delete",
"operationId": "automation_task_delete_api_automation_tasks__task_id__delete",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Automation Task Delete Api Automation Tasks Task Id Delete"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/automation/tasks/{task_id}/pause": {
"post": {
"tags": [
"automation"
],
"summary": "Automation Task Pause",
"operationId": "automation_task_pause_api_automation_tasks__task_id__pause_post",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Automation Task Pause Api Automation Tasks Task Id Pause Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/automation/tasks/{task_id}/resume": {
"post": {
"tags": [
"automation"
],
"summary": "Automation Task Resume",
"operationId": "automation_task_resume_api_automation_tasks__task_id__resume_post",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Automation Task Resume Api Automation Tasks Task Id Resume Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/automation/tasks/{task_id}/run": {
"post": {
"tags": [
"automation"
],
"summary": "Automation Task Run Now",
"description": "Run one automation immediately (same pipeline as cron: Feishu + optional LangGraph).\n\nDoes not require ``status=active`` (for EvoPanel「手动运行」). Requires ChannelService running\nfor Feishu push / LangGraph-triggered notifications.",
"operationId": "automation_task_run_now_api_automation_tasks__task_id__run_post",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
},
{
"name": "run_async",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"description": "If true, start the run after responding (same work as sync; use to avoid long HTTP hold).",
"default": false,
"title": "Run Async"
},
"description": "If true, start the run after responding (same work as sync; use to avoid long HTTP hold)."
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Automation Task Run Now Api Automation Tasks Task Id Run Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks": {
"get": {
"tags": [
"tasks"
],
"summary": "List All Tasks",
"description": "Get a list of all tasks with optional filtering.",
"operationId": "list_tasks_api_tasks_get",
"parameters": [
{
"name": "status",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "Filter by status: pending|executing|paused|completed|failed|cancelled",
"title": "Status"
},
"description": "Filter by status: pending|executing|paused|completed|failed|cancelled"
},
{
"name": "source",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "Filter by source: conversation|automation|manual",
"title": "Source"
},
"description": "Filter by source: conversation|automation|manual"
},
{
"name": "search",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "Search in task name",
"title": "Search"
},
"description": "Search in task name"
},
{
"name": "project_id",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "Filter by project ID",
"title": "Project Id"
},
"description": "Filter by project ID"
},
{
"name": "sort",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "Sort field: created_at|updated_at|status|name",
"default": "updated_at",
"title": "Sort"
},
"description": "Sort field: created_at|updated_at|status|name"
},
{
"name": "order",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "Sort order: asc|desc",
"default": "desc",
"title": "Order"
},
"description": "Sort order: asc|desc"
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response List Tasks Api Tasks Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"post": {
"tags": [
"tasks"
],
"summary": "Create Task",
"description": "Create a new task.",
"operationId": "create_task_api_tasks_post",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateTaskRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Create Task Api Tasks Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/{task_id}": {
"get": {
"tags": [
"tasks"
],
"summary": "Get Task",
"description": "Get a task by ID.",
"operationId": "get_task_api_tasks__task_id__get",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Get Task Api Tasks Task Id Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"tags": [
"tasks"
],
"summary": "Update Task",
"description": "Update a task.",
"operationId": "update_task_api_tasks__task_id__put",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateTaskRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Update Task Api Tasks Task Id Put"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"tags": [
"tasks"
],
"summary": "Delete Task",
"description": "Delete a task.",
"operationId": "delete_task_api_tasks__task_id__delete",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Delete Task Api Tasks Task Id Delete"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/{task_id}/authorize-execution": {
"post": {
"tags": [
"tasks"
],
"summary": "Authorize task execution",
"description": "Gate §5.3: set execution_authorized=true when task is in planned or planning status.",
"operationId": "authorize_task_execution_api_tasks__task_id__authorize_execution_post",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/AuthorizeExecutionRequest"
},
{
"type": "null"
}
],
"title": "Request"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Authorize Task Execution Api Tasks Task Id Authorize Execution Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/{task_id}/start": {
"post": {
"tags": [
"tasks"
],
"summary": "Start Task Planning",
"description": "Start task planning and execution.",
"operationId": "start_task_api_tasks__task_id__start_post",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Start Task Api Tasks Task Id Start Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/{task_id}/stop": {
"post": {
"tags": [
"tasks"
],
"summary": "Stop Task Execution",
"description": "Stop a running task.",
"operationId": "stop_task_api_tasks__task_id__stop_post",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Stop Task Api Tasks Task Id Stop Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/{task_id}/resume": {
"post": {
"tags": [
"tasks"
],
"summary": "Resume Task",
"description": "Resume a paused task.",
"operationId": "resume_task_api_tasks__task_id__resume_post",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Resume Task Api Tasks Task Id Resume Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/{task_id}/restart": {
"post": {
"tags": [
"tasks"
],
"summary": "Restart Task",
"description": "Clone task as a new task with fresh execution. The original task is archived.",
"operationId": "restart_task_api_tasks__task_id__restart_post",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Restart Task Api Tasks Task Id Restart Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/{task_id}/cancel": {
"post": {
"tags": [
"tasks"
],
"summary": "Cancel Task",
"description": "Cancel a running or planned task.",
"operationId": "cancel_task_api_tasks__task_id__cancel_post",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Cancel Task Api Tasks Task Id Cancel Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/{task_id}/subtasks": {
"get": {
"tags": [
"tasks"
],
"summary": "List Subtasks",
"description": "List all subtasks of a task.",
"operationId": "list_subtasks_api_tasks__task_id__subtasks_get",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
},
"title": "Response List Subtasks Api Tasks Task Id Subtasks Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"post": {
"tags": [
"tasks"
],
"summary": "Add Subtask",
"description": "Add a subtask to a task.",
"operationId": "add_subtask_api_tasks__task_id__subtasks_post",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AddSubtaskRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Add Subtask Api Tasks Task Id Subtasks Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/{task_id}/subtasks/{subtask_id}": {
"get": {
"tags": [
"tasks"
],
"summary": "Get Subtask",
"description": "Get a subtask by ID.",
"operationId": "get_subtask_api_tasks__task_id__subtasks__subtask_id__get",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
},
{
"name": "subtask_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Subtask Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Get Subtask Api Tasks Task Id Subtasks Subtask Id Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"tags": [
"tasks"
],
"summary": "Update Subtask",
"description": "Update a subtask.",
"operationId": "update_subtask_api_tasks__task_id__subtasks__subtask_id__put",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
},
{
"name": "subtask_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Subtask Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateSubtaskRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Update Subtask Api Tasks Task Id Subtasks Subtask Id Put"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"tags": [
"tasks"
],
"summary": "Delete Subtask",
"description": "Delete a subtask.",
"operationId": "delete_subtask_api_tasks__task_id__subtasks__subtask_id__delete",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
},
{
"name": "subtask_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Subtask Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Delete Subtask Api Tasks Task Id Subtasks Subtask Id Delete"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/{task_id}/subtasks/{subtask_id}/enriched-prompt": {
"get": {
"tags": [
"tasks"
],
"summary": "Get subtask enriched prompt",
"description": "Returns the exact enriched prompt string produced by `_build_subtask_enriched_prompt` (retry context, worker_profile, plan excerpt from bound_plan_markdown, default self-check). Note: at actual delegate time the supervisor may append an upstream-dependency summary after this text.",
"operationId": "get_subtask_enriched_prompt_api_tasks__task_id__subtasks__subtask_id__enriched_prompt_get",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
},
{
"name": "subtask_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Subtask Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SubtaskEnrichedPromptResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/{task_id}/subtasks/{subtask_id}/conversation-history": {
"get": {
"tags": [
"tasks"
],
"summary": "Get Subtask Conversation History",
"description": "Get persisted conversation-structure history for a subtask.",
"operationId": "get_subtask_conversation_history_api_tasks__task_id__subtasks__subtask_id__conversation_history_get",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
},
{
"name": "subtask_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Subtask Id"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"maximum": 5000,
"minimum": 1,
"default": 500,
"title": "Limit"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SubtaskConversationHistoryResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/{task_id}/subtasks/{subtask_id}/assign": {
"post": {
"tags": [
"tasks"
],
"summary": "Assign Subtask",
"description": "Assign a subtask to an agent.",
"operationId": "assign_subtask_api_tasks__task_id__subtasks__subtask_id__assign_post",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
},
{
"name": "subtask_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Subtask Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssignSubtaskRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Assign Subtask Api Tasks Task Id Subtasks Subtask Id Assign Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/batch": {
"post": {
"tags": [
"tasks"
],
"summary": "Batch Operations",
"description": "Perform batch operations on multiple tasks.",
"operationId": "batch_tasks_api_tasks_batch_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BatchOperationRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Batch Tasks Api Tasks Batch Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/{task_id}/retry": {
"post": {
"tags": [
"tasks"
],
"summary": "Retry Failed Subtasks",
"description": "Retry failed subtasks of a task.",
"operationId": "retry_task_api_tasks__task_id__retry_post",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RetrySubtaskRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Retry Task Api Tasks Task Id Retry Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/{task_id}/execution-history": {
"get": {
"tags": [
"tasks"
],
"summary": "Get Execution History",
"description": "Get task execution history list.",
"operationId": "get_execution_history_api_tasks__task_id__execution_history_get",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Get Execution History Api Tasks Task Id Execution History Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/tasks/{task_id}/runtime": {
"get": {
"tags": [
"tasks"
],
"summary": "Get Task Runtime",
"description": "Get task runtime state including agent assignments.",
"operationId": "get_task_runtime_api_tasks__task_id__runtime_get",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Get Task Runtime Api Tasks Task Id Runtime Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/task-detail/tasks/{task_id}": {
"get": {
"tags": [
"task-detail"
],
"summary": "Get Task Memory",
"description": "Get memory for a main task id or a subtask id (matched in subtasks[]).",
"operationId": "get_task_memory_api_task_detail_tasks__task_id__get",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TaskMemoryResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/task-detail/tasks/{task_id}/facts": {
"post": {
"tags": [
"task-detail"
],
"summary": "Add Task Fact",
"description": "Add a fact to task memory.",
"operationId": "add_task_fact_api_task_detail_tasks__task_id__facts_post",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AddFactRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Add Task Fact Api Task Detail Tasks Task Id Facts Post"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/task-detail/tasks/{task_id}/progress": {
"put": {
"tags": [
"task-detail"
],
"summary": "Update Task Progress",
"description": "Update task progress and current step.",
"operationId": "update_task_progress_api_task_detail_tasks__task_id__progress_put",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateProgressRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Update Task Progress Api Task Detail Tasks Task Id Progress Put"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/task-detail/agents/{agent_id}": {
"get": {
"tags": [
"task-detail"
],
"summary": "Get Agent Memories",
"description": "Get all task memories for an agent.",
"operationId": "get_agent_memories_api_task_detail_agents__agent_id__get",
"parameters": [
{
"name": "agent_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Agent Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AgentMemoryResponse"
},
"title": "Response Get Agent Memories Api Task Detail Agents Agent Id Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/task-detail/tasks/{main_task_id}/facts": {
"get": {
"tags": [
"task-detail"
],
"summary": "Get Task Facts",
"description": "Get all facts for a main task.",
"operationId": "get_project_facts_api_task_detail_tasks__main_task_id__facts_get",
"parameters": [
{
"name": "main_task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Main Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProjectFactsResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/task-detail/tasks/{main_task_id}/status": {
"get": {
"tags": [
"task-detail"
],
"summary": "Get Task Runtime Status",
"description": "Get runtime status of all agents and tasks in a main task.",
"operationId": "get_project_status_api_task_detail_tasks__main_task_id__status_get",
"parameters": [
{
"name": "main_task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Main Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProjectStatusResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/task-detail/tasks/{main_task_id}/search": {
"get": {
"tags": [
"task-detail"
],
"summary": "Search Task Facts",
"description": "Search facts across all agents in a main task.",
"operationId": "search_project_facts_api_task_detail_tasks__main_task_id__search_get",
"parameters": [
{
"name": "main_task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Main Task Id"
}
},
{
"name": "keyword",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "Keyword"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Search Project Facts Api Task Detail Tasks Main Task Id Search Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/events/tasks/{task_id}/stream": {
"get": {
"tags": [
"events"
],
"summary": "Subscribe to task collaboration events",
"description": "SSE stream keyed by root/main task id (same id used in supervisor create_task).",
"operationId": "subscribe_task_events_api_events_tasks__task_id__stream_get",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/events/threads/{thread_id}/stream-status": {
"get": {
"tags": [
"events"
],
"summary": "Get stream status for frontend",
"description": "返回流状态信息,供前端决定如何显示(历史回放/实时订阅)",
"operationId": "get_thread_stream_status_api_events_threads__thread_id__stream_status_get",
"parameters": [
{
"name": "thread_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Thread Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Get Thread Stream Status Api Events Threads Thread Id Stream Status Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/events/tasks/{task_id}/stream-diagnostics": {
"get": {
"tags": [
"events"
],
"summary": "Get stream diagnostics for debugging",
"description": "返回任务流数据的诊断信息,包括文件存储和内存广播状态",
"operationId": "get_stream_diagnostics_api_events_tasks__task_id__stream_diagnostics_get",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Get Stream Diagnostics Api Events Tasks Task Id Stream Diagnostics Get"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/chat/sessions/{session_key}/stream-resume": {
"get": {
"tags": [
"chat-stream-resume"
],
"summary": "Resume in-progress chat SSE from stream mirror",
"description": "FastGPT-style stream resume: catchup replay from SQLite mirror, then live tail while run is active. Requires `Accept: text/event-stream`. Emits `resumePhase`, wire-format LangGraph/evf SSE frames, `resumeUnavailable`, `runCompleted`, and `done`.",
"operationId": "get_stream_resume_api_chat_sessions__session_key__stream_resume_get",
"parameters": [
{
"name": "session_key",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Session Key"
}
},
{
"name": "runId",
"in": "query",
"required": false,
"schema": {
"type": "string",
"title": "Run Id"
}
},
{
"name": "threadId",
"in": "query",
"required": false,
"schema": {
"type": "string",
"title": "Thread Id"
}
}
],
"responses": {
"200": {
"description": "SSE stream (catchup + live tail)",
"content": {
"text/event-stream": {
"schema": {
"type": "string"
}
}
}
},
"406": {
"description": "Accept: text/event-stream required"
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/chat/sessions/{session_key}/runtime-status": {
"get": {
"tags": [
"chat-sessions"
],
"summary": "Aggregated session runtime recovery status",
"description": "Single endpoint for attach/snapshot/stream-resume recovery decisions.",
"operationId": "get_session_runtime_status_api_chat_sessions__session_key__runtime_status_get",
"parameters": [
{
"name": "session_key",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Session Key"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"properties": {
"ok": {
"type": "boolean"
},
"sessionKey": {
"type": "string"
},
"threadId": {
"type": "string",
"nullable": true
},
"runId": {
"type": "string",
"nullable": true
},
"runStatus": {
"type": "string"
},
"attachRecommended": {
"type": "boolean"
},
"streamResumeRecommended": {
"type": "boolean"
},
"langgraphActive": {
"type": "boolean",
"nullable": true
},
"snapshotAvailable": {
"type": "boolean"
},
"latestPartialText": {
"type": "string"
},
"latestToolSummary": {
"type": "string"
},
"lastEventAtMs": {
"type": "integer"
}
}
}
}
}
},
"404": {
"description": "Session not found"
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/collab/threads/{thread_id}": {
"get": {
"tags": [
"collab"
],
"summary": "Get Thread Collab State",
"operationId": "get_thread_collab_state_api_collab_threads__thread_id__get",
"parameters": [
{
"name": "thread_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Thread Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ThreadCollabStateResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"tags": [
"collab"
],
"summary": "Put Thread Collab State",
"operationId": "put_thread_collab_state_api_collab_threads__thread_id__put",
"parameters": [
{
"name": "thread_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Thread Id"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Body"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ThreadCollabStateResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/collab/threads/{thread_id}/task-stream": {
"get": {
"tags": [
"collab"
],
"summary": "SSE: stream task progress snapshots for a thread",
"description": "Stream task/subtask progress for a thread, independent of chat run lifetime.\n\nThis endpoint exists to solve: lead-agent run ends early but subtasks still run in background,\nso the UI must keep receiving progress/memory/error updates.",
"operationId": "stream_thread_task_progress_api_collab_threads__thread_id__task_stream_get",
"parameters": [
{
"name": "thread_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Thread Id"
}
},
{
"name": "poll_interval_ms",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 200,
"title": "Poll Interval Ms"
}
},
{
"name": "max_wait_seconds",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 600,
"title": "Max Wait Seconds"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/collab/tasks/{task_id}/stream-log": {
"get": {
"tags": [
"collab"
],
"summary": "Get Task Stream Log",
"description": "Debug endpoint: return persisted task stream snapshots for a task_id.",
"operationId": "get_task_stream_log_api_collab_tasks__task_id__stream_log_get",
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Task Id"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 200,
"title": "Limit"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TaskStreamLogResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/collab/tasks/{main_task_id}/subtasks/{subtask_id}/history": {
"get": {
"tags": [
"collab"
],
"summary": "Get Subtask History",
"description": "Return persisted stream history lines for one subtask.",
"operationId": "get_subtask_history_api_collab_tasks__main_task_id__subtasks__subtask_id__history_get",
"parameters": [
{
"name": "main_task_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Main Task Id"
}
},
{
"name": "subtask_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Subtask Id"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 600,
"title": "Limit"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SubtaskHistoryResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/langgraph/runs/": {
"get": {
"tags": [
"runs"
],
"summary": "List Runs",
"description": "List all runs with optional status filtering.\n\nArgs:\n status: Filter by status (pending, running, success, failed)\n limit: Maximum number of runs to return\n\nReturns:\n List of runs with their status and metadata",
"operationId": "list_runs_api_langgraph_runs__get",
"parameters": [
{
"name": "status",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 100,
"title": "Limit"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ListRunsResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/langgraph/runs/cancel": {
"post": {
"tags": [
"runs"
],
"summary": "Cancel All Runs",
"description": "Cancel all pending and running runs.\n\nThis is useful for cleaning up stuck runs or when switching sessions.\n\nReturns:\n Status message and count of cancelled runs",
"operationId": "cancel_all_runs_api_langgraph_runs_cancel_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Cancel All Runs Api Langgraph Runs Cancel Post"
}
}
}
}
}
}
},
"/api/sessions/search": {
"get": {
"tags": [
"sessions"
],
"summary": "Search Sessions (GET)",
"description": "Search conversation sessions using GET method with query parameters.",
"operationId": "search_sessions_get_api_sessions_search_get",
"parameters": [
{
"name": "query",
"in": "query",
"required": true,
"schema": {
"type": "string",
"description": "Search query string",
"title": "Query"
},
"description": "Search query string"
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Maximum number of results",
"default": 10,
"title": "Limit"
},
"description": "Maximum number of results"
},
{
"name": "offset",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 0,
"description": "Offset for pagination",
"default": 0,
"title": "Offset"
},
"description": "Offset for pagination"
},
{
"name": "assistant_id",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Filter by assistant ID",
"title": "Assistant Id"
},
"description": "Filter by assistant ID"
},
{
"name": "date_from",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Filter by date range (start)",
"title": "Date From"
},
"description": "Filter by date range (start)"
},
{
"name": "date_to",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Filter by date range (end)",
"title": "Date To"
},
"description": "Filter by date range (end)"
},
{
"name": "search_in",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "Where to search: 'user', 'assistant', or 'all'",
"default": "all",
"title": "Search In"
},
"description": "Where to search: 'user', 'assistant', or 'all'"
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SessionSearchResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"post": {
"tags": [
"sessions"
],
"summary": "Search Sessions",
"description": "Search conversation sessions using full-text search (FTS5). Supports filtering by assistant, date range, and content type.",
"operationId": "search_sessions_api_sessions_search_post",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SessionSearchRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SessionSearchResponse"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/sessions/rebuild-index": {
"post": {
"tags": [
"sessions"
],
"summary": "Rebuild Search Index",
"description": "Rebuild the FTS5 search index from scratch. Use this after bulk data changes.",
"operationId": "rebuild_search_index_api_sessions_rebuild_index_post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Rebuild Search Index Api Sessions Rebuild Index Post"
}
}
}
}
}
}
},
"/api/sessions/stats": {
"get": {
"tags": [
"sessions"
],
"summary": "Session Statistics",
"description": "Get statistics about indexed sessions.",
"operationId": "get_session_stats_api_sessions_stats_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Get Session Stats Api Sessions Stats Get"
}
}
}
}
}
}
},
"/api/langgraph/threads/{thread_id}/runs/{run_id}/stream": {
"get": {
"tags": [
"langgraph-proxy"
],
"summary": "Attach to an in-progress run stream (refresh continuation)",
"description": "刷新续挂:为已有 run 提供 GET 续流入口。\n\n输出 LangGraph 兼容 SSE:\n- `event: values` + thread state snapshot(shape 与 /runs/stream values 一致/兼容)\n- `event: end`:检测到 run 终态后关闭(best-effort)",
"operationId": "attach_run_stream_api_langgraph_threads__thread_id__runs__run_id__stream_get",
"parameters": [
{
"name": "thread_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Thread Id"
}
},
{
"name": "run_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Run Id"
}
},
{
"name": "poll_interval_ms",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 900,
"title": "Poll Interval Ms"
}
},
{
"name": "max_wait_seconds",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 600,
"title": "Max Wait Seconds"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/langgraph/active-sessions": {
"get": {
"tags": [
"langgraph-proxy"
],
"summary": "获取正在执行中的会话列表",
"description": "获取当前正在执行中的会话列表。\n\n通过 LangGraph POST /threads/search 获取所有线程,然后检查每个线程的 runs 状态,\n返回状态为 pending 或 running 的会话。直接从 thread metadata 中获取 session_key,\n避免前端需要维护 sessionKey ↔ threadId 映射。",
"operationId": "get_active_sessions_api_langgraph_active_sessions_get",
"parameters": [
{
"name": "session_keys",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Comma-separated session_key whitelist",
"title": "Session Keys"
},
"description": "Comma-separated session_key whitelist"
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/langgraph/{path}": {
"get": {
"tags": [
"langgraph-proxy"
],
"summary": "Proxy Langgraph",
"operationId": "proxy_langgraph_api_langgraph__path__get",
"parameters": [
{
"name": "path",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"tags": [
"langgraph-proxy"
],
"summary": "Proxy Langgraph",
"operationId": "proxy_langgraph_api_langgraph__path__put",
"parameters": [
{
"name": "path",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"post": {
"tags": [
"langgraph-proxy"
],
"summary": "Proxy Langgraph",
"operationId": "proxy_langgraph_api_langgraph__path__post",
"parameters": [
{
"name": "path",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"patch": {
"tags": [
"langgraph-proxy"
],
"summary": "Proxy Langgraph",
"operationId": "proxy_langgraph_api_langgraph__path__patch",
"parameters": [
{
"name": "path",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"tags": [
"langgraph-proxy"
],
"summary": "Proxy Langgraph",
"operationId": "proxy_langgraph_api_langgraph__path__delete",
"parameters": [
{
"name": "path",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"options": {
"tags": [
"langgraph-proxy"
],
"summary": "Proxy Langgraph",
"operationId": "proxy_langgraph_api_langgraph__path__options",
"parameters": [
{
"name": "path",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"head": {
"tags": [
"langgraph-proxy"
],
"summary": "Proxy Langgraph",
"operationId": "proxy_langgraph_api_langgraph__path__head",
"parameters": [
{
"name": "path",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Path"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/runtime/paths": {
"get": {
"tags": [
"runtime"
],
"summary": "Get Runtime Paths",
"operationId": "get_runtime_paths_api_runtime_paths_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RuntimePathsResponse"
}
}
}
}
}
},
"put": {
"tags": [
"runtime"
],
"summary": "Update Paths",
"description": "Persist paths.base_dir to config.yaml and reload config in-process.",
"operationId": "update_paths_api_runtime_paths_put",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdatePathsRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Update Paths Api Runtime Paths Put"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/health": {
"get": {
"tags": [
"health"
],
"summary": "Health Check",
"description": "Health check endpoint.\n\nReturns:\n Service health status information.",
"operationId": "health_check_health_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"type": "object",
"title": "Response Health Check Health Get"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"AddFactRequest": {
"properties": {
"content": {
"type": "string",
"title": "Content",
"description": "Fact content",
"default": ""
},
"category": {
"type": "string",
"title": "Category",
"description": "Fact category",
"default": "finding"
},
"confidence": {
"type": "number",
"title": "Confidence",
"description": "Confidence score (0-1)",
"default": 0.5
},
"source_message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Source Message",
"description": "Source message ID"
}
},
"type": "object",
"title": "AddFactRequest",
"description": "Request model for adding a fact."
},
"AddSubtaskRequest": {
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Subtask name",
"default": ""
},
"description": {
"type": "string",
"title": "Description",
"description": "Subtask description",
"default": ""
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array",
"title": "Dependencies",
"description": "List of subtask IDs this depends on"
},
"worker_profile": {
"anyOf": [
{
"$ref": "#/components/schemas/WorkerProfile"
},
{
"type": "null"
}
],
"description": "Optional worker constraints (§5.2: base_subagent, tools, skills, instruction, depends_on)"
}
},
"type": "object",
"title": "AddSubtaskRequest"
},
"AgentCreateRequest": {
"properties": {
"agent_code": {
"type": "string",
"title": "Agent Code",
"description": "Agent code (must match ^[A-Za-z0-9-]+$, stored as lowercase)"
},
"agent_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agent Name",
"description": "Optional Chinese display name for UI"
},
"description": {
"type": "string",
"title": "Description",
"description": "Agent description",
"default": ""
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model",
"description": "Optional model override"
},
"tool_groups": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Tool Groups",
"description": "Optional tool group whitelist"
},
"tools": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Tools",
"description": "Optional builtin tool whitelist"
},
"mcp_servers": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Mcp Servers",
"description": "Optional MCP server names"
},
"skills": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Skills",
"description": "Optional skill names"
},
"soul": {
"type": "string",
"title": "Soul",
"description": "SOUL.md content — agent personality and behavioral guardrails",
"default": ""
}
},
"type": "object",
"required": [
"agent_code"
],
"title": "AgentCreateRequest",
"description": "Request body for creating a custom agent."
},
"AgentMemoryResponse": {
"properties": {
"agent_id": {
"type": "string",
"title": "Agent Id"
},
"agent_name": {
"type": "string",
"title": "Agent Name"
},
"main_task_id": {
"type": "string",
"title": "Main Task Id"
},
"tasks": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"title": "Tasks"
},
"total_tasks": {
"type": "integer",
"title": "Total Tasks"
},
"completed_tasks": {
"type": "integer",
"title": "Completed Tasks"
}
},
"type": "object",
"required": [
"agent_id",
"agent_name",
"main_task_id",
"tasks",
"total_tasks",
"completed_tasks"
],
"title": "AgentMemoryResponse",
"description": "Response model for agent memory."
},
"AgentResponse": {
"properties": {
"agent_code": {
"type": "string",
"title": "Agent Code",
"description": "Agent code/identifier (hyphen-case)"
},
"agent_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agent Name",
"description": "Optional Chinese display name for UI"
},
"description": {
"type": "string",
"title": "Description",
"description": "Agent description",
"default": ""
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model",
"description": "Optional model override"
},
"tool_groups": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Tool Groups",
"description": "Optional tool group whitelist"
},
"tools": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Tools",
"description": "Optional builtin tool whitelist"
},
"mcp_servers": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Mcp Servers",
"description": "Optional MCP server names"
},
"skills": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Skills",
"description": "Optional skill names"
},
"soul": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Soul",
"description": "SOUL.md content (included on GET /{name})"
},
"system_prompt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "System Prompt",
"description": "System prompt for the agent"
},
"agent_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agent Type",
"description": "custom | subagent | acp — subagent covers built-in workers (e.g. claude-code); acp is external ACP CLI"
},
"requires_external_cli": {
"type": "boolean",
"title": "Requires External Cli",
"description": "True when delegating this agent requires a host-installed CLI (e.g. Claude Code); unavailable if not installed",
"default": false
},
"external_cli_available": {
"type": "boolean",
"title": "External Cli Available",
"description": "False when the **Gateway API** process cannot import the SDK / find the CLI on PATH. Does not probe the LangGraph runtime; chat runs in LangGraph and may need the same venv.",
"default": true
},
"external_cli_probe_process": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "External Cli Probe Process",
"description": "If set, names the process that ran the probe (e.g. gateway). Claude Code chat runs in LangGraph."
}
},
"type": "object",
"required": [
"agent_code"
],
"title": "AgentResponse",
"description": "Response model for a custom agent."
},
"AgentUpdateRequest": {
"properties": {
"agent_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agent Name",
"description": "Updated Chinese display name for UI"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description",
"description": "Updated description"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model",
"description": "Updated model override"
},
"tool_groups": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Tool Groups",
"description": "Updated tool group whitelist"
},
"tools": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Tools",
"description": "Updated builtin tool whitelist"
},
"mcp_servers": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Mcp Servers",
"description": "Updated MCP server names"
},
"skills": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Skills",
"description": "Updated skill names"
},
"soul": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Soul",
"description": "Updated SOUL.md content"
},
"system_prompt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "System Prompt",
"description": "Updated system prompt"
}
},
"type": "object",
"title": "AgentUpdateRequest",
"description": "Request body for updating a custom agent."
},
"AgentsListResponse": {
"properties": {
"agents": {
"items": {
"$ref": "#/components/schemas/AgentResponse"
},
"type": "array",
"title": "Agents"
}
},
"type": "object",
"required": [
"agents"
],
"title": "AgentsListResponse",
"description": "Response model for listing all custom agents."
},
"AssignSubtaskRequest": {
"properties": {
"agent_id": {
"type": "string",
"title": "Agent Id",
"description": "Agent ID to assign",
"default": ""
}
},
"type": "object",
"title": "AssignSubtaskRequest"
},
"AuthorizeExecutionRequest": {
"properties": {
"authorized_by": {
"type": "string",
"title": "Authorized By",
"description": "user | lead | system",
"default": "user"
},
"thread_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Thread Id",
"description": "Current LangGraph thread id: collab_state is written here when it differs from the task's bound thread_id"
}
},
"type": "object",
"title": "AuthorizeExecutionRequest"
},
"BatchOperationRequest": {
"properties": {
"action": {
"type": "string",
"title": "Action",
"description": "Action to perform: start|cancel|pause|resume|delete"
},
"task_ids": {
"items": {
"type": "string"
},
"type": "array",
"title": "Task Ids",
"description": "List of task IDs to operate on"
}
},
"type": "object",
"required": [
"action",
"task_ids"
],
"title": "BatchOperationRequest"
},
"Body_upload_files_api_threads__thread_id__uploads_post": {
"properties": {
"files": {
"items": {
"type": "string",
"format": "binary"
},
"type": "array",
"title": "Files"
}
},
"type": "object",
"required": [
"files"
],
"title": "Body_upload_files_api_threads__thread_id__uploads_post"
},
"ChannelConfigResponse": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"enabled": {
"type": "boolean",
"title": "Enabled"
},
"running": {
"type": "boolean",
"title": "Running"
},
"config": {
"additionalProperties": true,
"type": "object",
"title": "Config"
}
},
"type": "object",
"required": [
"name",
"enabled",
"running",
"config"
],
"title": "ChannelConfigResponse"
},
"ChannelEnableRequest": {
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled"
}
},
"type": "object",
"required": [
"enabled"
],
"title": "ChannelEnableRequest"
},
"ChannelEnableResponse": {
"properties": {
"success": {
"type": "boolean",
"title": "Success"
},
"message": {
"type": "string",
"title": "Message"
},
"enabled": {
"type": "boolean",
"title": "Enabled"
}
},
"type": "object",
"required": [
"success",
"message",
"enabled"
],
"title": "ChannelEnableResponse"
},
"ChannelRestartResponse": {
"properties": {
"success": {
"type": "boolean",
"title": "Success"
},
"message": {
"type": "string",
"title": "Message"
}
},
"type": "object",
"required": [
"success",
"message"
],
"title": "ChannelRestartResponse"
},
"ChannelStatusResponse": {
"properties": {
"service_running": {
"type": "boolean",
"title": "Service Running"
},
"channels": {
"additionalProperties": {
"additionalProperties": true,
"type": "object"
},
"type": "object",
"title": "Channels"
}
},
"type": "object",
"required": [
"service_running",
"channels"
],
"title": "ChannelStatusResponse"
},
"CollabPhase": {
"type": "string",
"enum": [
"idle",
"req_confirm",
"planning",
"plan_ready",
"awaiting_exec",
"executing",
"paused",
"done"
],
"title": "CollabPhase",
"description": "Per-thread collaboration state machine phase (design §6.1)."
},
"ContextSection": {
"properties": {
"summary": {
"type": "string",
"title": "Summary",
"description": "Summary content",
"default": ""
},
"updatedAt": {
"type": "string",
"title": "Updatedat",
"description": "Last update timestamp",
"default": ""
}
},
"type": "object",
"title": "ContextSection",
"description": "Model for context sections (user and history)."
},
"CreateTaskRequest": {
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Task name",
"default": ""
},
"description": {
"type": "string",
"title": "Description",
"description": "Task description",
"default": ""
},
"thread_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Thread Id",
"description": "Bind LangGraph thread to this task"
}
},
"type": "object",
"title": "CreateTaskRequest"
},
"Fact": {
"properties": {
"id": {
"type": "string",
"title": "Id",
"description": "Unique identifier for the fact"
},
"content": {
"type": "string",
"title": "Content",
"description": "Fact content"
},
"category": {
"type": "string",
"title": "Category",
"description": "Fact category",
"default": "context"
},
"confidence": {
"type": "number",
"title": "Confidence",
"description": "Confidence score (0-1)",
"default": 0.5
},
"createdAt": {
"type": "string",
"title": "Createdat",
"description": "Creation timestamp",
"default": ""
},
"source": {
"type": "string",
"title": "Source",
"description": "Source thread ID",
"default": "unknown"
}
},
"type": "object",
"required": [
"id",
"content"
],
"title": "Fact",
"description": "Model for a memory fact."
},
"FeishuPushRequest": {
"properties": {
"text": {
"type": "string",
"maxLength": 49000,
"minLength": 1,
"title": "Text",
"description": "Markdown body shown in the card"
},
"receive_id": {
"type": "string",
"minLength": 1,
"title": "Receive Id",
"description": "Target id (e.g. group chat_id)"
},
"receive_id_type": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"title": "Receive Id Type",
"description": "Feishu receive_id_type, e.g. chat_id, open_id, union_id",
"default": "chat_id"
}
},
"type": "object",
"required": [
"text",
"receive_id"
],
"title": "FeishuPushRequest",
"description": "Body for proactive Feishu push (interactive markdown card)."
},
"FeishuPushResponse": {
"properties": {
"success": {
"type": "boolean",
"title": "Success"
},
"message": {
"type": "string",
"title": "Message"
}
},
"type": "object",
"required": [
"success",
"message"
],
"title": "FeishuPushResponse"
},
"FeishuRegistrationApplyRequest": {
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "Whether to enable the Feishu channel after applying credentials",
"default": true
}
},
"type": "object",
"title": "FeishuRegistrationApplyRequest"
},
"FeishuRegistrationApplyResponse": {
"properties": {
"success": {
"type": "boolean",
"title": "Success"
},
"message": {
"type": "string",
"title": "Message"
},
"channel_running": {
"type": "boolean",
"title": "Channel Running",
"default": false
}
},
"type": "object",
"required": [
"success",
"message"
],
"title": "FeishuRegistrationApplyResponse"
},
"FeishuRegistrationBeginResponse": {
"properties": {
"session_id": {
"type": "string",
"title": "Session Id"
},
"qr_url": {
"type": "string",
"title": "Qr Url",
"description": "Scan this URL with Feishu app to create and authorize the bot"
},
"status": {
"type": "string",
"title": "Status",
"default": "pending"
}
},
"type": "object",
"required": [
"session_id",
"qr_url"
],
"title": "FeishuRegistrationBeginResponse"
},
"FeishuRegistrationPollResponse": {
"properties": {
"session_id": {
"type": "string",
"title": "Session Id"
},
"status": {
"type": "string",
"title": "Status",
"description": "pending | scanning | completed | failed | expired"
},
"app_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "App Id"
},
"app_secret": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "App Secret"
}
},
"type": "object",
"required": [
"session_id",
"status"
],
"title": "FeishuRegistrationPollResponse"
},
"HTTPValidationError": {
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
},
"HistoryContext": {
"properties": {
"recentMonths": {
"$ref": "#/components/schemas/ContextSection"
},
"earlierContext": {
"$ref": "#/components/schemas/ContextSection"
},
"longTermBackground": {
"$ref": "#/components/schemas/ContextSection"
}
},
"type": "object",
"title": "HistoryContext",
"description": "Model for history context."
},
"ListRunsResponse": {
"properties": {
"runs": {
"items": {
"$ref": "#/components/schemas/RunInfo"
},
"type": "array",
"title": "Runs"
},
"total": {
"type": "integer",
"title": "Total"
},
"pending": {
"type": "integer",
"title": "Pending"
},
"running": {
"type": "integer",
"title": "Running"
}
},
"type": "object",
"required": [
"runs",
"total",
"pending",
"running"
],
"title": "ListRunsResponse"
},
"ListWorkspacesResponse": {
"properties": {
"workspaces": {
"items": {
"$ref": "#/components/schemas/WorkspaceSummary"
},
"type": "array",
"title": "Workspaces"
}
},
"type": "object",
"required": [
"workspaces"
],
"title": "ListWorkspacesResponse"
},
"McpConfigResponse": {
"properties": {
"mcp_servers": {
"additionalProperties": {
"$ref": "#/components/schemas/McpServerConfigResponse"
},
"type": "object",
"title": "Mcp Servers",
"description": "Map of MCP server name to configuration"
}
},
"type": "object",
"title": "McpConfigResponse",
"description": "Response model for MCP configuration."
},
"McpConfigUpdateRequest": {
"properties": {
"mcp_servers": {
"additionalProperties": {
"$ref": "#/components/schemas/McpServerConfigResponse"
},
"type": "object",
"title": "Mcp Servers",
"description": "Map of MCP server name to configuration"
}
},
"type": "object",
"required": [
"mcp_servers"
],
"title": "McpConfigUpdateRequest",
"description": "Request model for updating MCP configuration."
},
"McpOAuthConfigResponse": {
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "Whether OAuth token injection is enabled",
"default": true
},
"token_url": {
"type": "string",
"title": "Token Url",
"description": "OAuth token endpoint URL",
"default": ""
},
"grant_type": {
"type": "string",
"enum": [
"client_credentials",
"refresh_token"
],
"title": "Grant Type",
"description": "OAuth grant type",
"default": "client_credentials"
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"description": "OAuth client ID"
},
"client_secret": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Secret",
"description": "OAuth client secret"
},
"refresh_token": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Refresh Token",
"description": "OAuth refresh token"
},
"scope": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Scope",
"description": "OAuth scope"
},
"audience": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Audience",
"description": "OAuth audience"
},
"token_field": {
"type": "string",
"title": "Token Field",
"description": "Token response field containing access token",
"default": "access_token"
},
"token_type_field": {
"type": "string",
"title": "Token Type Field",
"description": "Token response field containing token type",
"default": "token_type"
},
"expires_in_field": {
"type": "string",
"title": "Expires In Field",
"description": "Token response field containing expires-in seconds",
"default": "expires_in"
},
"default_token_type": {
"type": "string",
"title": "Default Token Type",
"description": "Default token type when response omits token_type",
"default": "Bearer"
},
"refresh_skew_seconds": {
"type": "integer",
"title": "Refresh Skew Seconds",
"description": "Refresh this many seconds before expiry",
"default": 60
},
"extra_token_params": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "Extra Token Params",
"description": "Additional form params sent to token endpoint"
}
},
"type": "object",
"title": "McpOAuthConfigResponse",
"description": "OAuth configuration for an MCP server."
},
"McpServerConfigResponse": {
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "Whether this MCP server is enabled",
"default": true
},
"type": {
"type": "string",
"title": "Type",
"description": "Transport type: 'stdio', 'sse', or 'http'",
"default": "stdio"
},
"command": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Command",
"description": "Command to execute to start the MCP server (for stdio type)"
},
"args": {
"items": {
"type": "string"
},
"type": "array",
"title": "Args",
"description": "Arguments to pass to the command (for stdio type)"
},
"env": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "Env",
"description": "Environment variables for the MCP server"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url",
"description": "URL of the MCP server (for sse or http type)"
},
"headers": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "Headers",
"description": "HTTP headers to send (for sse or http type)"
},
"oauth": {
"anyOf": [
{
"$ref": "#/components/schemas/McpOAuthConfigResponse"
},
{
"type": "null"
}
],
"description": "OAuth configuration for MCP HTTP/SSE servers"
},
"description": {
"type": "string",
"title": "Description",
"description": "Human-readable description of what this MCP server provides",
"default": ""
}
},
"type": "object",
"title": "McpServerConfigResponse",
"description": "Response model for MCP server configuration."
},
"McpServerInfo": {
"properties": {
"value": {
"type": "string",
"title": "Value",
"description": "Server name (used as form value)"
},
"label": {
"type": "string",
"title": "Label",
"description": "Display label"
},
"icon": {
"type": "string",
"title": "Icon",
"description": "Emoji icon",
"default": "🔌"
},
"enabled": {
"type": "boolean",
"title": "Enabled"
}
},
"type": "object",
"required": [
"value",
"label",
"enabled"
],
"title": "McpServerInfo",
"description": "MCP server info for frontend display."
},
"MemoryAgentSlot": {
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id",
"description": "Agent id; null means global / default lead memory"
},
"display_name": {
"type": "string",
"title": "Display Name",
"description": "Short label for UI",
"default": ""
},
"description": {
"type": "string",
"title": "Description",
"description": "Optional subtitle from agent config",
"default": ""
},
"has_memory_file": {
"type": "boolean",
"title": "Has Memory File",
"description": "Whether a JSON file already exists on disk",
"default": false
}
},
"type": "object",
"title": "MemoryAgentSlot",
"description": "One memory scope (global or per-agent file)."
},
"MemoryAgentsListResponse": {
"properties": {
"agents": {
"items": {
"$ref": "#/components/schemas/MemoryAgentSlot"
},
"type": "array",
"title": "Agents"
}
},
"type": "object",
"required": [
"agents"
],
"title": "MemoryAgentsListResponse",
"description": "List of memory scopes for dashboard / settings UI."
},
"MemoryConfigResponse": {
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "Whether memory is enabled"
},
"storage_path": {
"type": "string",
"title": "Storage Path",
"description": "Path to memory storage file"
},
"debounce_seconds": {
"type": "integer",
"title": "Debounce Seconds",
"description": "Debounce time for memory updates"
},
"max_facts": {
"type": "integer",
"title": "Max Facts",
"description": "Maximum number of facts to store"
},
"fact_confidence_threshold": {
"type": "number",
"title": "Fact Confidence Threshold",
"description": "Minimum confidence threshold for facts"
},
"injection_enabled": {
"type": "boolean",
"title": "Injection Enabled",
"description": "Whether memory injection is enabled"
},
"max_injection_tokens": {
"type": "integer",
"title": "Max Injection Tokens",
"description": "Maximum tokens for memory injection"
}
},
"type": "object",
"required": [
"enabled",
"storage_path",
"debounce_seconds",
"max_facts",
"fact_confidence_threshold",
"injection_enabled",
"max_injection_tokens"
],
"title": "MemoryConfigResponse",
"description": "Response model for memory configuration."
},
"MemoryResponse": {
"properties": {
"version": {
"type": "string",
"title": "Version",
"description": "Memory schema version",
"default": "1.0"
},
"lastUpdated": {
"type": "string",
"title": "Lastupdated",
"description": "Last update timestamp",
"default": ""
},
"user": {
"$ref": "#/components/schemas/UserContext"
},
"history": {
"$ref": "#/components/schemas/HistoryContext"
},
"facts": {
"items": {
"$ref": "#/components/schemas/Fact"
},
"type": "array",
"title": "Facts"
}
},
"type": "object",
"title": "MemoryResponse",
"description": "Response model for memory data."
},
"MemoryStatusResponse": {
"properties": {
"config": {
"$ref": "#/components/schemas/MemoryConfigResponse"
},
"data": {
"$ref": "#/components/schemas/MemoryResponse"
}
},
"type": "object",
"required": [
"config",
"data"
],
"title": "MemoryStatusResponse",
"description": "Response model for memory status."
},
"ModelCreateRequest": {
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Unique identifier for the model"
},
"vendor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Vendor",
"description": "English vendor id (e.g. aliyun); one connection per vendor in YAML"
},
"model": {
"type": "string",
"title": "Model",
"description": "Actual provider model identifier"
},
"display_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Display Name",
"description": "Human-readable name"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description",
"description": "Model description"
},
"api_key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Api Key",
"description": "API key for the model"
},
"base_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Base Url",
"description": "Base URL for the API"
},
"use": {
"type": "string",
"title": "Use",
"description": "Provider class to use",
"default": "langchain_openai:ChatOpenAI"
},
"request_timeout": {
"type": "number",
"title": "Request Timeout",
"description": "Request timeout in seconds",
"default": 600.0
},
"max_retries": {
"type": "integer",
"title": "Max Retries",
"description": "Maximum number of retries",
"default": 2
},
"max_tokens": {
"type": "integer",
"title": "Max Tokens",
"description": "Maximum number of tokens",
"default": 8192
},
"temperature": {
"type": "number",
"title": "Temperature",
"description": "Temperature for generation",
"default": 0.7
},
"supports_vision": {
"type": "boolean",
"title": "Supports Vision",
"description": "Whether model supports vision",
"default": false
},
"supports_thinking": {
"type": "boolean",
"title": "Supports Thinking",
"description": "Whether model supports thinking mode",
"default": false
},
"supports_reasoning_effort": {
"type": "boolean",
"title": "Supports Reasoning Effort",
"description": "Whether model supports reasoning effort",
"default": false
},
"when_thinking_enabled": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "When Thinking Enabled",
"description": "Extra ChatOpenAI kwargs when thinking is on (e.g. extra_body.thinking for OpenAI-compatible gateways)"
},
"thinking": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Thinking",
"description": "Shortcut merged into when_thinking_enabled.thinking (see config.example.yaml)"
}
},
"type": "object",
"required": [
"name",
"model"
],
"title": "ModelCreateRequest",
"description": "Request model for creating/updating a model."
},
"ModelInvokeMessage": {
"properties": {
"role": {
"type": "string",
"title": "Role",
"description": "system | user | assistant"
},
"content": {
"type": "string",
"title": "Content",
"description": "Message text"
}
},
"type": "object",
"required": [
"role",
"content"
],
"title": "ModelInvokeMessage",
"description": "One chat message for server-side model invoke."
},
"ModelInvokeRequest": {
"properties": {
"model_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model Name",
"description": "Name from config.yaml; omit or empty to use the first configured model"
},
"messages": {
"items": {
"$ref": "#/components/schemas/ModelInvokeMessage"
},
"type": "array",
"minItems": 1,
"title": "Messages"
},
"temperature": {
"anyOf": [
{
"type": "number",
"maximum": 2.0,
"minimum": 0.0
},
{
"type": "null"
}
],
"title": "Temperature"
}
},
"type": "object",
"required": [
"messages"
],
"title": "ModelInvokeRequest",
"description": "Invoke a configured EvoFlow model (same stack as main chat)."
},
"ModelInvokeResponse": {
"properties": {
"content": {
"type": "string",
"title": "Content",
"description": "Assistant text",
"default": ""
}
},
"type": "object",
"title": "ModelInvokeResponse"
},
"ModelResponse": {
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Unique identifier for the model"
},
"vendor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Vendor",
"description": "English vendor id (e.g. aliyun, openai)"
},
"model": {
"type": "string",
"title": "Model",
"description": "Actual provider model identifier"
},
"display_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Display Name",
"description": "Human-readable name"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description",
"description": "Model description"
},
"use": {
"type": "string",
"title": "Use",
"description": "Provider class path"
},
"base_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Base Url",
"description": "Base URL for the API"
},
"api_key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Api Key",
"description": "API key (masked)"
},
"supports_thinking": {
"type": "boolean",
"title": "Supports Thinking",
"description": "Whether model supports thinking mode",
"default": false
},
"supports_reasoning_effort": {
"type": "boolean",
"title": "Supports Reasoning Effort",
"description": "Whether model supports reasoning effort",
"default": false
},
"supports_vision": {
"type": "boolean",
"title": "Supports Vision",
"description": "Whether model supports vision",
"default": false
},
"max_tokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Max Tokens",
"description": "Maximum output tokens (generation limit)"
},
"when_thinking_enabled": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "When Thinking Enabled",
"description": "Provider kwargs used when thinking mode is enabled (if configured)"
},
"thinking": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Thinking",
"description": "Thinking shortcut merged into when_thinking_enabled"
}
},
"type": "object",
"required": [
"name",
"model",
"use"
],
"title": "ModelResponse",
"description": "Response model for model information."
},
"ModelsListResponse": {
"properties": {
"models": {
"items": {
"$ref": "#/components/schemas/ModelResponse"
},
"type": "array",
"title": "Models"
}
},
"type": "object",
"required": [
"models"
],
"title": "ModelsListResponse",
"description": "Response model for listing all models."
},
"ProjectFactsResponse": {
"properties": {
"main_task_id": {
"type": "string",
"title": "Main Task Id"
},
"facts": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"title": "Facts"
},
"total": {
"type": "integer",
"title": "Total"
}
},
"type": "object",
"required": [
"main_task_id",
"facts",
"total"
],
"title": "ProjectFactsResponse",
"description": "Response model for main task facts."
},
"ProjectStatusResponse": {
"properties": {
"main_task_id": {
"type": "string",
"title": "Main Task Id"
},
"agents": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"title": "Agents"
},
"tasks": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"title": "Tasks"
}
},
"type": "object",
"required": [
"main_task_id",
"agents",
"tasks"
],
"title": "ProjectStatusResponse",
"description": "Response model for main task runtime status."
},
"ResolveWorkspaceRequest": {
"properties": {
"path": {
"type": "string",
"title": "Path"
}
},
"type": "object",
"required": [
"path"
],
"title": "ResolveWorkspaceRequest"
},
"ResolveWorkspaceResponse": {
"properties": {
"input": {
"type": "string",
"title": "Input"
},
"resolved": {
"type": "string",
"title": "Resolved"
},
"exists": {
"type": "boolean",
"title": "Exists"
},
"is_dir": {
"type": "boolean",
"title": "Is Dir"
}
},
"type": "object",
"required": [
"input",
"resolved",
"exists",
"is_dir"
],
"title": "ResolveWorkspaceResponse"
},
"RetrySubtaskRequest": {
"properties": {
"subtask_ids": {
"items": {
"type": "string"
},
"type": "array",
"title": "Subtask Ids",
"description": "Specific subtask IDs to retry",
"default": []
},
"retry_all_failed": {
"type": "boolean",
"title": "Retry All Failed",
"description": "Retry all failed subtasks",
"default": false
}
},
"type": "object",
"title": "RetrySubtaskRequest"
},
"RunInfo": {
"properties": {
"run_id": {
"type": "string",
"title": "Run Id"
},
"thread_id": {
"type": "string",
"title": "Thread Id"
},
"assistant_id": {
"type": "string",
"title": "Assistant Id"
},
"status": {
"type": "string",
"title": "Status"
},
"created_at": {
"type": "string",
"title": "Created At"
},
"updated_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Updated At"
},
"model_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model Name"
},
"is_plan_mode": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Is Plan Mode"
},
"subagent_enabled": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Subagent Enabled"
}
},
"type": "object",
"required": [
"run_id",
"thread_id",
"assistant_id",
"status",
"created_at"
],
"title": "RunInfo"
},
"RuntimePathsResponse": {
"properties": {
"cwd": {
"type": "string",
"title": "Cwd"
},
"evoflow_home_env": {
"type": "string",
"title": "Evoflow Home Env"
},
"evoflow_config_path_env": {
"type": "string",
"title": "Evoflow Config Path Env"
},
"config_path_resolved": {
"type": "string",
"title": "Config Path Resolved"
},
"base_dir": {
"type": "string",
"title": "Base Dir"
},
"checkpointer_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Checkpointer Type"
},
"checkpointer_connection_string": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Checkpointer Connection String"
},
"checkpointer_sqlite_path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Checkpointer Sqlite Path"
}
},
"type": "object",
"required": [
"cwd",
"evoflow_home_env",
"evoflow_config_path_env",
"config_path_resolved",
"base_dir"
],
"title": "RuntimePathsResponse"
},
"SessionSearchRequest": {
"properties": {
"query": {
"type": "string",
"title": "Query",
"description": "Search query string"
},
"limit": {
"type": "integer",
"maximum": 100.0,
"minimum": 1.0,
"title": "Limit",
"description": "Maximum number of results",
"default": 10
},
"offset": {
"type": "integer",
"minimum": 0.0,
"title": "Offset",
"description": "Offset for pagination",
"default": 0
},
"assistant_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Assistant Id",
"description": "Filter by assistant ID"
},
"date_from": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Date From",
"description": "Filter by date range (ISO format, start)"
},
"date_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Date To",
"description": "Filter by date range (ISO format, end)"
},
"search_in": {
"type": "string",
"title": "Search In",
"description": "Where to search: 'user', 'assistant', or 'all'",
"default": "all"
}
},
"type": "object",
"required": [
"query"
],
"title": "SessionSearchRequest",
"description": "Request model for session search."
},
"SessionSearchResponse": {
"properties": {
"results": {
"items": {
"$ref": "#/components/schemas/SessionSearchResult"
},
"type": "array",
"title": "Results"
},
"total": {
"type": "integer",
"title": "Total",
"description": "Total number of matching sessions"
},
"query": {
"type": "string",
"title": "Query",
"description": "Original search query"
},
"limit": {
"type": "integer",
"title": "Limit",
"description": "Results limit"
},
"offset": {
"type": "integer",
"title": "Offset",
"description": "Results offset"
}
},
"type": "object",
"required": [
"results",
"total",
"query",
"limit",
"offset"
],
"title": "SessionSearchResponse",
"description": "Response model for session search."
},
"SessionSearchResult": {
"properties": {
"thread_id": {
"type": "string",
"title": "Thread Id",
"description": "Thread/session ID"
},
"assistant_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Assistant Id",
"description": "Assistant ID"
},
"created_at": {
"type": "string",
"title": "Created At",
"description": "Session creation time"
},
"updated_at": {
"type": "string",
"title": "Updated At",
"description": "Session last update time"
},
"message_count": {
"type": "integer",
"title": "Message Count",
"description": "Number of messages in session"
},
"rank": {
"type": "number",
"title": "Rank",
"description": "Search relevance rank (lower is better)"
},
"snippet": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Snippet",
"description": "Highlighted snippet"
},
"user_content_preview": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "User Content Preview",
"description": "User content preview"
},
"assistant_content_preview": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Assistant Content Preview",
"description": "Assistant content preview"
}
},
"type": "object",
"required": [
"thread_id",
"created_at",
"updated_at",
"message_count",
"rank"
],
"title": "SessionSearchResult",
"description": "Single search result."
},
"SetPrimaryModelRequest": {
"properties": {
"model_name": {
"type": "string",
"title": "Model Name",
"description": "Name of the model to set as primary"
}
},
"type": "object",
"required": [
"model_name"
],
"title": "SetPrimaryModelRequest",
"description": "Request model for setting the primary (default) model."
},
"SkillDeleteResponse": {
"properties": {
"success": {
"type": "boolean",
"title": "Success",
"description": "Whether the skill directory was removed"
},
"skill_name": {
"type": "string",
"title": "Skill Name",
"description": "Name of the deleted skill"
},
"message": {
"type": "string",
"title": "Message",
"description": "Human-readable result message"
}
},
"type": "object",
"required": [
"success",
"skill_name",
"message"
],
"title": "SkillDeleteResponse",
"description": "Response model for deleting a custom skill."
},
"SkillInfo": {
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Skill identifier / directory name"
},
"label": {
"type": "string",
"title": "Label",
"description": "Display name"
},
"description": {
"type": "string",
"title": "Description",
"description": "Skill description from SKILL.md frontmatter",
"default": ""
},
"icon": {
"type": "string",
"title": "Icon",
"description": "Emoji icon",
"default": "🧩"
}
},
"type": "object",
"required": [
"name",
"label"
],
"title": "SkillInfo",
"description": "Single skill info for frontend display."
},
"SkillInstallRequest": {
"properties": {
"thread_id": {
"type": "string",
"title": "Thread Id",
"description": "The thread ID where the .skill file is located"
},
"path": {
"type": "string",
"title": "Path",
"description": "Virtual path to the .skill file (e.g., mnt/user-data/outputs/my-skill.skill)"
}
},
"type": "object",
"required": [
"thread_id",
"path"
],
"title": "SkillInstallRequest",
"description": "Request model for installing a skill from a .skill file."
},
"SkillInstallResponse": {
"properties": {
"success": {
"type": "boolean",
"title": "Success",
"description": "Whether the installation was successful"
},
"skill_name": {
"type": "string",
"title": "Skill Name",
"description": "Name of the installed skill"
},
"message": {
"type": "string",
"title": "Message",
"description": "Installation result message"
}
},
"type": "object",
"required": [
"success",
"skill_name",
"message"
],
"title": "SkillInstallResponse",
"description": "Response model for skill installation."
},
"SkillMarketInstallRequest": {
"properties": {
"slug": {
"type": "string",
"title": "Slug",
"description": "Market skill slug (e.g. weather, github)"
}
},
"type": "object",
"required": [
"slug"
],
"title": "SkillMarketInstallRequest",
"description": "Install a skill by downloading its archive from the public SkillHub market."
},
"SkillResponse": {
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Name of the skill"
},
"description": {
"type": "string",
"title": "Description",
"description": "Description of what the skill does"
},
"license": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "License",
"description": "License information"
},
"category": {
"type": "string",
"title": "Category",
"description": "Category of the skill (public or custom)"
},
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "Whether this skill is enabled",
"default": true
}
},
"type": "object",
"required": [
"name",
"description",
"category"
],
"title": "SkillResponse",
"description": "Response model for skill information."
},
"SkillUpdateRequest": {
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "Whether to enable or disable the skill"
}
},
"type": "object",
"required": [
"enabled"
],
"title": "SkillUpdateRequest",
"description": "Request model for updating a skill."
},
"SkillsListResponse": {
"properties": {
"skills": {
"items": {
"$ref": "#/components/schemas/SkillResponse"
},
"type": "array",
"title": "Skills"
}
},
"type": "object",
"required": [
"skills"
],
"title": "SkillsListResponse",
"description": "Response model for listing all skills."
},
"SubtaskConversationHistoryResponse": {
"properties": {
"task_id": {
"type": "string",
"title": "Task Id"
},
"subtask_id": {
"type": "string",
"title": "Subtask Id"
},
"count": {
"type": "integer",
"title": "Count"
},
"messages": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"title": "Messages"
}
},
"type": "object",
"required": [
"task_id",
"subtask_id",
"count"
],
"title": "SubtaskConversationHistoryResponse"
},
"SubtaskEnrichedPromptResponse": {
"properties": {
"task_id": {
"type": "string",
"title": "Task Id"
},
"subtask_id": {
"type": "string",
"title": "Subtask Id"
},
"enriched_prompt": {
"type": "string",
"title": "Enriched Prompt",
"description": "Prompt text passed to the subtask worker (before optional upstream dependency appendix)."
}
},
"type": "object",
"required": [
"task_id",
"subtask_id",
"enriched_prompt"
],
"title": "SubtaskEnrichedPromptResponse",
"description": "Exact output of ``evoflow.tools.builtins.supervisor.execution._build_subtask_enriched_prompt``."
},
"SubtaskHistoryResponse": {
"properties": {
"main_task_id": {
"type": "string",
"title": "Main Task Id"
},
"subtask_id": {
"type": "string",
"title": "Subtask Id"
},
"count": {
"type": "integer",
"title": "Count"
},
"lines": {
"items": {
"type": "string"
},
"type": "array",
"title": "Lines"
}
},
"type": "object",
"required": [
"main_task_id",
"subtask_id",
"count"
],
"title": "SubtaskHistoryResponse"
},
"SuggestionMessage": {
"properties": {
"role": {
"type": "string",
"title": "Role",
"description": "Message role: user|assistant"
},
"content": {
"type": "string",
"title": "Content",
"description": "Message content as plain text"
}
},
"type": "object",
"required": [
"role",
"content"
],
"title": "SuggestionMessage"
},
"SuggestionsRequest": {
"properties": {
"messages": {
"items": {
"$ref": "#/components/schemas/SuggestionMessage"
},
"type": "array",
"title": "Messages",
"description": "Recent conversation messages"
},
"n": {
"type": "integer",
"maximum": 5.0,
"minimum": 1.0,
"title": "N",
"description": "Number of suggestions to generate",
"default": 3
},
"model_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model Name",
"description": "Optional model override"
}
},
"type": "object",
"required": [
"messages"
],
"title": "SuggestionsRequest"
},
"SuggestionsResponse": {
"properties": {
"suggestions": {
"items": {
"type": "string"
},
"type": "array",
"title": "Suggestions",
"description": "Suggested follow-up questions"
}
},
"type": "object",
"title": "SuggestionsResponse"
},
"TaskMemoryResponse": {
"properties": {
"task_id": {
"type": "string",
"title": "Task Id"
},
"agent_id": {
"type": "string",
"title": "Agent Id"
},
"status": {
"type": "string",
"title": "Status"
},
"facts": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"title": "Facts"
},
"output_summary": {
"type": "string",
"title": "Output Summary"
},
"current_step": {
"type": "string",
"title": "Current Step"
},
"progress": {
"type": "integer",
"title": "Progress"
},
"created_at": {
"type": "string",
"title": "Created At"
},
"updated_at": {
"type": "string",
"title": "Updated At"
},
"completed_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Completed At"
},
"parent_task_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Parent Task Id",
"description": "Set when task_id is a subtask in subtasks[]"
},
"is_subtask": {
"type": "boolean",
"title": "Is Subtask",
"description": "True when resolving a subtask id",
"default": false
}
},
"type": "object",
"required": [
"task_id",
"agent_id",
"status",
"facts",
"output_summary",
"current_step",
"progress",
"created_at",
"updated_at"
],
"title": "TaskMemoryResponse",
"description": "Response model for task memory."
},
"TaskStreamLogResponse": {
"properties": {
"task_id": {
"type": "string",
"title": "Task Id"
},
"count": {
"type": "integer",
"title": "Count"
},
"events": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"title": "Events"
}
},
"type": "object",
"required": [
"task_id",
"count"
],
"title": "TaskStreamLogResponse"
},
"TestModelRequest": {
"properties": {
"base_url": {
"type": "string",
"title": "Base Url",
"description": "Base URL for the API"
},
"api_key": {
"type": "string",
"title": "Api Key",
"description": "API key for authentication",
"default": ""
},
"model_id": {
"type": "string",
"title": "Model Id",
"description": "Model identifier"
},
"api_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Api Type",
"description": "API type (openai-completions, anthropic-messages, etc.)"
}
},
"type": "object",
"required": [
"base_url",
"model_id"
],
"title": "TestModelRequest",
"description": "Request model for testing a model connection."
},
"ThreadCollabStateResponse": {
"properties": {
"collab_phase": {
"$ref": "#/components/schemas/CollabPhase"
},
"bound_task_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Bound Task Id"
},
"sidebar_supervisor_steps": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array",
"title": "Sidebar Supervisor Steps"
},
"updated_at": {
"type": "string",
"title": "Updated At"
}
},
"type": "object",
"required": [
"collab_phase",
"bound_task_id",
"updated_at"
],
"title": "ThreadCollabStateResponse"
},
"ThreadDeleteResponse": {
"properties": {
"success": {
"type": "boolean",
"title": "Success"
},
"message": {
"type": "string",
"title": "Message"
}
},
"type": "object",
"required": [
"success",
"message"
],
"title": "ThreadDeleteResponse",
"description": "Response model for thread cleanup."
},
"ToolInfo": {
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Tool name (identifier)"
},
"label": {
"type": "string",
"title": "Label",
"description": "Display label"
},
"icon": {
"type": "string",
"title": "Icon",
"description": "Emoji icon",
"default": ""
},
"group": {
"type": "string",
"title": "Group",
"description": "Tool group",
"default": ""
},
"description": {
"type": "string",
"title": "Description",
"description": "Tool description",
"default": ""
}
},
"type": "object",
"required": [
"name",
"label"
],
"title": "ToolInfo",
"description": "Single tool info for frontend display."
},
"ToolListResponse": {
"properties": {
"tools": {
"items": {
"$ref": "#/components/schemas/ToolInfo"
},
"type": "array",
"title": "Tools"
},
"mcp_servers": {
"items": {
"$ref": "#/components/schemas/McpServerInfo"
},
"type": "array",
"title": "Mcp Servers"
},
"skills": {
"items": {
"$ref": "#/components/schemas/SkillInfo"
},
"type": "array",
"title": "Skills"
}
},
"type": "object",
"required": [
"tools",
"mcp_servers",
"skills"
],
"title": "ToolListResponse",
"description": "Response containing available tools, MCP servers and skills."
},
"UpdatePathsRequest": {
"properties": {
"base_dir": {
"type": "string",
"title": "Base Dir",
"description": "Absolute path for EvoFlow base_dir (data root)"
}
},
"type": "object",
"required": [
"base_dir"
],
"title": "UpdatePathsRequest"
},
"UpdateProgressRequest": {
"properties": {
"progress": {
"type": "integer",
"title": "Progress",
"description": "Progress 0-100",
"default": 0
},
"current_step": {
"type": "string",
"title": "Current Step",
"description": "Current step description",
"default": ""
}
},
"type": "object",
"title": "UpdateProgressRequest",
"description": "Request model for updating task progress."
},
"UpdateSubtaskRequest": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name",
"description": "Subtask name"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description",
"description": "Subtask description"
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"description": "Subtask status"
},
"assigned_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Assigned To",
"description": "Assigned agent ID"
},
"progress": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Progress",
"description": "Progress 0-100"
}
},
"type": "object",
"title": "UpdateSubtaskRequest"
},
"UpdateTaskRequest": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name",
"description": "Task name"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description",
"description": "Task description"
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"description": "Task status"
},
"progress": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Progress",
"description": "Progress 0-100"
}
},
"type": "object",
"title": "UpdateTaskRequest"
},
"UploadResponse": {
"properties": {
"success": {
"type": "boolean",
"title": "Success"
},
"files": {
"items": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"type": "array",
"title": "Files"
},
"message": {
"type": "string",
"title": "Message"
}
},
"type": "object",
"required": [
"success",
"files",
"message"
],
"title": "UploadResponse",
"description": "Response model for file upload."
},
"UserContext": {
"properties": {
"workContext": {
"$ref": "#/components/schemas/ContextSection"
},
"personalContext": {
"$ref": "#/components/schemas/ContextSection"
},
"topOfMind": {
"$ref": "#/components/schemas/ContextSection"
}
},
"type": "object",
"title": "UserContext",
"description": "Model for user context."
},
"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"
},
"WeixinRegistrationApplyRequest": {
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "Whether to enable the Weixin channel after applying credentials",
"default": true
}
},
"type": "object",
"title": "WeixinRegistrationApplyRequest"
},
"WeixinRegistrationApplyResponse": {
"properties": {
"success": {
"type": "boolean",
"title": "Success"
},
"message": {
"type": "string",
"title": "Message"
},
"channel_running": {
"type": "boolean",
"title": "Channel Running",
"default": false
}
},
"type": "object",
"required": [
"success",
"message"
],
"title": "WeixinRegistrationApplyResponse"
},
"WeixinRegistrationBeginResponse": {
"properties": {
"session_id": {
"type": "string",
"title": "Session Id"
},
"qr_url": {
"type": "string",
"title": "Qr Url",
"description": "URL or payload to render as QR (iLink get_bot_qrcode response)"
},
"status": {
"type": "string",
"title": "Status",
"default": "pending"
}
},
"type": "object",
"required": [
"session_id",
"qr_url"
],
"title": "WeixinRegistrationBeginResponse"
},
"WeixinRegistrationPollResponse": {
"properties": {
"session_id": {
"type": "string",
"title": "Session Id"
},
"status": {
"type": "string",
"title": "Status",
"description": "pending | scanning | completed | failed | expired"
},
"qr_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Qr Url",
"description": "Present while pending/scanning so the UI can refresh the image after server-side QR refresh"
},
"account_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Account Id"
},
"token": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Token"
},
"base_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Base Url"
},
"user_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "User Id"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error"
}
},
"type": "object",
"required": [
"session_id",
"status"
],
"title": "WeixinRegistrationPollResponse"
},
"WorkerProfile": {
"properties": {
"base_subagent": {
"type": "string",
"title": "Base Subagent",
"description": "Subagent template name, e.g. general-purpose"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model",
"description": "Override default model for this task"
},
"instruction": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Instruction",
"description": "Extra system instructions for this worker"
},
"tools": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Tools",
"description": "Override default tools (load from AgentConfig if None)"
},
"skills": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Skills",
"description": "Override default skills (load from AgentConfig if None)"
},
"depends_on": {
"items": {
"type": "string"
},
"type": "array",
"title": "Depends On",
"description": "Upstream subtask ids that must be status completed before this subtask may run (enforced by supervisor start_execution)."
},
"expected_outputs": {
"items": {
"type": "string"
},
"type": "array",
"title": "Expected Outputs",
"description": "Expected output file paths this subtask must produce (e.g. ['outputs/design.md', 'src/api.py']). Used for artifact verification after completion."
},
"validation": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Validation",
"description": "Validation command to run after subtask completion (e.g. 'pytest tests/ -v'). Output is checked for pass/fail."
},
"max_retries": {
"type": "integer",
"title": "Max Retries",
"description": "Maximum retry count for this subtask before escalating to lead agent.",
"default": 3
}
},
"type": "object",
"required": [
"base_subagent"
],
"title": "WorkerProfile",
"description": "Per-subtask worker constraints (design §5.2). Stored on subtask as ``worker_profile``."
},
"WorkspaceSummary": {
"properties": {
"thread_id": {
"type": "string",
"title": "Thread Id"
},
"path": {
"type": "string",
"title": "Path"
},
"exists": {
"type": "boolean",
"title": "Exists"
}
},
"type": "object",
"required": [
"thread_id",
"path",
"exists"
],
"title": "WorkspaceSummary"
}
}
},
"tags": [
{
"name": "models",
"description": "Operations for querying available AI models and their configurations"
},
{
"name": "mcp",
"description": "Manage Model Context Protocol (MCP) server configurations"
},
{
"name": "memory",
"description": "Access and manage global memory data for personalized conversations"
},
{
"name": "skills",
"description": "Manage skills and their configurations"
},
{
"name": "artifacts",
"description": "Access and download thread artifacts and generated files"
},
{
"name": "uploads",
"description": "Upload and manage user files for threads"
},
{
"name": "threads",
"description": "Manage EvoFlow thread-local filesystem data"
},
{
"name": "agents",
"description": "Create and manage custom agents with per-agent config and prompts"
},
{
"name": "suggestions",
"description": "Generate follow-up question suggestions for conversations"
},
{
"name": "channels",
"description": "Manage IM channel integrations (Feishu, Slack, Telegram)"
},
{
"name": "tasks",
"description": "Manage tasks within projects"
},
{
"name": "task-detail",
"description": "Access task execution details and extracted facts"
},
{
"name": "events",
"description": "Real-time SSE events for project monitoring"
},
{
"name": "collab",
"description": "Per-thread collaboration phase and bound task/project ids"
},
{
"name": "health",
"description": "Health check and system status endpoints"
},
{
"name": "sessions",
"description": "Search and manage conversation sessions with full-text search"
}
]
}