Skip to main content

bamboo_agent/core/
model_mapping.rs

1use serde::{Deserialize, Serialize};
2use std::collections::HashMap;
3
4/// Anthropic model mapping configuration.
5///
6/// Used to map OpenAI-compatible model ids (e.g. "claude-3-opus") to the actual
7/// upstream Anthropic model id that should be used by the provider.
8#[derive(Debug, Clone, Serialize, Deserialize, Default)]
9pub struct AnthropicModelMapping {
10    #[serde(default)]
11    pub mappings: HashMap<String, String>,
12}
13
14/// Gemini model mapping configuration.
15///
16/// Used to map OpenAI-compatible model ids (e.g. "gemini-pro") to the actual
17/// upstream Gemini model id that should be used by the provider.
18#[derive(Debug, Clone, Serialize, Deserialize, Default)]
19pub struct GeminiModelMapping {
20    #[serde(default)]
21    pub mappings: HashMap<String, String>,
22}