pending tmo work

This commit is contained in:
Adil Hafeez 2025-09-07 23:26:00 -07:00
parent bb71d041a0
commit 22c84fb689
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
17 changed files with 1626 additions and 94 deletions

View file

@ -13,11 +13,42 @@ pub struct Routing {
pub model: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Tool {
pub name: String,
pub protocol: String,
pub endpoint: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Listener {
pub port: u16,
pub protocol: String,
pub path: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Agent {
pub name: String,
pub description: Option<String>,
pub instructions: Option<String>,
pub tools: Vec<Tool>,
pub listener: Listener,
pub model: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct LlmProviderV2 {
pub listener: Listener,
pub providers: Vec<LlmProvider>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Configuration {
pub version: String,
pub endpoints: Option<HashMap<String, Endpoint>>,
pub llm_providers: Vec<LlmProvider>,
pub llm_providers_v2: Option<HashMap<String, LlmProviderV2>>,
pub overrides: Option<Overrides>,
pub system_prompt: Option<String>,
pub prompt_guards: Option<PromptGuards>,
@ -27,6 +58,7 @@ pub struct Configuration {
pub tracing: Option<Tracing>,
pub mode: Option<GatewayMode>,
pub routing: Option<Routing>,
pub agents: Option<Agent>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]