Skip to content

Commit 13e1fc6

Browse files
committed
Another quick f string update for the agent prompts
1 parent a16c09e commit 13e1fc6

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

archon/advisor_agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@ class AdvisorDeps:
4646

4747
@advisor_agent.system_prompt
4848
def add_file_list(ctx: RunContext[str]) -> str:
49+
joined_files = "\n".join(ctx.deps.file_list)
4950
return f"""
5051
5152
Here is the list of all the files that you can pull the contents of with the
5253
'get_file_content' tool if the example/tool/MCP server is relevant to the
5354
agent the user is trying to build:
54-
55-
{"\n".join(ctx.deps.file_list)}
55+
56+
{joined_files}
5657
"""
5758

5859
@advisor_agent.tool_plain

archon/refiner_agents/tools_refiner_agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,14 @@ class ToolsRefinerDeps:
5555

5656
@tools_refiner_agent.system_prompt
5757
def add_file_list(ctx: RunContext[str]) -> str:
58+
joined_files = "\n".join(ctx.deps.file_list)
5859
return f"""
5960
6061
Here is the list of all the files that you can pull the contents of with the
6162
'get_file_content' tool if the example/tool/MCP server is relevant to the
6263
agent the user is trying to build:
63-
64-
{"\n".join(ctx.deps.file_list)}
64+
65+
{joined_files}
6566
"""
6667

6768
@tools_refiner_agent.tool

iterations/v6-tool-library-integration/archon/advisor_agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@ class AdvisorDeps:
4646

4747
@advisor_agent.system_prompt
4848
def add_file_list(ctx: RunContext[str]) -> str:
49+
joined_files = "\n".join(ctx.deps.file_list)
4950
return f"""
5051
5152
Here is the list of all the files that you can pull the contents of with the
5253
'get_file_content' tool if the example/tool/MCP server is relevant to the
5354
agent the user is trying to build:
54-
55-
{"\n".join(ctx.deps.file_list)}
55+
56+
{joined_files}
5657
"""
5758

5859
@advisor_agent.tool_plain

iterations/v6-tool-library-integration/archon/refiner_agents/tools_refiner_agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,14 @@ class ToolsRefinerDeps:
5555

5656
@tools_refiner_agent.system_prompt
5757
def add_file_list(ctx: RunContext[str]) -> str:
58+
joined_files = "\n".join(ctx.deps.file_list)
5859
return f"""
5960
6061
Here is the list of all the files that you can pull the contents of with the
6162
'get_file_content' tool if the example/tool/MCP server is relevant to the
6263
agent the user is trying to build:
63-
64-
{"\n".join(ctx.deps.file_list)}
64+
65+
{joined_files}
6566
"""
6667

6768
@tools_refiner_agent.tool

0 commit comments

Comments
 (0)