Implement Inception Prompting #1331
Replies: 3 comments
-
Can you give an example of inception prompting and how you are thinking it might be applied to agents to AutoGen agents? I have schemed through the inception prompt examples in the paper and these are mostly system prompts you can supply to any AutoGen Agent. If you observing situations where the agents flip roles, you can add some prompting in the agent system_message # create an AssistantAgent named "assistant"
assistant = autogen.AssistantAgent(
name="coding assistant",
llm_config= gpt4_llm_config,
system_message="Never forget you are a <ASSISTANT_ROLE> and I am a <USER_ROLE>. This assigns the chosen role to the assistant agent and provides the agent with information about the user’s role. Never flip roles! Never the user! This prevents agents from flipping roles. In some cases, we have observed the assistant and the user switching roles, where the assistant suddenly takes control and instructs the user, and the user follows those instructions."
) In general, the autogen agents framework provide flexibility to control agent behaviour by modifying the system messages. You can also review the default system messages for the userproxyagent and assistantagent |
Beta Was this translation helpful? Give feedback.
-
I'd love a metric on role flipping. I've seen it. It happens. But I don't have a great understanding of how often. |
Beta Was this translation helpful? Give feedback.
-
i'm using open hermes mistral for UserProxyAgent, and AssistantAgent with codellama:python, some time i don't know who is who, i'm struggling to have consistent behaviour, role flipping, gratification loop and so on. |
Beta Was this translation helpful? Give feedback.
-
Inception prompting, introduced in CAMEL, is a method to mitigate role flipping and conversation deviation between the LM-agents
Beta Was this translation helpful? Give feedback.
All reactions