Skip to content
Merged

Dev #43

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/cowork-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ adk-rust = { workspace = true }
adk-core = { workspace = true }
adk-agent = { workspace = true }
adk-model = { workspace = true, features = ["openai"] }
adk-tool = { workspace = true }
adk-tool = { workspace = true, features = ["http-transport"] }
adk-skill = { workspace = true }

# Async runtime
Expand Down
10 changes: 7 additions & 3 deletions crates/cowork-core/src/agents/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ pub fn create_knowledge_generation_agent(
pub fn create_project_manager_agent(model: Arc<dyn Llm>, iteration_id: String) -> Result<Arc<dyn adk_core::Agent>> {
let instruction = PROJECT_MANAGER_AGENT_INSTRUCTION.replace("{ITERATION_ID}", &iteration_id);

let agent = LlmAgentBuilder::new("project_manager_agent")
let mut builder = LlmAgentBuilder::new("project_manager_agent")
.instruction(&instruction)
.model(model)
.tool(Arc::new(PMGotoStageTool::new(iteration_id.clone())))
Expand All @@ -558,8 +558,12 @@ pub fn create_project_manager_agent(model: Arc<dyn Llm>, iteration_id: String) -
.tool(Arc::new(QueryMemoryTool::new(iteration_id.clone())))
.tool(Arc::new(ListFilesTool)) // Allow PM to see project files
.tool(Arc::new(ReadFileTool)) // Allow PM to read files
.include_contents(IncludeContents::None)
.build()?;
.include_contents(IncludeContents::None);

// Add MCP toolsets if available
builder = crate::config_definition::agent_factory::add_mcp_toolsets_to_builder(builder);

let agent = builder.build()?;

Ok(Arc::new(agent))
}
Expand Down
Loading
Loading