Nodes/ComfyUI Griptape Nodes/Griptape Agent Config: Amazon Bedrock [DEPRECATED]
ComfyUI Node

Griptape Agent Config: Amazon Bedrock [DEPRECATED]

The old Bedrock config node — still works, but superseded

By griptape-ai·Created 2 years ago·Updated about a year ago· 238
Griptape Agent Config: Amazon Bedrock [DEPRECATED]
  • env
  • CONFIG
prompt_modelanthropic.claude-3-5-sonnet-20240620-v1:0
temperature0.10
seed10342349342
max_attempts_on_fail2
use_native_toolstrue
max_tokens-1
aws_access_key_id_env_varAWS_ACCESS_KEY_ID
aws_secret_access_key_env_varAWS_SECRET_ACCESS_KEY
aws_default_region_env_varAWS_DEFAULT_REGION

This is the deprecated, pre-driver Amazon Bedrock config from the Griptape pack. It's the older pattern for building a Bedrock-backed agent config: one required prompt_model dropdown (Claude and Titan text models served through Bedrock), a handful of sampling settings, AWS credential variables, and a single CONFIG out. If a workflow from 2024 loads this node, this is what you're looking at.

The advice is the same as for the rest of the [DEPRECATED] family: don't build new stuff on it. The pack keeps it around so old graphs still load, but the current replacement is Griptape Agent Config: Amazon Bedrock Drivers, which adds the embedding and image-generation drivers, proper min_p/top_k knobs, and a safer default max_tokens (Bedrock notably fails on requests without a max-tokens value - the old node doesn't set one by default, the new one does). Migrating means swapping the node and re-picking a model; the AWS setup carries over.

How it works

The node builds an AmazonBedrockPromptDriver from your chosen model and settings, wraps it in an AmazonBedrockDriversConfig, and hands you the CONFIG. The prompt_model dropdown offers the classic Bedrock catalog: anthropic.claude-3-5-sonnet-20240620-v1:0 (default), the claude-3-opus/sonnet/haiku IDs, and the amazon.titan-text-* family. AWS credentials are read from the env var names you provide - AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION by default - and you still need a region that actually hosts Bedrock models, or the driver fails on connect.

Inputs and outputs

  • prompt_model - required dropdown, Claude/Titan model IDs as above.
  • temperature, seed, max_attempts_on_fail, env, use_native_tools, max_tokens - standard settings; max_tokens defaults to -1.
  • aws_access_key_id_env_var, aws_secret_access_key_env_var, aws_default_region_env_var - env var names for your AWS credentials.
  • CONFIG - the output for agent creation.

Install and credentials

Same pack - ComfyUI Manager (search "Griptape") or:

cd ComfyUI/custom_nodes
git clone https://github.com/griptape-ai/ComfyUI-Griptape

AWS access keys come from the AWS console (the README walks through IAM user security credentials). Set AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_DEFAULT_REGION in Settings → Griptape or your environment. Standard pack caveats apply - griptape[all] installs torch, and on Nvidia you may need the cu121 reinstall from the README.

Common gotchas

Bedrock is a corporate cloud service and it has opinions: it wants credentials from the right region, the right IAM role with Bedrock access, and - the classic gotcha - a max_tokens value on the request. The old node leaves it at -1, and Bedrock's API tends to reject calls that omit max tokens, which surfaces as the agent failing on its first turn with a confusing API error. That single issue is the strongest argument for the Drivers replacement, which ships max_tokens defaulted to 100 with a tooltip that literally warns about it. If you're stuck on this node and getting silent failures, set max_tokens explicitly and double-check the region.

CategoryGriptape/Agent Configs [DEPRECATED]

Inputs (10)

NameTypeDefaultDescription
prompt_modelCOMBOanthropic.claude-3-5-sonnet-20240620-v1:07 options: anthropic.claude-3-5-sonnet-20240620-v1:0, anthropic.claude-3-opus-20240229-v1:0, anthropic.claude-3-sonnet-20240229-v1:0, anthropic.claude-3-haiku-20240307-v1:0, amazon.titan-text-premier-v1:0, amazon.titan-text-express-v1, +1
temperatureoptFLOAT0.100–1
seedoptINT10342349342
max_attempts_on_failoptINT21–100
envoptENV
use_native_toolsoptBOOLEANtrue
max_tokensoptINT-1Maximum tokens to generate. If <=0, it will use the default based on the tokenizer.
aws_access_key_id_env_varoptSTRINGAWS_ACCESS_KEY_ID
aws_secret_access_key_env_varoptSTRINGAWS_SECRET_ACCESS_KEY
aws_default_region_env_varoptSTRINGAWS_DEFAULT_REGION

Outputs (1)

NameTypeDescription
CONFIGCONFIG