Find answers from the community

Updated 4 months ago

Is there a way to change the system

At a glance

The community member is asking if there is a way to change the system prompt for the OpenAI agent without creating a new agent object. They tried editing the prefix_messages attribute, but it didn't seem to propagate the new system prompt. The community member thinks they need to use chat_agent.agent_worker.prefix_messages instead.

Another community member commented that creating the agent object is also essentially a no-op, but there is no explicitly marked answer to the original question.

Is there a way to change the system prompt for the OpenAI agent without creating a new OpenAI agent object? I tried editing the prefix_messages attribute but it doesn't seem to propagate the new system prompt
Edit: I think I need to use chat_agent.agent_worker.prefix_messages
L
1 comment
creating the agent object is also essentially a no-op
Add a reply
Sign up and join the conversation on Discord