diff --git a/archon/advisor_agent.py b/archon/advisor_agent.py index 850bcbeb..cd62bbf5 100644 --- a/archon/advisor_agent.py +++ b/archon/advisor_agent.py @@ -46,13 +46,14 @@ advisor_agent = Agent( @advisor_agent.system_prompt def add_file_list(ctx: RunContext[str]) -> str: + joined_files = "\n".join(ctx.deps.file_list) return f""" Here is the list of all the files that you can pull the contents of with the 'get_file_content' tool if the example/tool/MCP server is relevant to the agent the user is trying to build: - - {"\n".join(ctx.deps.file_list)} + + {joined_files} """ @advisor_agent.tool_plain diff --git a/archon/refiner_agents/tools_refiner_agent.py b/archon/refiner_agents/tools_refiner_agent.py index 14a76b07..82e18e36 100644 --- a/archon/refiner_agents/tools_refiner_agent.py +++ b/archon/refiner_agents/tools_refiner_agent.py @@ -55,13 +55,14 @@ tools_refiner_agent = Agent( @tools_refiner_agent.system_prompt def add_file_list(ctx: RunContext[str]) -> str: + joined_files = "\n".join(ctx.deps.file_list) return f""" Here is the list of all the files that you can pull the contents of with the 'get_file_content' tool if the example/tool/MCP server is relevant to the agent the user is trying to build: - - {"\n".join(ctx.deps.file_list)} + + {joined_files} """ @tools_refiner_agent.tool diff --git a/iterations/v6-tool-library-integration/archon/advisor_agent.py b/iterations/v6-tool-library-integration/archon/advisor_agent.py index 850bcbeb..cd62bbf5 100644 --- a/iterations/v6-tool-library-integration/archon/advisor_agent.py +++ b/iterations/v6-tool-library-integration/archon/advisor_agent.py @@ -46,13 +46,14 @@ advisor_agent = Agent( @advisor_agent.system_prompt def add_file_list(ctx: RunContext[str]) -> str: + joined_files = "\n".join(ctx.deps.file_list) return f""" Here is the list of all the files that you can pull the contents of with the 'get_file_content' tool if the example/tool/MCP server is relevant to the agent the user is trying to build: - - {"\n".join(ctx.deps.file_list)} + + {joined_files} """ @advisor_agent.tool_plain diff --git a/iterations/v6-tool-library-integration/archon/refiner_agents/tools_refiner_agent.py b/iterations/v6-tool-library-integration/archon/refiner_agents/tools_refiner_agent.py index 14a76b07..82e18e36 100644 --- a/iterations/v6-tool-library-integration/archon/refiner_agents/tools_refiner_agent.py +++ b/iterations/v6-tool-library-integration/archon/refiner_agents/tools_refiner_agent.py @@ -55,13 +55,14 @@ tools_refiner_agent = Agent( @tools_refiner_agent.system_prompt def add_file_list(ctx: RunContext[str]) -> str: + joined_files = "\n".join(ctx.deps.file_list) return f""" Here is the list of all the files that you can pull the contents of with the 'get_file_content' tool if the example/tool/MCP server is relevant to the agent the user is trying to build: - - {"\n".join(ctx.deps.file_list)} + + {joined_files} """ @tools_refiner_agent.tool