Skip to content

API Reference parrot.bots.info

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

parrot.bots.info

View source

InfoAgent — infographic-capable agent with sandboxed Python execution.

A general-purpose agent pre-composed with :class:NarrativeMixin and :class:InfographicAuthoringMixin on top of :class:Agent, plus a sandboxed :class:PythonREPLTool for data manipulation.

Unlike :class:PandasAgent, InfoAgent does not bundle a DatasetManager or DataFrame-centric tooling — data access is the consumer's concern (MCP servers, REST tools, database toolkits, etc.). This makes it the right base for any agent that needs to produce infographics or narrative reports without being tied to the pandas data-analysis workflow.

Usage::

from parrot.bots import InfoAgent

class MyReporter(InfoAgent):
    llm = "anthropic:claude-sonnet-4-20250514"
    narrative_skill = "my-narrative-skill"

    def agent_tools(self):
        # Add domain-specific tools alongside the REPL
        return [*super().agent_tools(), MyCustomTool()]

Alias AbstractTool

Re-exported from parrot.tools.abstract.AbstractTool.

Alias Agent

Re-exported from parrot.bots.agent.Agent.

Class InfoAgent

Agent with built-in infographic authoring, narrative, and Python REPL.

Composes:

  • NarrativeMixin — figure-guarded prose generation via skills.
  • InfographicAuthoringMixin — tier-1/tier-2 infographic authoring (generate_infographic, publish_recipe).
  • Agent — tool-using ReAct reasoning loop.
  • PythonREPLTool — sandboxed Python execution for data transformation and analysis (wired via :meth:agent_tools).

Data sources are NOT baked in — attach them via constructor tools, MCP servers, or any other mechanism. The REPL is available for the LLM to transform/aggregate whatever data the tools provide.

Parameter Type Default Description
*args Any ()
enable_repl bool True When True (default), a :class:PythonREPLTool is included in the agent's tool set. Set to False if the subclass provides its own REPL variant (e.g. PythonPandasTool).
repl_config Optional[dict[str, Any]] None Optional kwargs forwarded to the :class:PythonREPLTool constructor (setup_code, policy, worker_config, etc.).
**kwargs Any {} Forwarded to :class:Agent.

Method InfoAgent.agent_tools

Return the agent-specific tools including the sandboxed Python REPL.

Subclasses that override this should call super().agent_tools() to preserve the REPL (unless they set enable_repl=False and provide their own variant).

agent_tools() -> List[AbstractTool]

Returns: List[AbstractTool]

Alias InfographicAuthoringMixin

Re-exported from parrot.bots.mixins.infographic_authoring.InfographicAuthoringMixin.

Alias NarrativeMixin

Re-exported from parrot.bots.mixins.narrative.NarrativeMixin.

Alias PythonREPLTool

Re-exported from parrot.tools.pythonrepl.PythonREPLTool.

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