ExecutionStepResult (contracts/execution.py)

Stirling-PDF · engine/src/stirling/contracts/execution.py · python · MIT
ai, tag:knn-classified

Pydantic models defining execution step results and actions for workflow engine.

# Source: https://github.com/Stirling-Tools/Stirling-PDF | License: MIT | Copyright 2025 Stirling PDF Inc
# Provided via justclaw.it.com; keep this notice with the code.
from __future__ import annotations

from typing import Annotated, Any, Literal

from pydantic import Field

from stirling.models import ApiModel, ParamToolModel, ToolEndpoint

from .agent_specs import AgentSpec
from .common import WorkflowOutcome


class ExecutionStepResult(ApiModel):
    step_index: int
    tool: ToolEndpoint | None = None
    success: bool
    output_summary: str | None = None
    output_data: dict[str, Any] = Field(default_factory=dict)


class ExecutionContext(ApiModel):
    trigger_type: str | None = None
    input_files: list[str] = Field(default_factory=list)
    metadata: dict[str, Any] = Field(def

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key