Skip to content

API Reference parrot_tools.materialize_widget

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

parrot_tools.materialize_widget

View source

Turn a chat turn into a refreshable linked widget without an LLM round-trip (FEAT-757).

Class MaterializeWidgetArgs

Arguments for materializing a chat turn as a linked widget.

Attributes:

Attribute Type Description
turn_id str
envelope dict[str, Any] | None
session_id str | None
title str | None
pin bool
snapshot bool

Class MaterializeWidgetTool

Turn a previous chat answer (a chart, table or KPI) into a refreshable linked widget.

Use it when the user asks to keep, pin or save an answer "so it stays up to date". Pass the turn_id of that answer and the envelope it displayed. The tool replays nothing through the model: it reads which query produced the data and rebuilds the same widget bound to that query. Set pin to also save it.

Parameter Type Default Description
bot Any None The agent (provides conversation_memory, memory_key_id and tool_manager).
user_id str | None None Fallback identity when no permission context is present (direct Python use).
session_id str | None None Fallback session when the call does not pass one.
**kwargs Any {}

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