Usage guide
Setup, environment variables, and Python/JavaScript/Go usage examples.
AWSBedrockLLM
Language model access through Amazon Bedrock, using your own AWS credentials. Choose it to run Amazon Nova, Anthropic Claude, Llama and other Bedrock models inside your AWS account. Authenticates with AWS_ACCESS_KEY_ID from your environment, or an explicitapi_key.
Fields
Bedrock model ID or inference profile ARN, e.g. “amazon.nova-lite-v1:0”. Defaults to ‘amazon.nova-lite-v1:0’.
AWS region to call Bedrock in, e.g. “us-east-1”. The model must be enabled in that region. Defaults to ‘us-east-1’.
Sampling randomness, typically 0 to 1. Lower is more focused and predictable, higher is more varied. Defaults to 0.7.
Whether the model may call tools: “auto” lets it decide, “required” forces a tool call, “none” disables tools. Defaults to ‘auto’.
Nucleus sampling, 0 to 1: only tokens within this cumulative probability are considered. Defaults to None (not set).
Limits sampling to the K most likely tokens. Not every model supports it. Defaults to None (not set).
Strings that end the response as soon as the model produces one. Defaults to None (not set).
Extra model-specific request parameters as a dict, passed as Bedrock additionalModelRequestFields. Defaults to None (not set).
Cache the system prompt between turns to cut input token cost and latency, on models that support prompt caching. Defaults to False.
Cache the tool definitions between turns to cut input token cost and latency, on models that support prompt caching. Defaults to False.
Remove <thinking>…</thinking> reasoning from responses so it is not spoken aloud. Amazon Nova models emit these tags. Defaults to True.