This commit is contained in:
lda
2026-06-15 22:37:59 +07:00 Verified
parent fe0b2b4f4d
commit e8152fd4e6
32 changed files with 138 additions and 84 deletions
+3 -1
View File
@@ -124,7 +124,9 @@ class ContentAccessService:
return _truncate_resource_payload(payload, max_chars=max_chars)
def _truncate_resource_payload(payload: dict[str, Any], *, max_chars: int) -> dict[str, Any]:
def _truncate_resource_payload(
payload: dict[str, Any], *, max_chars: int
) -> dict[str, Any]:
"""Bound text content returned by source URI reads without mutating upstream payload."""
contents = payload.get("contents")
@@ -150,7 +150,9 @@ class SourceDiagnosticsProvider:
"fetched_at_epoch_ms": None
if snapshot is None
else snapshot.fetched_at_epoch_ms,
"max_age_seconds": None if snapshot is None else snapshot.max_age_seconds,
"max_age_seconds": None
if snapshot is None
else snapshot.max_age_seconds,
"node_count": 0 if snapshot is None else len(snapshot.nodes),
"resource_count": 0 if snapshot is None else len(snapshot.resources),
"prompt_count": 0 if snapshot is None else len(snapshot.prompts),
@@ -88,7 +88,13 @@ class WorkflowRuntimeService:
deployment: WorkflowDeployment | None,
artifact: WorkflowArtifact | None,
saved_subgraph_tree: SavedSubgraphTree | None = None,
) -> tuple[Workflow, dict[str, Any], dict[str, Any], dict[str, Any], SourceBindingPlatformContext]:
) -> tuple[
Workflow,
dict[str, Any],
dict[str, Any],
dict[str, Any],
SourceBindingPlatformContext,
]:
"""Resolve bindings once into the executable pieces core expects.
Saved-run resume still rebuilds prepared dependencies from the current