Skip to content

API Reference parrot_tools.graphindex.flowtask

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

parrot_tools.graphindex.flowtask

View source

Flowtask component wrapper for the GraphIndex pipeline.

Bridges the Flowtask execution model to GraphIndexBuilder, allowing knowledge graph indexing to run as a Flowtask pipeline step.

Class GraphIndexComponent

Flowtask component wrapper for the GraphIndex pipeline.

Implements the async context manager protocol so it can be used with async with, consistent with the Flowtask component pattern.

Parameter Type Default Description
config dict[str, Any] Component configuration dict from the Flowtask pipeline definition. Recognised keys: - tenant_id (required): Tenant identifier. - code_paths (optional, list): Paths to Python source. - loader_sources (optional, list): Document URIs. - skill_paths (optional, list): Paths to SKILL.md files. - ignore_file (optional, str): Path to .graphindexignore. - output_dir (optional, str): Directory for report output. - model_name (optional, str): Embedding model name. - embedding_dimension (optional, int): Embedding vector dim.

Method GraphIndexComponent.run

Execute the GraphIndex build pipeline.

Delegates to GraphIndexBuilder.build() with the parsed SourceConfig and TenantContext from configuration.

run() -> dict[str, Any]

Returns: dict[str, Any] — Dict from BuildResult.model_dump() with keys: tenant_id, node_count, edge_count, inferred_edge_count, report_path, errors.

Raises:

  • RuntimeError — If called outside the async context manager.

Attribute logger

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