Tests necessary for the runtime protocol

This commit is contained in:
lda
2026-05-19 23:03:03 +07:00 Verified
parent 4e3de7b91b
commit 252ebab1f7
7 changed files with 124 additions and 8 deletions
+3 -2
View File
@@ -11,6 +11,7 @@ from wf_authoring import NodeSpec
from ..capabilities import DiscoveredPrompt, DiscoveredResource, DiscoveredTool
from ..models import AuthRecord, ConnectionConfig
from ..runtime import ToolExecutor
from ..sdk import BackendAdapter
from ..shared import root_exception
from ..workflow import wrap_discovered_tool
@@ -72,7 +73,7 @@ def specs_from_discovered_tools(
*,
connection: ConnectionConfig,
auth: AuthRecord | None,
adapter: BackendAdapter,
executor: ToolExecutor,
tools: list[DiscoveredTool],
emit_event: Callable[[McpEvent], None] | None = None,
) -> list[NodeSpec[Any, Any]]:
@@ -80,7 +81,7 @@ def specs_from_discovered_tools(
wrap_discovered_tool(
connection=connection,
auth=auth,
adapter=adapter,
executor=executor,
tool=tool,
emit_event=emit_event,
)
+1 -1
View File
@@ -606,7 +606,7 @@ class WfMcpService:
specs = specs_from_discovered_tools(
connection=connection,
auth=auth,
adapter=adapter,
executor=adapter,
tools=capabilities.tools,
emit_event=self._record_event,
)