swarmauri / swarmauri-playground

An LLM playground by Swarmauri
https://swarmauri.com
Apache License 2.0
3 stars 3 forks source link

enable the ability to swap the messages of the code preview #14

Open cobycloud opened 2 weeks ago

cobycloud commented 2 weeks ago

we want to use the conversation.add_messages() interface to add a list of Messages this list of messages must correspond to the conversation.history in the chat

cobycloud commented 1 week ago

we want to use the conversation.add_messages() interface to add a list of Messages to the Code preview. this list of messages must correspond to the conversation.history in the chat.

example:


user: "hi"
bot: "hello"

code preview:


messages = [HumanMessage(content="Hi"), AgentMessage(content="hello")]
conversation.add_messages(messages)