Skip to content

API Reference parrot_tools.business_automation.models

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

parrot_tools.business_automation.models

View source

Domain-neutral data models for BusinessAutomationToolkit.

FEAT-453, Module 5 (Goals G4, G5). These models contain zero site-specific identifiers — the generic engine is public; site plans (e.g. a specific bookkeeping-product integration) stay in an external, private plans directory (Module 6) loaded at runtime.

Class BusinessOperation

One named, parameterized business operation backed by a ScrapingFlow.

Fields:

Field Type Default Description
name str Operation identifier, referenced by :meth:BusinessAutomationToolkit.run_operation.
description str Human-readable summary.
kind OperationKind Legal-effect classification — decides whether this operation is gated by :class:~parrot.auth.confirmation.ConfirmationGuard.
flow_ref str The :class:~parrot_tools.scraping.ScrapingFlow name resolved from the plans directory (Module 6).
params List[ParamSpec] Declared parameters (reuses the scraping DSL's :class:~parrot_tools.scraping.ParamSpec).
confirm_prompt Optional[str] None Optional briefing template shown to the human at the SUBMIT gate (falls back to a generic listing when unset).

Class ImportRun

Discriminates one bank-statement import from another.

Injected into a flow's global_params (Decision D3) so two legitimate imports with identical logical parameters (e.g. the same period) never collide on the same checkpoint token — otherwise the second import would resume the first's checkpoint and silently skip every row it believes is already done.

Fields:

Field Type Default Description
statement_digest str
period str
started_at datetime

Class OperationKind

Whether an operation has legal effect, which decides the submit gate.

  • READ — never gated; pure lookups.
  • DRAFT — unattended; assembles data but does not submit/commit.
  • SUBMIT — ALWAYS gated behind human confirmation (Decision D2).

Alias ParamSpec

Re-exported from parrot_tools.scraping.ParamSpec.

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