feat: conversion-driven extensions — resolvers, DefineTool, hooks, ops controls
Phase 9a (ADR-0014): Registry.RegisterResolver for dynamic tiers; DefineTool[Args] typed tools; Usage cache/reasoning detail fields wired through anthropic/openai/google; WithPromptCaching (Anthropic cache_control); agent supervision hooks (WithMaxStepsFunc, WithSteer, WithCompactor, WithToolErrorLimits + ErrToolLoop); health Bench/Unbench/Snapshot; ChainConfig.Observer failover events. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -100,6 +100,7 @@ func WithTopP(p float64) Option { return llm.WithTop
|
||||
func WithMaxTokens(n int) Option { return llm.WithMaxTokens(n) }
|
||||
func WithStopSequences(stops ...string) Option { return llm.WithStopSequences(stops...) }
|
||||
func WithReasoningEffort(level string) Option { return llm.WithReasoningEffort(level) }
|
||||
func WithPromptCaching() Option { return llm.WithPromptCaching() }
|
||||
|
||||
// WithModelCapabilities re-exports llm.WithCapabilities for Provider.Model
|
||||
// calls made through this package.
|
||||
|
||||
Reference in New Issue
Block a user