Lifei/UI parameter input (#5222)

This commit is contained in:
Lifei Zhou
2025-10-20 10:05:54 +11:00
committed by GitHub
parent 6c3e07e9c7
commit 8b53a5696e
27 changed files with 717 additions and 1250 deletions
+75 -188
View File
@@ -13,78 +13,6 @@
"version": "1.11.0"
},
"paths": {
"/agent/add_sub_recipes": {
"post": {
"tags": [
"super::routes::agent"
],
"operationId": "add_sub_recipes",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AddSubRecipesRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Added sub recipes to agent successfully",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AddSubRecipesResponse"
}
}
}
},
"401": {
"description": "Unauthorized - invalid secret key"
},
"424": {
"description": "Agent not initialized"
}
}
}
},
"/agent/prompt": {
"post": {
"tags": [
"super::routes::agent"
],
"operationId": "extend_prompt",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ExtendPromptRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Extended system prompt successfully",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ExtendPromptResponse"
}
}
}
},
"401": {
"description": "Unauthorized - invalid secret key"
},
"424": {
"description": "Agent not initialized"
}
}
}
},
"/agent/resume": {
"post": {
"tags": [
@@ -124,45 +52,6 @@
}
}
},
"/agent/session_config": {
"post": {
"tags": [
"super::routes::agent"
],
"operationId": "update_session_config",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SessionConfigRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Session config updated successfully",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"401": {
"description": "Unauthorized - invalid secret key"
},
"424": {
"description": "Agent not initialized"
},
"500": {
"description": "Internal server error"
}
}
}
},
"/agent/start": {
"post": {
"tags": [
@@ -269,6 +158,35 @@
}
}
},
"/agent/update_from_session": {
"post": {
"tags": [
"super::routes::agent"
],
"operationId": "update_from_session",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateFromSessionRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Update agent from session data successfully"
},
"401": {
"description": "Unauthorized - invalid secret key"
},
"424": {
"description": "Agent not initialized"
}
}
}
},
"/agent/update_provider": {
"post": {
"tags": [
@@ -2011,16 +1929,37 @@
},
"responses": {
"200": {
"description": "Session user recipe values updated successfully"
"description": "Session user recipe values updated successfully",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateSessionUserRecipeValuesResponse"
}
}
}
},
"401": {
"description": "Unauthorized - Invalid or missing API key"
},
"404": {
"description": "Session not found"
"description": "Session not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Internal server error"
"description": "Internal server error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
},
"security": [
@@ -2053,35 +1992,6 @@
},
"components": {
"schemas": {
"AddSubRecipesRequest": {
"type": "object",
"required": [
"sub_recipes",
"session_id"
],
"properties": {
"session_id": {
"type": "string"
},
"sub_recipes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SubRecipe"
}
}
}
},
"AddSubRecipesResponse": {
"type": "object",
"required": [
"success"
],
"properties": {
"success": {
"type": "boolean"
}
}
},
"Annotations": {
"type": "object",
"properties": {
@@ -2526,32 +2436,6 @@
}
}
},
"ExtendPromptRequest": {
"type": "object",
"required": [
"extension",
"session_id"
],
"properties": {
"extension": {
"type": "string"
},
"session_id": {
"type": "string"
}
}
},
"ExtendPromptResponse": {
"type": "object",
"required": [
"success"
],
"properties": {
"success": {
"type": "boolean"
}
}
},
"ExtensionConfig": {
"oneOf": [
{
@@ -4167,25 +4051,6 @@
}
}
},
"SessionConfigRequest": {
"type": "object",
"required": [
"session_id"
],
"properties": {
"response": {
"allOf": [
{
"$ref": "#/components/schemas/Response"
}
],
"nullable": true
},
"session_id": {
"type": "string"
}
}
},
"SessionDisplayInfo": {
"type": "object",
"required": [
@@ -4644,6 +4509,17 @@
}
}
},
"UpdateFromSessionRequest": {
"type": "object",
"required": [
"session_id"
],
"properties": {
"session_id": {
"type": "string"
}
}
},
"UpdateProviderRequest": {
"type": "object",
"required": [
@@ -4712,6 +4588,17 @@
}
}
},
"UpdateSessionUserRecipeValuesResponse": {
"type": "object",
"required": [
"recipe"
],
"properties": {
"recipe": {
"$ref": "#/components/schemas/Recipe"
}
}
},
"UpsertConfigQuery": {
"type": "object",
"required": [