Skip to content

API Reference parrot.interfaces.file.batch

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

parrot.interfaces.file.batch

View source

Batch result models shared by Graph managers and FileManagerToolkit (FEAT-603).

This module deliberately has no Microsoft Graph dependency so generic file-manager batch operations can use it with every supported storage backend.

Attribute BatchErrorCode

Class BatchItemResult

Outcome of one item inside upload_files or download_files.

A batch never raises for one item: failures are represented by this model.

Fields:

Field Type Default Description
index int
source str
destination str
state BatchState
ok bool
metadata Optional[FileMetadata] None
error Optional[str] None
error_code Optional[BatchErrorCode] None
status_code Optional[int] None
attempts int 1

Attribute BatchState

Class BatchSummary

Aggregate returned by the toolkit's batch tools.

Fields:

Field Type Default Description
total int
succeeded int
failed int
skipped int
aborted bool False
items List[BatchItemResult]

Method BatchSummary.from_items

Build aggregate counters from batch item results.

from_items(items: List[BatchItemResult], *, aborted: bool = False) -> 'BatchSummary'

Parameter Type Default Description
items List[BatchItemResult] Ordered item results from one batch operation.
aborted bool False Whether the caller stopped scheduling work early.

Returns: 'BatchSummary' — A summary whose counters match the item states.

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