sudden code review

This commit is contained in:
lda
2026-05-29 00:51:01 +07:00 Verified
parent f269e3b287
commit aad0e96171
5 changed files with 34 additions and 11 deletions
+1 -3
View File
@@ -130,9 +130,7 @@ class CombinedCatalog:
"description": entry.description,
"outcomes": list(entry.outcomes),
"input_schema": entry.input_schema,
"output_schema": workflow_output_schema_from_mcp_tool_schema(
entry.output_schema
),
"output_schema": entry.output_schema,
}
for entry in self.entries()
],
+2 -3
View File
@@ -49,9 +49,8 @@ from ...models import (
ConnectionConfig,
RawWorkflowPlan,
)
from ...runtime import ToolExecutor
from ...sdk.converters import workflow_output_schema_from_mcp_tool_schema
from ...sdk import BackendAdapter
from ...runtime import ToolExecutor
from ...shared.errors import error_payload
from ...shared.names import RESERVED_CONNECTION_IDS
from ...storage import Store
@@ -876,7 +875,7 @@ class WfMcpService:
"""
model_prefix = entry.qualified_name.replace(".", "_").replace("-", "_")
input_model = _model_from_schema(f"{model_prefix}_Input", entry.input_schema)
output_schema = workflow_output_schema_from_mcp_tool_schema(entry.output_schema)
output_schema = entry.output_schema
output_model = _model_from_schema(f"{model_prefix}_Output", output_schema)
async def invoke_tool(payload: BaseModel) -> NodeReturn[BaseModel]: