Nodes/ComfyUI Griptape Nodes/Griptape Agent Config: Anthropic [DEPRECATED]
ComfyUI Node

Griptape Agent Config: Anthropic [DEPRECATED]

The old Anthropic config — you should be using the Drivers version

By griptape-ai·Created 2 years ago·Updated about a year ago· 238
Griptape Agent Config: Anthropic [DEPRECATED]
  • env
  • CONFIG
prompt_modelclaude-3-5-sonnet-20240620
temperature0.10
seed10342349342
max_attempts_on_fail2
use_native_toolstrue
max_tokens-1
api_key_env_varANTHROPIC_API_KEY

This is the older, pre-driver Anthropic config node from the Griptape pack - the one they've since replaced and marked [DEPRECATED]. It does what the current Anthropic Drivers config does (build an agent config whose prompt driver is a Claude model) but through the old "structure config" pattern: a required prompt_model dropdown plus sampling settings, all producing a single CONFIG. If you're opening a workflow from 2024 or early 2025, this is probably what's in it.

Short version of the advice: use the new one. The [DEPRECATED] in the name is doing real work. The pack still ships these old nodes so existing workflows keep loading, but they're frozen - the model lists are stale (the dropdown tops out at claude-3-5-sonnet-20240620), and they don't get the newer sampling knobs or the flexibility of the driver-based approach. If you're building anything new, drop the Anthropic Drivers config instead. If you're migrating an old workflow, swap this node for its successor and re-set the model.

How it works

Mechanically it's simple: the node reads prompt_model from a small hardcoded list of Claude 3 models, grabs temperature, seed, max_attempts_on_fail, and use_native_tools, reads your ANTHROPIC_API_KEY from the env var you name, and constructs an AnthropicPromptDriver wrapped in an AnthropicDriversConfig. Output is the CONFIG you feed to agent creation. It does the job, but it's a narrower version of the same thing - one model per config, no top_p/top_k, no fine-grained token control beyond max_tokens.

Inputs and outputs

  • prompt_model - required dropdown: claude-3-5-sonnet-20240620 (default), claude-3-opus-20240229, claude-3-sonnet-20240229, claude-3-haiku-20240307.
  • temperature, seed, max_attempts_on_fail, env, use_native_tools, max_tokens - the standard sampling/retry settings.
  • api_key_env_var - env var name for your key, default ANTHROPIC_API_KEY.
  • CONFIG - the output.

Nothing else. If you're only here because a downloaded workflow loaded this node, it still runs fine - the key is in your environment, the model is whatever the dropdown says, and you can keep working.

Install

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

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

griptape[all] and python-dotenv install with it; the README's torch caveat applies on Nvidia.

Common gotchas

Two things. The model dropdown is frozen in time - claude-3-5-sonnet-20240620 was the state of the art when this shipped, but Anthropic has moved on, and this node won't ever learn the new names. If the agent feels dumb compared to what Claude does now, that's why. Second, mixing old and new config nodes in one graph can get confusing: both emit CONFIG, so a workflow can silently have an old Anthropic config overriding a newer one depending on execution order. When you modernize, remove the old node entirely rather than leaving it orphaned in the graph.

CategoryGriptape/Agent Configs [DEPRECATED]

Inputs (8)

NameTypeDefaultDescription
prompt_modelCOMBOclaude-3-5-sonnet-202406204 options: claude-3-5-sonnet-20240620, claude-3-opus-20240229, claude-3-sonnet-20240229, claude-3-haiku-20240307
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.
api_key_env_varoptSTRINGANTHROPIC_API_KEY

Outputs (1)

NameTypeDescription
CONFIGCONFIG