Skip to main content

Crate everruns_a2ui

Crate everruns_a2ui 

Source
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.
ComponentCategory
One category of components in a catalog (e.g. “Layout”, “Forms”).
ComponentDef
One component available to the agent.
PromptOptions
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.