Skip to main content

cookie_agent_models/
lib.rs

1//! Current-only dynamic provider/model facade.
2
3pub struct ConstructedAdapter {
4    pub model: std::sync::Arc<dyn oven_sdk::LanguageModel>,
5    pub provider_options: oven_sdk::ProviderOptions,
6}
7
8mod model_types;
9
10pub mod adapters;
11pub mod authoring;
12#[path = "catalog/mod.rs"]
13pub mod catalog;
14pub mod compiler;
15#[path = "manager/mod.rs"]
16pub mod manager;
17pub mod manifests;
18pub mod provider_store;
19pub mod recipes;
20pub mod secure_store;
21
22#[cfg(any(test, feature = "test-support"))]
23mod test_support;
24
25pub use authoring::{
26    AdaptorOptions, AnthropicCacheConfig, AuthDefinition, AuthoredCapabilities, BedrockCacheConfig,
27    CacheTtl, HeaderName, ModelPricing, ModelsDevProvider, OpenAiCacheConfig, OpenAiCacheMode,
28    OpenAiCompatibleCacheConfig, OpenAiPromptCacheRetention, OpenAiPromptCacheTtl,
29    ProviderCacheConfig, ProviderDefinition, RequestEndpoint, RollingCacheTtl, SecretString,
30    VariantDefinition,
31};
32pub use authoring::{
33    AuthOverride, BoundedSetupString, ConfigSetupValue, CustomModelDefinition, CustomProvider,
34    EndpointUrl, ManagedModelOverride, ManagedModelShape, PartialRequestDefaults,
35    SafeAuthParameterValue, SafeSetupValue, SafeStaticHeaderValue, deserialize_headers,
36    validate_header_limits, validate_header_ownership,
37};
38pub use manager::{
39    CompiledModelRuntime, CompiledProviderState, CompiledRuntimeModel, EffectiveCredentialSource,
40    ModelManager, ModelManagerError, ModelMutationResult, ProviderConnectRequest,
41    ProviderDisconnectRequest, ProviderPresence, ResolvedExecutableModel, RuntimeProviderSource,
42    safe_definition_fingerprint,
43};
44pub use model_types::*;
45#[cfg(any(test, feature = "test-support"))]
46pub use test_support::{ScriptedModel, ScriptedStep};