Interface ChatBedrockConverseCallOptions

interface ChatBedrockConverseCallOptions {
    additionalModelRequestFields?: null | string | number | boolean | DocumentType[] | {
        [prop: string]: DocumentType;
    };
    stop?: string[];
    tool_choice?: string | AnyMember | AutoMember | ToolMember;
    tools?: any[];
}

Hierarchy (view full)

Properties

additionalModelRequestFields?: null | string | number | boolean | DocumentType[] | {
    [prop: string]: DocumentType;
}

Additional inference parameters that the model supports, beyond the base set of inference parameters that the Converse API supports in the inferenceConfig field. For more information, see the model parameters link below.

Type declaration

  • [prop: string]: DocumentType
stop?: string[]

A list of stop sequences. A stop sequence is a sequence of characters that causes the model to stop generating the response.

tool_choice?: string | AnyMember | AutoMember | ToolMember

Tool choice for the model. If passing a string, it must be "any", "auto" or the name of the tool to use. Or, pass a BedrockToolChoice object.

If "any" is passed, the model must request at least one tool. If "auto" is passed, the model automatically decides if a tool should be called or whether to generate text instead. If a tool name is passed, it will force the model to call that specific tool.

tools?: any[]

Generated using TypeDoc