Expand description
adaptive-card-core — pure Rust library for Adaptive Cards v1.6.
Re-exports§
pub use analyze::accessibility::check_accessibility;pub use analyze::analyze_card;pub use analyze::count_elements;pub use analyze::find_duplicate_ids;pub use data_to_card::data_to_card;pub use error::Error;pub use error::Result;pub use host::adapt::adapt_for_host;pub use host::check_compatibility;pub use knowledge::KnowledgeBase;pub use knowledge::KnowledgeEntry;pub use optimize::optimize_card;pub use prompt::PromptOpts;pub use prompt::build_example_showcase;pub use prompt::build_system_prompt;pub use template::template_card;pub use transform::transform_card;pub use types::A11yIssue;pub use types::A11ySeverity;pub use types::AccessibilityReport;pub use types::CardAnalysis;pub use types::CardVersion;pub use types::DataToCardOpts;pub use types::Host;pub use types::HostCompatReport;pub use types::OptimizeOpts;pub use types::Presentation;pub use types::SchemaError;pub use types::TemplateResult;pub use types::TransformReport;pub use types::TransformTarget;pub use types::ValidationReport;
Modules§
- analyze
- Structural analysis of Adaptive Cards: counting, nesting depth, duplicate IDs, and other metrics derived without any host or schema context.
- data_
to_ card - Generate a minimal Adaptive Card from arbitrary data.
- error
- Error type for the core library.
- host
- Host compatibility checking and adaptation.
- knowledge
- Knowledge base — curated sample library for LLM inspiration.
- optimize
- Card optimizations: accessibility, performance, and modernization.
- prompt
- Build LLM system prompts for Adaptive Card generation.
- schema
- Adaptive Cards v1.6 JSON Schema loading and validation.
- template
- Convert a static Adaptive Card into a template with
${expression}bindings and extract the literal data into a separate sample payload. - transform
- Card transformation — version downgrades and host adaptation.
- types
- Shared types used across the core library.
Functions§
- validate_
card - Validate an Adaptive Card against schema v1.6, accessibility rules, and (optionally) host compatibility.