Search Results for

    Show / Hide Table of Contents

    Class BedrockToolChoice

    Specifies which tool the model should choose (if multiple available).

    Inheritance
    object
    BedrockToolChoice
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.AmazonAws
    Assembly: Glitch9.AIDevKit.Provider.AmazonAws.dll
    Syntax
    public class BedrockToolChoice
    Remarks

    This data type is a UNION, so only one of the following members can be specified when used or returned.

    Properties

    | Edit this page View Source

    Any

    Optional. The model must request at least one tool (no text is generated).

    Declaration
    [JsonProperty("any")]
    public EmptyEnvelope Any { get; set; }
    Property Value
    Type Description
    EmptyEnvelope
    | Edit this page View Source

    Auto

    Optional. The model automatically decides if a tool should be called or whether to generate text instead.

    Declaration
    [JsonProperty("auto")]
    public EmptyEnvelope Auto { get; set; }
    Property Value
    Type Description
    EmptyEnvelope
    | Edit this page View Source

    Tool

    Optional. The model must request the specified tool. Only supported by Anthropic Claude 3 and Amazon Nova models.

    Declaration
    [JsonProperty("tool")]
    public NameEnvelope Tool { get; set; }
    Property Value
    Type Description
    NameEnvelope

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation