Documentation
¶
Index ¶
- Constants
- func AdvertisedContextWindows(endpoint, apiKey string) (map[string]int, string)
- func ContextClassLabel(window int) string
- func MappedContextClassesDiffer(p provider.Provider, windows map[string]int) bool
- func NormalizeMaxOutputTokens(value string) (string, error)
- func PreviewSettings(p provider.Provider) string
- func Run(p provider.Provider, args []string) error
- type RuntimeSettings
Constants ¶
const ( SubagentModelEnv = "CLAUDE_CODE_SUBAGENT_MODEL" ToolUseConcurrencyEnv = "CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY" ToolSearchEnv = "ENABLE_TOOL_SEARCH" MaxOutputTokensEnv = "CLAUDE_CODE_MAX_OUTPUT_TOKENS" DefaultToolUseConcurrency = "3" DefaultToolSearch = "false" DefaultMaxOutputTokens = "32000" MaxOutputTokensUpperLimit = 128000 )
Variables ¶
This section is empty.
Functions ¶
func AdvertisedContextWindows ¶ added in v1.3.16
AdvertisedContextWindows reads the context window of every model a runtime exposes, keyed by lowercased model id, plus the catalog it came from.
Subscription runtimes only reveal windows through the Codex client catalog; the plain OpenAI list is trimmed to id/object/created/owned_by. Both shapes are tried so API-key gateways still work. The values are advisory: they may be a client-side catalog cap rather than what the server enforces.
func ContextClassLabel ¶ added in v1.3.16
ContextClassLabel names the sizing Claude Code will use for an advertised window, for diagnostics.
func MappedContextClassesDiffer ¶ added in v1.3.16
MappedContextClassesDiffer reports whether the provider's mapped models fall into more than one context class, which is when no session-wide context value could be correct for all of them.
func NormalizeMaxOutputTokens ¶ added in v1.3.4
NormalizeMaxOutputTokens validates Claude Code's per-response output cap. Context window sizes such as 200K or 1M are separate settings and must not be used here.
func PreviewSettings ¶
PreviewSettings returns the JSON that would be written to the settings temp file.
Types ¶
type RuntimeSettings ¶ added in v1.3.1
type RuntimeSettings struct {
SubagentModel string
ToolUseConcurrency string
ToolSearch string
MaxOutputTokens string
}
RuntimeSettings are ccl's Claude Code process defaults. Provider Env values override these defaults so advanced users retain an escape hatch.
func ResolveRuntimeSettings ¶ added in v1.3.1
func ResolveRuntimeSettings(p provider.Provider) RuntimeSettings