Fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use std::sync::Arc;
|
||||
use nazarick_core::agent::base::BaseAgent;
|
||||
use nazarick_core::agent::base::{AgentConfig, BaseAgent};
|
||||
use nazarick_core::agent::skill_registry::SkillRegistry;
|
||||
use nazarick_core::memory::Memory;
|
||||
use nazarick_core::summarizer::Summarizer;
|
||||
@@ -13,34 +13,14 @@ pub struct Sebas {
|
||||
|
||||
impl Sebas {
|
||||
pub fn new(
|
||||
agent_id: impl Into<String>,
|
||||
shared_core_path: impl Into<String>,
|
||||
soul_core_path: impl Into<String>,
|
||||
config: AgentConfig,
|
||||
llm: Box<dyn LlmProvider>,
|
||||
registry: Arc<SkillRegistry>,
|
||||
memory: Arc<dyn Memory>,
|
||||
summarizer: Arc<dyn Summarizer>,
|
||||
max_tokens: u32,
|
||||
max_loops: u32,
|
||||
history_window: usize,
|
||||
summary_every: usize,
|
||||
conversation_timeout_mins: u64,
|
||||
) -> Self {
|
||||
Self {
|
||||
base: BaseAgent::new(
|
||||
agent_id,
|
||||
shared_core_path,
|
||||
soul_core_path,
|
||||
llm,
|
||||
registry,
|
||||
memory,
|
||||
summarizer,
|
||||
max_tokens,
|
||||
max_loops,
|
||||
history_window,
|
||||
summary_every,
|
||||
conversation_timeout_mins,
|
||||
),
|
||||
base: BaseAgent::new(config, llm, registry, memory, summarizer),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user