Closed
Description
Description
currently all our "run" and other variation calls require a user prompt, history and more.
Whats happening under the hood, we just append the user prompt to the history and send it to the llm.
But sometimes we just want to call the llm without passing an additional user prompt. I just want to have the history used. I noticed people are just passing an empty string, so I assume that works.
but would be nice to have an explicit method, or just having the user_prompt optional.
Example flow:
history = [...]
result = agent1.run(user_prompt, history)
history.add(result.new_message)
# assuming we have a bunch of tools calls and maybe agent1 response.
# now I want agent2 to give his take here, but I don't want another user_prompt
agent2.run("", history)
# would be nice just to have, agent2.run(history)
References
No response