Skip to content

Can before_agent_invocation modify prompt #837

@femto

Description

@femto

Hello, I want some custom behavior
before run_async, say adding some messages
(say if 10 steps not using Todo, nudge the agent to use Todo),
so basically the before_agent_invocation needs to modify prompt
and return modifid_prompt(actually should be a list of messages
that can be passed into llm).
Can before_agent_invocation do this?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions