You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there anyway to pass a list of prior messages like this when I create the agent? I want the agent to pick up where the user left from yesterday or something along the line.
I saw there is an option to write to memory from logs.
messages = [
{"role": "user", "content": "Hello, how are you?"},
{"role": "assistant", "content": "I'm doing great. How can I help you today?"},
{"role": "user", "content": "No need to help, take it easy."},
]
Something like this would do.
agent = CodeAgent(
tools=[sql_engine],
model=HfApiModel("meta-llama/Meta-Llama-3.1-8B-Instruct"),
memory_to_initialize=messages # does this exit now?
)
The text was updated successfully, but these errors were encountered:
Is there anyway to pass a list of prior messages like this when I create the agent? I want the agent to pick up where the user left from yesterday or something along the line.
I saw there is an option to write to memory from logs.
Something like this would do.
The text was updated successfully, but these errors were encountered: