Expand description
[model] in speccoder.toml.
Structs§
- Model
Config - The model speccoder calls.
- Prices
- USD per million tokens.
Enums§
- Cache
Ttl - Prompt-cache lifetime for breakpoints: agentplane’s, read as
5mor1h(one hour survives a run paused for an approval). How long a provider keeps a cached prompt prefix. - Prompt
Style - Provider prompt dialects (same content, same stability order).
Constants§
- NEEDS_
REGION - How
parse’s error for a Bedrock file without its region begins; that error is never reported while another one stands.
Functions§
- bedrock_
fixes - What gets Bedrock credentials when none is found: a Bedrock API key, an
aws loginsession, or another provider. - bedrock_
model_ warning - What to say when
modelis not a Bedrock model id (vendor.model, an inference profileglobal.vendor.model, or an ARN): a warning, since Bedrock alone knows its ids. - config_
fix - The
speccoder config …command a[model]error ends with, if any. - open_
driver - The model driver for
model, and the secret to redact from messages. Keys come only from the environment; a localopenai-compatibleserver needs none unlessapi_key_envnames one, and Bedrock’s come from the AWS credential chain (AWS_BEARER_TOKEN_BEDROCKor a profile). - parse
- Reads
[model]from the configuration text;Nonewhen absent. - provider_
refused_ fix - The fix for a provider refusing the account (
PROVIDER-REFUSED): the catalog’s, after — for Bedrock — the command that renewssource, the credentials the calls were signed with. - refused
- Why the model could not be opened, as a result: a missing key is
KEY-MISSINGwith the exactexport(and the other ways to get a model), anything elseCONFIG-INVALID. Every command that calls a model says it the same way. - strip_
cache_ control - Removes
cache_controlbreakpoints from a prompt (forPromptStyle::Chat). - to_
parts - Converts an Anthropic-layout prompt to agentplane’s shared shape (for
PromptStyle::Parts):systemblocks and the first message’s content become text parts, acache_controlbreakpoint acachemark —"1h"for the hour,"5m"otherwise — or none whencachesis off. A stringsystemstays as it is; a prompt withoutmessagesis left untouched.