GeminiToolCallBehavior.MaximumUseAttempts Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets how many requests are part of a single interaction should include this tool in the request.
public int MaximumUseAttempts { get; }
member this.MaximumUseAttempts : int
Public ReadOnly Property MaximumUseAttempts As Integer
Property Value
Remarks
This should be greater than or equal to MaximumAutoInvokeAttempts. It defaults to MaxValue. Once this limit is reached, the tools will no longer be included in subsequent retries as part of the operation, e.g. if this is 1, the first request will include the tools, but the subsequent response sending back the tool's result will not include the tools for further use.