Expand description
A2UI component catalog and prompt generator for Everruns.
Produces system prompts that instruct LLMs to emit A2UI JSON component trees. The JSON is transported in ```a2ui fenced code blocks and rendered by the UI using native shadcn/ui primitives.
This crate is part of the Everruns ecosystem.
§Example
use everruns_a2ui::{PromptOptions, default_catalog, generate_prompt};
let prompt = generate_prompt(default_catalog(), &PromptOptions::default());
assert!(prompt.contains("```a2ui"));Ref: specs/a2ui.md Ref: https://github.com/google/a2ui
Structs§
- Catalog
- A catalog describes the components an agent may emit.
- Component
Category - One category of components in a catalog (e.g. “Layout”, “Forms”).
- Component
Def - One component available to the agent.
- Prompt
Options - Options for customizing the generated prompt.
- PropDef
- One prop of a component.
Functions§
- default_
catalog - The default A2UI catalog.
- default_
prompt - Generate the default A2UI system prompt with standard options.
- generate_
prompt - Build the full A2UI system prompt.