Skip to main content

orchestral_runtime/agent/
executor.rs

1use crate::planner::LlmClient;
2
3#[derive(Debug, Clone)]
4pub struct LlmAgentExecutorConfig {
5    pub model: String,
6    pub temperature: f32,
7}
8
9impl Default for LlmAgentExecutorConfig {
10    fn default() -> Self {
11        Self {
12            model: "anthropic/claude-sonnet-4.5".to_string(),
13            temperature: 0.2,
14        }
15    }
16}
17
18pub struct LlmAgentExecutor<C: LlmClient> {
19    pub(super) client: C,
20    pub(super) config: LlmAgentExecutorConfig,
21}
22
23impl<C: LlmClient> LlmAgentExecutor<C> {
24    pub fn new(client: C, config: LlmAgentExecutorConfig) -> Self {
25        Self { client, config }
26    }
27}