Data transformation, charting, rendering, export, and type bridging.
Summary
Functions
AI-driven charting (data-grout/prism.chart).
Convert content to another format without LLM (data-grout/prism.export).
Semantic type transformation (data-grout/prism.focus).
AI-driven data transformation (data-grout/prism.refract).
Generate a document toward a natural-language goal (data-grout/prism.render).
Functions
@spec chart(GenServer.server(), map()) :: {:ok, map()} | {:error, term()}
AI-driven charting (data-grout/prism.chart).
Params
"goal"- Chart description (required)"payload"- Data to chart (required)"format"- Output format"chart_type"- Chart type (bar, line, pie, etc.)"title","x_label","y_label","width","height"
@spec export(GenServer.server(), map()) :: {:ok, map()} | {:error, term()}
Convert content to another format without LLM (data-grout/prism.export).
Params
"content"- Data or string to export (required)"format"- Target format (required)"style"- Optional styling options"metadata"- Optional document metadata
@spec focus(GenServer.server(), map()) :: {:ok, map()} | {:error, term()}
Semantic type transformation (data-grout/prism.focus).
Params
"data"- Data to transform (required)"source_type"- Source type annotation (required)"target_type"- Target type annotation (required)"source_annotations"- Optional source schema hints"target_annotations"- Optional target schema hints"context"- Optional context string
@spec refract(GenServer.server(), map()) :: {:ok, map()} | {:error, term()}
AI-driven data transformation (data-grout/prism.refract).
Params
"goal"- Natural language transformation goal (required)"payload"- Data to transform (required)"verbose"- Include detailed trace"chart"- Include a chart in output
@spec render(GenServer.server(), map()) :: {:ok, map()} | {:error, term()}
Generate a document toward a natural-language goal (data-grout/prism.render).
Params
"goal"- Natural language content description (required)"payload"- Input data (optional)"format"- Output format: markdown, html, pdf, json (default: markdown)"sections"- Optional list of section specs