Anthropic::BetaManagedAgentsModelConfig
Inherits JSON::Serializable < Struct < Value < Object
Model identifier and configuration for Managed Agents.
Used as the model parameter on agent create/update (in place of a bare
model string) and mirrors the shape returned on agent resources.
# Bare model string still works on create:
client.beta.agents.create(model: :sonnet, name: "Helper")
# Or pass a config object for effort / speed control:
client.beta.agents.create(
model: Anthropic::BetaManagedAgentsModelConfig.new(
id: :sonnet,
effort: "high",
speed: "fast",
),
name: "Helper",
)
Constructors
new(pull : JSON::PullParser)
Sourcenew(id : String | Symbol, effort : String | BetaManagedAgentsEffort | JSON::Any | Nil = nil, speed : String | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
effort
How hard Claude works on each turn. Params accept a bare level string
("high") or an object ({"type": "high"}). On create, omitting it
resolves the per-model default; on update, omitting it leaves the stored
value unchanged.
speed
Inference speed mode: "standard" or "fast".
fast provides significantly faster output token generation at premium
pricing. Not all models support fast.