diagram_create
Create a directed acyclic graph diagram from specified nodes and edges, defining reasoning structures with labeled connections for visual chain-of-thought workflows.
Instructions
Create a new diagram with specified nodes and edges.
A diagram is the primary unit of reasoning, representing a directed acyclic graph.
Args: nodes: List of node specifications. Each must have: - id: Unique identifier (string) - label: Human-readable label (string) - type: One of 'operation', 'terminal', 'control', 'composite' - metadata: Optional dict of additional properties - embedding: Optional list of floats for semantic search
edges: List of edge specifications. Each must have:
- source: Source node ID (string)
- target: Target node ID (string)
- label: Relationship label (string)
- weight: Optional numeric weight (default: 1.0)
- properties: Optional dict of additional propertiesReturns: dict with diagram_id, num_nodes, num_edges, validity
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | ||
| nodes | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||