mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-22 12:01:39 -07:00
feat(core): optimize sub-agents system prompt intro (#18608)
This commit is contained in:
@@ -531,11 +531,7 @@ exports[`Core System Prompt (prompts.ts) > should append userMemory with separat
|
||||
|
||||
# Available Sub-Agents
|
||||
|
||||
Sub-agents are specialized expert agents that you can use to assist you in the completion of all or part of a task.
|
||||
|
||||
Each sub-agent is available as a tool of the same name. You MUST always delegate tasks to the sub-agent with the relevant expertise, if one is available.
|
||||
|
||||
The following tools can be used to start sub-agents:
|
||||
Sub-agents are specialized expert agents. Each sub-agent is available as a tool of the same name. You MUST delegate tasks to the sub-agent with the most relevant expertise.
|
||||
|
||||
<available_subagents>
|
||||
<subagent>
|
||||
@@ -1312,11 +1308,7 @@ exports[`Core System Prompt (prompts.ts) > should include correct sandbox instru
|
||||
|
||||
# Available Sub-Agents
|
||||
|
||||
Sub-agents are specialized expert agents that you can use to assist you in the completion of all or part of a task.
|
||||
|
||||
Each sub-agent is available as a tool of the same name. You MUST always delegate tasks to the sub-agent with the relevant expertise, if one is available.
|
||||
|
||||
The following tools can be used to start sub-agents:
|
||||
Sub-agents are specialized expert agents. Each sub-agent is available as a tool of the same name. You MUST delegate tasks to the sub-agent with the most relevant expertise.
|
||||
|
||||
<available_subagents>
|
||||
<subagent>
|
||||
@@ -1429,11 +1421,7 @@ exports[`Core System Prompt (prompts.ts) > should include correct sandbox instru
|
||||
|
||||
# Available Sub-Agents
|
||||
|
||||
Sub-agents are specialized expert agents that you can use to assist you in the completion of all or part of a task.
|
||||
|
||||
Each sub-agent is available as a tool of the same name. You MUST always delegate tasks to the sub-agent with the relevant expertise, if one is available.
|
||||
|
||||
The following tools can be used to start sub-agents:
|
||||
Sub-agents are specialized expert agents. Each sub-agent is available as a tool of the same name. You MUST delegate tasks to the sub-agent with the most relevant expertise.
|
||||
|
||||
<available_subagents>
|
||||
<subagent>
|
||||
@@ -1546,11 +1534,7 @@ exports[`Core System Prompt (prompts.ts) > should include correct sandbox instru
|
||||
|
||||
# Available Sub-Agents
|
||||
|
||||
Sub-agents are specialized expert agents that you can use to assist you in the completion of all or part of a task.
|
||||
|
||||
Each sub-agent is available as a tool of the same name. You MUST always delegate tasks to the sub-agent with the relevant expertise, if one is available.
|
||||
|
||||
The following tools can be used to start sub-agents:
|
||||
Sub-agents are specialized expert agents. Each sub-agent is available as a tool of the same name. You MUST delegate tasks to the sub-agent with the most relevant expertise.
|
||||
|
||||
<available_subagents>
|
||||
<subagent>
|
||||
@@ -1771,15 +1755,11 @@ exports[`Core System Prompt (prompts.ts) > should include sub-agents in XML for
|
||||
|
||||
# Available Sub-Agents
|
||||
|
||||
Sub-agents are specialized expert agents that you can use to assist you in the completion of all or part of a task.
|
||||
|
||||
Each sub-agent is available as a tool of the same name. You MUST always delegate tasks to the sub-agent with the relevant expertise, if one is available.
|
||||
|
||||
The following tools can be used to start sub-agents:
|
||||
Sub-agents are specialized expert agents. Each sub-agent is available as a tool of the same name. You MUST delegate tasks to the sub-agent with the most relevant expertise.
|
||||
|
||||
<available_subagents>
|
||||
<subagent>
|
||||
<name>Test Agent</name>
|
||||
<name>test-agent</name>
|
||||
<description>A test agent description</description>
|
||||
</subagent>
|
||||
</available_subagents>
|
||||
@@ -2123,11 +2103,7 @@ exports[`Core System Prompt (prompts.ts) > should return the base prompt when us
|
||||
|
||||
# Available Sub-Agents
|
||||
|
||||
Sub-agents are specialized expert agents that you can use to assist you in the completion of all or part of a task.
|
||||
|
||||
Each sub-agent is available as a tool of the same name. You MUST always delegate tasks to the sub-agent with the relevant expertise, if one is available.
|
||||
|
||||
The following tools can be used to start sub-agents:
|
||||
Sub-agents are specialized expert agents. Each sub-agent is available as a tool of the same name. You MUST delegate tasks to the sub-agent with the most relevant expertise.
|
||||
|
||||
<available_subagents>
|
||||
<subagent>
|
||||
@@ -2236,11 +2212,7 @@ exports[`Core System Prompt (prompts.ts) > should return the base prompt when us
|
||||
|
||||
# Available Sub-Agents
|
||||
|
||||
Sub-agents are specialized expert agents that you can use to assist you in the completion of all or part of a task.
|
||||
|
||||
Each sub-agent is available as a tool of the same name. You MUST always delegate tasks to the sub-agent with the relevant expertise, if one is available.
|
||||
|
||||
The following tools can be used to start sub-agents:
|
||||
Sub-agents are specialized expert agents. Each sub-agent is available as a tool of the same name. You MUST delegate tasks to the sub-agent with the most relevant expertise.
|
||||
|
||||
<available_subagents>
|
||||
<subagent>
|
||||
@@ -2460,11 +2432,7 @@ exports[`Core System Prompt (prompts.ts) > should use chatty system prompt for p
|
||||
|
||||
# Available Sub-Agents
|
||||
|
||||
Sub-agents are specialized expert agents that you can use to assist you in the completion of all or part of a task.
|
||||
|
||||
Each sub-agent is available as a tool of the same name. You MUST always delegate tasks to the sub-agent with the relevant expertise, if one is available.
|
||||
|
||||
The following tools can be used to start sub-agents:
|
||||
Sub-agents are specialized expert agents. Each sub-agent is available as a tool of the same name. You MUST delegate tasks to the sub-agent with the most relevant expertise.
|
||||
|
||||
<available_subagents>
|
||||
<subagent>
|
||||
@@ -2573,11 +2541,7 @@ exports[`Core System Prompt (prompts.ts) > should use chatty system prompt for p
|
||||
|
||||
# Available Sub-Agents
|
||||
|
||||
Sub-agents are specialized expert agents that you can use to assist you in the completion of all or part of a task.
|
||||
|
||||
Each sub-agent is available as a tool of the same name. You MUST always delegate tasks to the sub-agent with the relevant expertise, if one is available.
|
||||
|
||||
The following tools can be used to start sub-agents:
|
||||
Sub-agents are specialized expert agents. Each sub-agent is available as a tool of the same name. You MUST delegate tasks to the sub-agent with the most relevant expertise.
|
||||
|
||||
<available_subagents>
|
||||
<subagent>
|
||||
|
||||
@@ -178,7 +178,7 @@ describe('Core System Prompt (prompts.ts)', () => {
|
||||
expect(prompt).toContain('# Available Sub-Agents');
|
||||
expect(prompt).toContain('<available_subagents>');
|
||||
expect(prompt).toContain('<subagent>');
|
||||
expect(prompt).toContain('<name>Test Agent</name>');
|
||||
expect(prompt).toContain('<name>test-agent</name>');
|
||||
expect(prompt).toContain(
|
||||
'<description>A test agent description</description>',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user