Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tracked by #10
cobycloud opened this issue Sep 4, 2024 · 1 comment
Open
Tracked by #10

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

cobycloud opened this issue Sep 4, 2024 · 1 comment

Comments

@cobycloud
Copy link
Contributor

cobycloud commented Sep 4, 2024

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
Copy link
Contributor Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant