Problem Description
Right now Agno support instructions as only field that support function as input for dynamic prompting.
I'm using Langfuse for prompting, because I want to change my agents behavior without commits and system restart - but I'm unable to do so because of static prompt - I'm always need to restart my agents.
I also use dynamic prompting for all of agent's fields, for example:
faq_agent = Agent(
id="faq_agent",
# FIXME: caching and live-updating doen't work becuase of langfuse AND agno
name=langfuse.get_prompt("faq_agent/name", cache_ttl_seconds=30).compile(),
role=langfuse.get_prompt("faq_agent/role", cache_ttl_seconds=30).compile(),
description=langfuse.get_prompt("faq_agent/description", cache_ttl_seconds=30).compile(),
instructions=langfuse.get_prompt("faq_agent/instructions", cache_ttl_seconds=30).compile,
expected_output=langfuse.get_prompt("faq_agent/expected_output", cache_ttl_seconds=30).compile(),
...
notice that only instructions are .compile and every other field is .compile()
Proposed Solution
Please make all prompt-related fields dynamic, so I can change agent's (team and workflow as well) behavior, name, etc. at runtime using dynamic prompting
Alternatives Considered
No response
Additional Context
No response
Would you like to work on this?
Problem Description
Right now Agno support
instructionsas only field that support function as input for dynamic prompting.I'm using Langfuse for prompting, because I want to change my agents behavior without commits and system restart - but I'm unable to do so because of static prompt - I'm always need to restart my agents.
I also use dynamic prompting for all of agent's fields, for example:
notice that only instructions are
.compileand every other field is.compile()Proposed Solution
Please make all prompt-related fields dynamic, so I can change agent's (team and workflow as well) behavior, name, etc. at runtime using dynamic prompting
Alternatives Considered
No response
Additional Context
No response
Would you like to work on this?