

# StreamRetrievalConfiguration

Settings for how the answer is retrieved.

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

 ** maxIterations **   <a name="context-Type-StreamRetrievalConfiguration-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_StreamRetrievalConfiguration_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/StreamRetrievalConfiguration) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/StreamRetrievalConfiguration) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/StreamRetrievalConfiguration) 