Dave Aitel
10/03/2024, 10:04 PMJeremiah
interactive=True
to any task and the agent will be given a tool for interacting with a user on the command line in order to achieve the task's objective. Another approach is to collect user input however you prefer and provide it as context to the task (e.g. response = cf.run("respond to the user", context=dict(message=user_message))
. We're looking at other idioms for collecting input directly to the thread as wellDave Aitel
10/03/2024, 10:09 PMJeremiah
interactive=True
). If the need is broader or more flexible, then use a loop to collect input and create tasks that are specifically for the agent to produce a response or act on it.Jeremiah
Dave Aitel
10/03/2024, 10:17 PMJeremiah
cf.run("respond to the user")
is essentially a chatbot 🙂 Probably slightly larger system message than you'd need for just that use case but not by much