File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed
iterations/v6-tool-library-integration/archon Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,14 @@ class AdvisorDeps:
4646
4747@advisor_agent .system_prompt
4848def 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
Original file line number Diff line number Diff line change @@ -55,13 +55,14 @@ class ToolsRefinerDeps:
5555
5656@tools_refiner_agent .system_prompt
5757def 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
Original file line number Diff line number Diff line change @@ -46,13 +46,14 @@ class AdvisorDeps:
4646
4747@advisor_agent .system_prompt
4848def 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
Original file line number Diff line number Diff line change @@ -55,13 +55,14 @@ class ToolsRefinerDeps:
5555
5656@tools_refiner_agent .system_prompt
5757def 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
You can’t perform that action at this time.
0 commit comments