Fixing up f strings for agent prompts

This commit is contained in:
Cole Medin
2025-04-02 18:52:05 -05:00
parent efa348ff3e
commit a16c09e4cf
6 changed files with 20 additions and 10 deletions

View File

@@ -47,9 +47,11 @@ advisor_agent = Agent(
@advisor_agent.system_prompt
def add_file_list(ctx: RunContext[str]) -> str:
return f"""
\nHere is the list of all the files that you can pull the contents of with the
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
agent the user is trying to build:
{"\n".join(ctx.deps.file_list)}
"""

View File

@@ -54,7 +54,8 @@ pydantic_ai_coder = Agent(
@pydantic_ai_coder.system_prompt
def add_reasoner_output(ctx: RunContext[str]) -> str:
return f"""
\n\nAdditional thoughts/instructions from the reasoner LLM.
Additional thoughts/instructions from the reasoner LLM.
This scope includes documentation pages for you to search as well:
{ctx.deps.reasoner_output}

View File

@@ -56,9 +56,11 @@ tools_refiner_agent = Agent(
@tools_refiner_agent.system_prompt
def add_file_list(ctx: RunContext[str]) -> str:
return f"""
\nHere is the list of all the files that you can pull the contents of with the
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
agent the user is trying to build:
{"\n".join(ctx.deps.file_list)}
"""

View File

@@ -47,9 +47,11 @@ advisor_agent = Agent(
@advisor_agent.system_prompt
def add_file_list(ctx: RunContext[str]) -> str:
return f"""
\nHere is the list of all the files that you can pull the contents of with the
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
agent the user is trying to build:
{"\n".join(ctx.deps.file_list)}
"""

View File

@@ -54,7 +54,8 @@ pydantic_ai_coder = Agent(
@pydantic_ai_coder.system_prompt
def add_reasoner_output(ctx: RunContext[str]) -> str:
return f"""
\n\nAdditional thoughts/instructions from the reasoner LLM.
Additional thoughts/instructions from the reasoner LLM.
This scope includes documentation pages for you to search as well:
{ctx.deps.reasoner_output}

View File

@@ -56,9 +56,11 @@ tools_refiner_agent = Agent(
@tools_refiner_agent.system_prompt
def add_file_list(ctx: RunContext[str]) -> str:
return f"""
\nHere is the list of all the files that you can pull the contents of with the
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
agent the user is trying to build:
{"\n".join(ctx.deps.file_list)}
"""