Skip to content
Merged
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
56 changes: 10 additions & 46 deletions packages/core/src/core/__snapshots__/prompts.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -532,11 +532,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>
Expand Down Expand Up @@ -1331,11 +1327,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>
Expand Down Expand Up @@ -1454,11 +1446,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>
Expand Down Expand Up @@ -1577,11 +1565,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>
Expand Down Expand Up @@ -1808,15 +1792,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>
Expand Down Expand Up @@ -2039,11 +2019,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>
Expand Down Expand Up @@ -2158,11 +2134,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>
Expand Down Expand Up @@ -2388,11 +2360,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>
Expand Down Expand Up @@ -2507,11 +2475,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>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/core/prompts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>',
);
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/prompts/promptProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class PromptProvider {
.getAgentRegistry()
.getAllDefinitions()
.map((d) => ({
name: d.displayName || d.name,
name: d.name,
description: d.description,
})),
),
Expand Down
6 changes: 1 addition & 5 deletions packages/core/src/prompts/snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,7 @@ export function renderSubAgents(subAgents?: SubAgentOptions[]): string {
return `
# 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>
${subAgentsXml}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/prompts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function applySubstitutions(
.getAgentRegistry()
.getAllDefinitions()
.map((d) => ({
name: d.displayName || d.name,
name: d.name,
description: d.description,
})),
);
Expand Down
Loading