

# RetrievalConfiguration

Bounds and configures the agent loop. The loop stops once maxIterations is reached (or the service's wall-clock ceiling elapses), or earlier once the agent judges the answer complete.

## Contents
<a name="API_RetrievalConfiguration_Contents"></a>

 ** maxIterations **   <a name="context-Type-RetrievalConfiguration-maxIterations"></a>
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.  
Type: Integer  
Valid Range: Minimum value of 2. Maximum value of 50.  
Required: No

## See Also
<a name="API_RetrievalConfiguration_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/context-2022-07-26/RetrievalConfiguration) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/RetrievalConfiguration) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/RetrievalConfiguration) 