This commit is contained in:
lda
2026-05-21 16:42:02 +07:00 Verified
parent dcf7a6baf9
commit 7eff7cda2a
6 changed files with 129 additions and 17 deletions
+12 -2
View File
@@ -1,8 +1,9 @@
from __future__ import annotations
from typing import Any, Mapping
from typing import Annotated, Any, Mapping
from fastmcp import FastMCP
from pydantic import Field
from wf_artifacts import ArtifactKind
from wf_artifacts.models import RequiredCapability
@@ -546,7 +547,16 @@ def register_workflow_tools(server: FastMCP[Any], service: WfMcpService) -> None
async def run_deployment(
deployment_id: str,
workflow_input: dict[str, Any],
trace_range: TraceRange | None = None,
trace_range: Annotated[
TraceRange | None,
Field(
description=(
"Debug traces range to return. Omit for normal compact runs; "
"trace entries can include resolved inputs, outputs, and "
"state changes."
)
),
] = None,
) -> dict[str, Any]:
return await handlers.run_deployment(
deployment_id=deployment_id,