Expand description
Shared AI vocabulary for rskit AI/ML crates.
This crate contains data shapes only: no I/O, providers, registries, or runtime logic.
Re-exports§
pub use budget::Budget;pub use budget::BudgetExceededReason;pub use content::ContentPart;pub use content::ToolResultBlock;pub use content::ToolUseBlock;pub use content::text_content;pub use content::text_of;pub use error::GenAiError;pub use model::Capabilities;pub use model::Model;pub use model::Provider;pub use prompt::Builder;pub use prompt::PromptError;pub use prompt::PromptIdentity;pub use prompt::PromptTemplate;pub use prompt::Registry;pub use prompt::RenderContext;pub use prompt::RenderToMessage;pub use prompt::Template;pub use prompt::ValidationFinding;pub use prompt::ValidationFindingKind;pub use prompt::VariableDecl;pub use prompt::VariableType;pub use prompt::render;pub use prompt::validate;pub use role::Role;pub use stream::ErrorEvent;pub use stream::FinishReason;pub use stream::MessageStart;pub use stream::MessageStop;pub use stream::ReasoningDelta;pub use stream::StreamEvent;pub use stream::StreamEventRef;pub use stream::TextDelta;pub use stream::ToolUseDelta;pub use stream::ToolUseStart;pub use stream::ToolUseStop;pub use stream::UsageDelta;pub use usage::Cost;pub use usage::Money;pub use usage::Usage;
Modules§
- budget
- Budget vocabulary shared by GenAI orchestration layers. Budget vocabulary shared by GenAI orchestration layers.
- chat
- Chat-completion-specific types. Chat-completion-specific AI types.
- content
- Multimodal content and tool block vocabulary. Multimodal content and tool block vocabulary.
- error
- Typed GenAI error sentinels. Typed GenAI error sentinels.
- model
- Provider and model identity vocabulary. Provider and model identity vocabulary.
- prompt
- Prompt templates, registries, and renderers. Prompt templates, registries, and render helpers.
- role
- Canonical AI message roles. Canonical AI message roles.
- semconv
- OpenTelemetry AI semantic convention keys. OpenTelemetry GenAI semantic convention attribute keys.
- stream
- Streaming response event vocabulary. Streaming response event vocabulary.
- usage
- Usage and cost vocabulary. Usage and cost vocabulary.
- vector
- Vector math helpers shared across AI crates. Vector math helpers shared across AI crates.