Skip to content

API Reference parrot.handlers.crew.execution_history_handler

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.handlers.crew.execution_history_handler

View source

REST API Handler for AgentCrew Saved Execution History (FEAT-307).

Exposes list/detail/replay/schedule/delete operations over saved crew executions, backed by SavedExecutionService.

Class CrewExecutionHistoryHandler

REST API Handler for saved crew execution history, replay, and scheduling.

Thin HTTP layer over SavedExecutionService — all orchestration logic (storage reads, crew resolution, scheduler calls) lives in the service; this handler only parses requests, calls the service, and maps exceptions to HTTP responses.

FEAT-446: every HTTP method requires an authenticated session (mirrors tool_catalog.py:231 / special_nodes.py:74); tenant identity is resolved from the session via resolve_session_tenant (handlers/crew/_tenancy.py), the single source inside _get_tenant_user — never trusted from body/query directly.

Parameter Type Default Description
*args ()
**kwargs {}

Attributes:

Attribute Type Description
path str
app WebApp
service SavedExecutionService Lazily build the SavedExecutionService from app-level dependencies.

Method CrewExecutionHistoryHandler.configure

configure(app: WebApp = None, path: str = None, **kwargs) -> WebApp

Parameter Type Default Description
app WebApp None
path str None
**kwargs {}

Returns: WebApp

Method CrewExecutionHistoryHandler.get

List executions, or return execution detail if execution_id is set.

get()

Method CrewExecutionHistoryHandler.post

Replay or schedule a saved execution, per the {action} path segment.

post()

Method CrewExecutionHistoryHandler.delete

Delete a saved execution.

delete()

Alias CrewNotFoundError

Re-exported from parrot.handlers.crew.saved_execution_service.CrewNotFoundError.

Alias CrewStorageConflict

Re-exported from parrot.handlers.crew.definition_storage.CrewStorageConflict.

Alias CrewStorageUnavailable

Re-exported from parrot.handlers.crew.definition_storage.CrewStorageUnavailable.

Alias ExecutionFilter

Re-exported from parrot.handlers.crew.models.ExecutionFilter.

Alias ExecutionNotFoundError

Re-exported from parrot.handlers.crew.saved_execution_service.ExecutionNotFoundError.

Alias ReplayValidationError

Re-exported from parrot.handlers.crew.saved_execution_service.ReplayValidationError.

Alias SavedExecutionService

Re-exported from parrot.handlers.crew.saved_execution_service.SavedExecutionService.

Alias ScheduleRequest

Re-exported from parrot.handlers.crew.models.ScheduleRequest.

Alias SchedulerUnavailableError

Re-exported from parrot.handlers.crew.saved_execution_service.SchedulerUnavailableError.

Alias get_result_storage

Re-exported from parrot.bots.flows.core.storage.backends.get_result_storage.

Alias resolve_session_tenant

Re-exported from parrot.handlers.crew._tenancy.resolve_session_tenant.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally