Skip to content

API Reference parrot_tools.navigator.schemas

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

parrot_tools.navigator.schemas

View source

Pydantic input schemas for NavigatorToolkit methods.

Each schema maps to a @tool_schema decorator on a toolkit method. Field descriptions are sent to the LLM as part of the tool definition.

Class AssignModuleClientInput

Input for assigning a module to a client.

Fields:

Field Type Default Description
client_id int Client ID
program_id int Program ID
module_id int Module ID
active bool True

Class AssignModuleGroupInput

Input for assigning a module to a group (permissions).

Fields:

Field Type Default Description
group_id int Group ID
module_id int Module ID
program_id int Program ID
client_id int Client ID
active bool True

Class CloneDashboardInput

Input for cloning a dashboard with all its widgets.

Fields:

Field Type Default Description
confirm_execution bool False CRITICAL GUARDRAIL: MUST always be False (or omitted) on your first attempt. Only set to True AFTER the user has seen and explicitly approved the generation Plan.
source_dashboard_id str UUID of the dashboard to clone
new_name str Name for the cloned dashboard
target_module_id Optional[int] None Target module ID (None = same module)
target_program_id Optional[int] None Target program ID (None = same program)
user_id Optional[int] None Creator user ID

Class DashboardCreateInput

Input for creating a new dashboard.

Fields:

Field Type Default Description
confirm_execution bool False CRITICAL GUARDRAIL: MUST always be False (or omitted) on your first attempt. Only set to True AFTER the user has seen and explicitly approved the generation Plan.
name str Dashboard name
module_id Optional[int] None Container module ID (or use module_slug)
module_slug Optional[str] None Container module slug. Resolved to module_id automatically.
program_id Optional[int] None Program ID (or use program_slug)
program_slug Optional[str] None Program slug (e.g., 'google360'). Resolved to program_id automatically.
description Optional[str] None
dashboard_type str '3' Type: '3'=standard (default), '1'=custom, '100'=CMS, '0'=home, '7'=sales
position int 1 Display order
enabled bool True
shared bool False
published bool True
allow_filtering bool True
allow_widgets bool True
params Dict[str, Any] Behavior config: closable, sortable, showSettingsBtn, _preload, min_required_filters
attributes Dict[str, Any] Visual config: cols, icon, color, explorer ('v3'), widget_location ({name: {h,w,x,y}}), sticky, disable_drag
conditions Optional[Dict[str, Any]] None Filtering config: filtering (date, store, region), filteringadv (boolean filters), share (API call integration)
user_id Optional[int] None Creator user ID (integer). Omit if unknown — the toolkit will use its configured user_id.
save_filtering bool True Save filter permutations to cache (default: True)
slug Optional[str] None Optional manual slug
cond_definition Optional[Dict[str, Any]] None
filtering_show Optional[Dict[str, Any]] None JSON configuration to enable native dashboard filters

Method DashboardCreateInput.coerce_user_id

coerce_user_id(v)

Parameter Type Default Description
v

Class DashboardUpdateInput

Input for updating an existing dashboard.

Fields:

Field Type Default Description
confirm_execution bool False CRITICAL GUARDRAIL: MUST always be False (or omitted) on your first attempt. Only set to True AFTER the user has seen and explicitly approved the generation Plan.
dashboard_id str UUID of the dashboard to update
name Optional[str] None
description Optional[str] None
enabled Optional[bool] None
published Optional[bool] None
position Optional[int] None
params Optional[Dict[str, Any]] None
attributes Optional[Dict[str, Any]] None
conditions Optional[Dict[str, Any]] None
save_filtering Optional[bool] None
slug Optional[str] None
cond_definition Optional[Dict[str, Any]] None
filtering_show Optional[Dict[str, Any]] None

Class EntityLookupInput

Input for looking up an entity by ID or slug.

Fields:

Field Type Default Description
identifier Optional[str] None Dynamic lookup: Pass an ID (e.g. '1102') or Slug (e.g. 'porygon_agentv2'). The toolkit will automatically resolve it to entity_id or entity_slug.
entity_id Optional[int] None Numeric entity ID
entity_uuid Optional[str] None UUID (for dashboards/widgets)
entity_slug Optional[str] None Slug identifier (or dashboard/widget name)
program_id Optional[int] None Filter by program
program_slug Optional[str] None Filter by program slug
module_id Optional[int] None Filter by module
dashboard_id Optional[str] None Filter by dashboard UUID
active_only bool True Only return active entities
limit int 500 Max results
sort_by_newest bool False If True, sorts the results to show the latest inserted items first. Use this when the user asks for 'the latest' or 'most recent'.

Method EntityLookupInput.resolve_identifier

resolve_identifier(data: Any) -> Any

Parameter Type Default Description
data Any

Returns: Any

