Skip to content

[Feature Request] Dynamic prompting for all fields #7052

@ormeilu

Description

@ormeilu

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?

  • Yes, I’d love to work on it!
  • I’m open to collaborating but need guidance.
  • No, I’m just sharing the idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions