Skip to content

API Reference parrot.flows.thales.nodes.planner

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

parrot.flows.thales.nodes.planner

View source

PlannerNode — thesis -> ResearchAngles (FEAT-425 Module 3).

Splits the user's thesis into a configurable number of research angles via LLM structured output. Never silently proceeds with fewer than config.num_decks angles (spec §7 risk): a short first response triggers exactly ONE explicit re-prompt, then deterministic padding by decomposing the widest (first) angle — no generic retry framework.

Alias AgentTaskMachine

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

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.

Class PlannerNode

Thesis -> list[ResearchAngle] (LLM structured output).

Attributes:

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

Method PlannerNode.model_post_init

Auto-create FSM and call parent hook.

model_post_init(__context: Any) -> None

Parameter Type Default Description
__context Any

Method PlannerNode.execute

Produce >= config.num_decks research angles.

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

Parameter Type Default Description
ctx FlowContext
deps DependencyResults
**kwargs Any {}

Returns: str — A JSON-encoded list of ResearchAngle dicts.

Alias ResearchAngle

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

Alias ThalesConfig

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

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