Class ExecuteSqlInput

Input for executing a raw SQL statement (DDL or DML).

Fields:

Field Type Default Description
sql str SQL statement to execute. Use $1, $2, … placeholders for parameters. DDL statements (CREATE, ALTER, DROP) return None on success — that is normal.
returning bool False When True, fetch and return rows (use for SELECT or INSERT … RETURNING). When False (default), execute without returning rows (DDL, DML).

Class ModuleCreateInput

Input for creating a new module inside a Program.

Fields:

Field Type Default Description
confirm_execution bool False CRITICAL GUARDRAIL: MUST always be False (or omitted) on your first attempt. Only set to True AFTER the user has seen and explicitly approved the generation Plan.
module_name str Module name (e.g., 'Sales Dashboard')
module_slug str URL slug (e.g., 'retail360_sales')
program_id Optional[int] None Parent program ID (or use program_slug)
program_slug Optional[str] None Parent program slug (e.g., 'google360'). Resolved to program_id automatically.
classname Optional[str] None Python class name for the module
description Optional[str] None
active bool True
parent_module_id Optional[int] None FK to parent module for tree hierarchy
attributes Dict[str, Any] Visual config JSON. Keys: icon (iconify format), color (hex), order (string number), layout_style ('min'), menu_type ('parent'|'child'), menu_id (list of parent module IDs), parent_menu (display label), parent_img (SVG filename), img (SVG filename), quick ('true'|'false'), component ('ai' for chatbot modules), moduleAi (chatbot config)
allow_filtering Optional[bool] None
filtering_show Optional[Dict[str, Any]] None
conditions Optional[Dict[str, Any]] None
client_ids Optional[List[int]] None Client IDs to activate the module for. If omitted, auto-resolved from the program's assigned clients (program_clients).
client_slugs Optional[List[str]] None Client slugs to activate the module for. Resolved to client_ids automatically.
group_ids List[int] [1] Group IDs with access to this module

Method ModuleCreateInput.clean_slug

clean_slug(v: str) -> str

Parameter Type Default Description
v str

Returns: str

Class ModuleUpdateInput

Input for updating an existing Module.

Fields:

Field Type Default Description
confirm_execution bool False CRITICAL GUARDRAIL: MUST always be False (or omitted) on your first attempt. Only set to True AFTER the user has seen and explicitly approved the generation Plan.
module_id int ID of the module to update
module_name Optional[str] None
description Optional[str] None
classname Optional[str] None
active Optional[bool] None
attributes Optional[Dict[str, Any]] None
allow_filtering Optional[bool] None
filtering_show Optional[Dict[str, Any]] None
conditions Optional[Dict[str, Any]] None

Class ProgramCreateInput

Input for creating a new Navigator program.

Fields:

Field Type Default Description
confirm_execution bool False Do NOT set this manually. Leave it as False (or omit it). The HITL guard intercepts the call, shows a confirmation to the user, and injects confirm_execution=True automatically on approval.
program_name str Display name of the program (e.g., 'Retail360', 'Pokemon')
program_slug str Unique immutable slug in lowercase_snake_case (e.g., 'retail360', 'pokemon')
description Optional[str] None Program description
abbrv Optional[str] None Short abbreviation (e.g., 'R360', 'PKM')
is_active bool True
attributes Optional[Dict[str, Any]] None Extended config JSON. Common keys: version ('v3'), workday_client, modules_multisections (bool), modeAgent (bool), nameAgent, admin-roles, theme_color
image_url Optional[str] None
visible Optional[bool] True
allow_filtering Optional[bool] None
filtering_show Optional[Dict[str, Any]] None
conditions Optional[Dict[str, Any]] None
client_ids Optional[List[int]] None Client IDs to assign. Use this OR client_slugs.
client_slugs Optional[List[str]] None Client slugs to assign (e.g., ['navigator_new', 'navigator_dev']). Resolved to client_ids automatically.
group_ids List[int] [1] Group IDs with access (1=superuser, always included)

Method ProgramCreateInput.clean_slug

clean_slug(v: str) -> str

Parameter Type Default Description
v str

Returns: str

Method ProgramCreateInput.ensure_superuser

ensure_superuser(v: List[int]) -> List[int]

Parameter Type Default Description
v List[int]

Returns: List[int]

Class ProgramUpdateInput

Input for updating an existing Program.

Fields:

Field Type Default Description
confirm_execution bool False CRITICAL GUARDRAIL: MUST always be False (or omitted) on your first attempt. Only set to True AFTER the user has seen and explicitly approved the generation Plan.
program_id int ID of the program to update
program_name Optional[str] None
description Optional[str] None
abbrv Optional[str] None
is_active Optional[bool] None
attributes Optional[Dict[str, Any]] None
image_url Optional[str] None
visible Optional[bool] None
allow_filtering Optional[bool] None
filtering_show Optional[Dict[str, Any]] None
conditions Optional[Dict[str, Any]] None

