Another quick f string update for the agent prompts

This commit is contained in:
Cole Medin
2025-04-02 19:03:50 -05:00
parent a16c09e4cf
commit 13e1fc6a0e
4 changed files with 12 additions and 8 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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