Skip to content

API Reference parrot.flows.thales.nodes.bibliography

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

parrot.flows.thales.nodes.bibliography

View source

BibliographyNode + format_apa — deterministic APA-ish formatting (FEAT-425 Module 3).

format_apa is a pure function (no LLM, no node machinery) so it is exhaustively table-driven-testable in isolation. BibliographyNode wraps it as a fan-in over all of a run's ResearchDecks.

Alias AgentTaskMachine

Re-exported from parrot.bots.flows.core.fsm.AgentTaskMachine.

Alias Bibliography

Re-exported from parrot.flows.thales.models.Bibliography.

Class BibliographyNode

Fan-in over all decks -> one deterministic Bibliography.

Attributes:

Attribute Type Description
node_id str
dependencies Set[str]
successors Set[str]
fsm Optional[AgentTaskMachine]
name str Node identifier.

Method BibliographyNode.model_post_init

Auto-create FSM and call parent hook (initialises self.logger).

model_post_init(__context: Any) -> None

Parameter Type Default Description
__context Any

Method BibliographyNode.execute

Collect every deck's claims and format them into one Bibliography.

execute(ctx: FlowContext, deps: DependencyResults, **kwargs: Any) -> str

Parameter Type Default Description
ctx FlowContext The current flow execution context (unused — pure aggregation).
deps DependencyResults Mapping of angle DeckBuilderNode node_id -> JSON-encoded ResearchDeck (or a dropped-deck sentinel, skipped).
**kwargs Any {}

Returns: str — The Bibliography as JSON.

Alias DependencyResults

Re-exported from parrot.bots.flows.core.types.DependencyResults.

Alias FlowContext

Re-exported from parrot.bots.flows.core.context.FlowContext.

Alias Node

Re-exported from parrot.bots.flows.core.node.Node.

Alias ResearchDeck

Re-exported from parrot.flows.thales.models.ResearchDeck.

Alias SourceClaim

Re-exported from parrot.flows.thales.models.SourceClaim.

Function format_apa

Deterministically format a claim list into an APA-ish Bibliography.

format_apa(claims: list[SourceClaim]) -> Bibliography

Parameter Type Default Description
claims list[SourceClaim] Source claims to format, in any order, possibly containing duplicate URLs.

Returns: Bibliography — A Bibliography with deduplicated, deterministically-ordered entries (alphabetical by first author/publisher/title) and the corresponding deduplicated claims in the same order.

Alias register_thales_node

Re-exported from parrot.flows.thales.nodes.registry.register_thales_node.

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