Replies: 1 comment 2 replies
-
I think the idea is that you don't provide Did I understand your question right? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm implementing an agent with
toolChoice: 'required'
andmaxSteps: 100
. It may decide, after some steps, that it needs to prompt the user for more information. Once user provides the input, it will be sent back to the agent to continue execution.From the docs, it seems like the suggested way to stop the agent loop is to have a tool e.g:
prompt_for_input
with no execute function.Is the idea that I need to manually check the lastStep/finishReason for this call, and then manually generate the toolResponse for this after prompting the user? Or is there a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions