Interface RetrievalConfiguration.Builder

  • Method Details

    • maxIterations

      RetrievalConfiguration.Builder maxIterations(Integer maxIterations)

      The maximum number of agent turns, from 2 to 50. One turn is roughly one round of tool calls and their results. If you omit it, AWS Context uses 30. The minimum is 2, because the agent needs at least one planning turn and one acting turn.

      Parameters:
      maxIterations - The maximum number of agent turns, from 2 to 50. One turn is roughly one round of tool calls and their results. If you omit it, AWS Context uses 30. The minimum is 2, because the agent needs at least one planning turn and one acting turn.
      Returns:
      Returns a reference to this object so that method calls can be chained together.