Skip to content

solutions_agents.api.runtime

Injected ClassificationWorkflow runtime, capacity, and idempotency ledger.

Classes

WorkflowCapacityError

Bases: RuntimeError

The process has reached its configured concurrent execution bound.

WorkflowEvidenceLimitError

Bases: WorkflowInputError

Aggregate evidence exceeded the configured safe request bound.

WorkflowIdempotencyConflictError

Bases: RuntimeError

One workflow ID was reused for different normalized input.

WorkflowInputError

Bases: ValueError

The workflow rejected a coherent Pydantic request at deterministic preflight.

WorkflowRuntime

Concurrency-safe execution facade around one compiled workflow instance.

execute

execute(request: ClassificationWorkflowRequest) -> ClassificationWorkflowResult

Replay same input, reject conflicting reuse, or start one bounded task.

WorkflowUnavailableError

Bases: RuntimeError

The workflow could not return a terminal business result.

Functions

request_digest

request_digest(request: ClassificationWorkflowRequest) -> str

Hash canonical request content while never serializing image bytes to logs.