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
David-Andrew Samson edited this page May 15, 2023
·
9 revisions
While interacting with the LLM react agent, it is possible to inject context messages into the chat history. Context messages are very flexible and can be used in a number of different ways:
providing the agent with information about the current state of a tool
(etc/todo)
Managing Context
Currently there are two methods for injecting context into the chat history for an agent:
id = agent.add_context("some context message")
id = agent.add_timed_context("some message that will be deleted after n steps", n)