fmt, fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user