Learn how to ask the human for input in AgentReach
shouldRetry
is set to true
, it means you should retry this API. You do not need to wait before retrying since the API does some waiting itself. This is usually true
when we are waiting for the human to respond to your message. The session state can be “stuck” in this state for a long time depending on when the human responds, so you should keep retrying and not continue your agent workflow.shouldRetry
is set to false
, it means the message the human has responded with the message
available in the response body, and you can continue your agent workflow.400
status code if the session is in a different state (like if you had requested for a human input with a different prompt and are still waiting for that). Therefore, we recommend that you only continue your agent workflow once the API has returned a 200
status code.