Class PublishDashboardInput

Input for publishing a draft dashboard (promote to system-wide).

Transitions a personal/draft dashboard (is_system=False with a specific user_id owner) into a published/system one (is_system=True with user_id=NULL).

Fields:

Field Type Default Description
confirm_execution bool False CRITICAL GUARDRAIL: MUST always be False (or omitted) on your first attempt. Only set to True AFTER the user has seen and explicitly approved the generation Plan.
dashboard_id str UUID of the dashboard to publish. Must currently be a draft (is_system=False) owned by the calling user (or caller must be superuser).

Class SearchInput

Input for searching across Navigator entities.

Fields:

Field Type Default Description
query str Search text (searches names, slugs, titles)
entity_type Optional[str] None Limit to: 'program', 'module', 'dashboard', 'widget'. None = search all
limit int 20 Max results per entity type

Class WidgetCreateInput

Input for creating a widget in a dashboard.

Fields:

Field Type Default Description
confirm_execution bool False CRITICAL GUARDRAIL: MUST always be False (or omitted) on your first attempt. Only set to True AFTER the user has seen and explicitly approved the generation Plan.
dashboard_id Optional[str] None UUID of the container dashboard (or use dashboard_name)
dashboard_name Optional[str] None Dashboard name to search for. Resolved to dashboard_id automatically.
program_id Optional[int] None Program ID (or use program_slug)
program_slug Optional[str] None Program slug. Resolved to program_id automatically.
widget_type_id str Widget type. Top 5: 'api-echarts' (charts), 'api-pqtable' (grids), 'api-card' (KPI cards), 'api-table' (simple tables), 'api-selectPqTable' (interactive grids). Media: 'media-editor-wysiwyg', 'media-iframe', 'media-bot', 'media-list-cards'. Other: 'api-maps', 'api-route', 'api-leaderboard', 'api-photo-feed-widget'
template_id Optional[str] None UUID of the base template (recommended - 99.9%% of widgets use templates)
widget_name Optional[str] None Override template name
title Optional[str] None Override display title
description Optional[str] None Widget description
widgetcat_id int 3 Category (3=generic, 1=walmart, 2=utility)
module_id Optional[int] None
url Optional[str] None Data URL or iframe URL
params Optional[Dict[str, Any]] None Widget behavior config. For api-echarts: {graph: {type, xkey, ykey}, query: {slug}}. For api-card: {card: {cols, type, cards: {metric: {icon, class, title, value, format}}}}. For api-pqtable: {pqgrid: {...}, toolbar_items: [...]}. For settings override: {settings: {toolbar: {...}, header: {...}}}
attributes Optional[Dict[str, Any]] None Visual config: icon, color, explorer ('v3'), fg_color
conditions Optional[Dict[str, Any]] None Filter config. Date tokens: CURRENT_DATE, FDOM, LDOM, FDOW, LDOW, FDOY. Structure: {lastdate, firstdate, where_cond, fields, grouping, ordering}
cond_definition Optional[Dict[str, Any]] None
where_definition Optional[Dict[str, Any]] None
embed Optional[str] None Stringified JSON or HTML for embed config
format_definition Optional[Dict[str, Any]] None Column formatting. For api-table: {fnFormatPercent: [col_indices]}. For api-pqtable: {col_name: {align, order, title, dataIndx, dataType, format}}. For wysiwyg: {html: ''}. For iframe: {url, type, height}
query_slug Optional[Dict[str, Any]] None Data source reference. Simple: {slug: 'query_name'}. With options: {slug: 'name', comparison: true}. V3: {v3: true, slug: 'name', conditional_filtering: {...}}. Dashboard ref: {dashboard: 'name'}
grid_position Optional[Dict[str, int]] None Position in dashboard grid: {h: height, w: width(max12), x: col, y: row}

Class WidgetUpdateInput

Input for updating an existing widget.

Fields:

Field Type Default Description
confirm_execution bool False CRITICAL GUARDRAIL: MUST always be False (or omitted) on your first attempt. Only set to True AFTER the user has seen and explicitly approved the generation Plan.
widget_id str UUID of the widget to update
widget_name Optional[str] None
title Optional[str] None
active Optional[bool] None
published Optional[bool] None
url Optional[str] None
params Optional[Dict[str, Any]] None
attributes Optional[Dict[str, Any]] None
conditions Optional[Dict[str, Any]] None
cond_definition Optional[Dict[str, Any]] None
where_definition Optional[Dict[str, Any]] None
embed Optional[str] None
format_definition Optional[Dict[str, Any]] None
query_slug Optional[Dict[str, Any]] None
grid_position Optional[Dict[str, int]] None

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