mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-14 03:50:49 -07:00
feat(core): enable team-aware orchestration in top-level agent
- Update SystemPromptOptions to include activeTeam - Implement renderActiveTeam snippet for team instructions injection - Update PromptProvider to pass activeTeam from config to system prompt - Enhance SubagentTool to support description overrides - Update Config to prioritize and label team-based subagent tools - Ensure synchronized team reload in TeamRegistry and Config - Add unit tests for team-aware prompt generation
This commit is contained in:
@@ -33,6 +33,7 @@ export class SubagentTool extends BaseDeclarativeTool<AgentInputs, ToolResult> {
|
||||
private readonly definition: AgentDefinition,
|
||||
private readonly context: AgentLoopContext,
|
||||
messageBus: MessageBus,
|
||||
descriptionOverride?: string,
|
||||
) {
|
||||
const inputSchema = definition.inputConfig.inputSchema;
|
||||
|
||||
@@ -47,7 +48,7 @@ export class SubagentTool extends BaseDeclarativeTool<AgentInputs, ToolResult> {
|
||||
super(
|
||||
definition.name,
|
||||
definition.displayName ?? definition.name,
|
||||
definition.description,
|
||||
descriptionOverride ?? definition.description,
|
||||
Kind.Agent,
|
||||
inputSchema,
|
||||
messageBus,
|
||||
|
||||
Reference in New Issue
Block a user