diff --git a/src/agentscope_runtime/engine/schemas/agent_schemas.py b/src/agentscope_runtime/engine/schemas/agent_schemas.py index 42908c9e7..48c5c5c97 100644 --- a/src/agentscope_runtime/engine/schemas/agent_schemas.py +++ b/src/agentscope_runtime/engine/schemas/agent_schemas.py @@ -232,6 +232,24 @@ class McpApprovalRequest(BaseModel): """The label of the mcp server making the request.""" +class McpApprovalResponse(BaseModel): + """ + mcp approval response + """ + + approval_request_id: str + """The unique ID of the approval request.""" + + approve: bool + """Whether the request was approved.""" + + id: Optional[str] = None + """The unique ID of the approval response.""" + + reason: Optional[str] = None + """Optional reason for the decision.""" + + class Error(BaseModel): code: str """The error code of the message."""