Expand description
§Converge Provider
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 registry::ChatBackendCapabilities;pub use registry::ChatBackendDescriptor;pub use registry::ChatBackendRegistry;pub use registry::ContextWindowTokens;pub use registry::LatencyMillis;pub use registry::ModelName;pub use registry::ProviderName;pub use registry::QualityScore;pub use registry::RegisteredChatBackend;pub use registry::RegistryValueError;pub use registry::ResolvedChatBackend;pub use selection::AgentRequirements;pub use selection::BackendRequirements;pub use selection::BackendSelector;pub use selection::CapabilityAssignment;pub use selection::ChatBackendSelectionConfig;pub use selection::ChatBackendSelectionConfigError;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.
- registry
- Host-supplied capability registries.
- selection
- Canonical backend selection vocabulary for provider consumers and adapters.