Expand description
§Converge Provider API
This crate defines the provider-facing capability contract for Converge. It is deliberately separate from pack authoring:
- chat traits and request/response types live here
BackendandBackendKinddescribe provider identityCapabilitydescribes what a provider can doBackendRequirementsandBackendSelectordrive routingBackendErroris the generic provider error surface
Suggestor and invariant authoring do not live here. Those contracts belong to
converge-pack.
Re-exports§
pub use backend::Backend;pub use backend::BackendKind;pub use capability::Capability;pub use chat::BoxFuture;pub use chat::ChatBackend;pub use chat::ChatMessage;pub use chat::ChatRequest;pub use chat::ChatResponse;pub use chat::ChatRole;pub use chat::DynChatBackend;pub use chat::FinishReason;pub use chat::LlmError;pub use chat::ResponseFormat;pub use chat::TokenUsage;pub use chat::ToolCall;pub use chat::ToolDefinition;pub use error::BackendError;pub use error::BackendErrorKind;pub use selection::AgentRequirements;pub use selection::BackendRequirements;pub use selection::BackendSelector;pub use selection::CapabilityAssignment;pub use selection::ComplianceLevel;pub use selection::CostClass;pub use selection::CostTier;pub use selection::DataSovereignty;pub use selection::Jurisdiction;pub use selection::LatencyClass;pub use selection::ModelSelectorTrait;pub use selection::ProviderAssignment;pub use selection::ProviderRequest;pub use selection::RequiredCapabilities;pub use selection::SelectionCriteria;pub use selection::TaskComplexity;
Modules§
- backend
- Backend identity and kind.
- capability
- Capability declarations for backends.
- chat
- Canonical chat capability contracts for provider consumers and adapters.
- error
- Generic backend error types.
- selection
- Canonical backend selection vocabulary for provider consumers and adapters.