Sycophant.WireProtocol.BedrockConverse (sycophant v0.4.2)

Copy Markdown

Wire protocol adapter for the AWS Bedrock Converse API format.

Encodes Sycophant Request structs into the Bedrock Converse JSON format. The model is specified in the URL path, not the request body.

Summary

Types

t()

@type t() :: %{
  optional(:stop) => [binary()],
  optional(:max_tokens) => integer(),
  optional(:temperature) => float(),
  optional(:top_p) => float(),
  optional(:reasoning_effort) =>
    :none | :minimal | :low | :medium | :high | :xhigh,
  optional(:tool_choice) => any(),
  optional(:parallel_tool_calls) => boolean()
}

Functions

param_schema()

Options:

  • :stop (list of String.t/0) - Stop sequences

  • :max_tokens (integer/0) - Maximum number of tokens to generate

  • :temperature (float/0) - Sampling temperature

  • :top_p (float/0) - Nucleus sampling threshold

  • :reasoning_effort (:none | :minimal | :low | :medium | :high | :xhigh) - Extended thinking effort level

  • :tool_choice (term/0) - Tool selection strategy

  • :parallel_tool_calls (boolean/0) - Allow parallel tool calls