Documentation
¶
Index ¶
Constants ¶
View Source
const ( ToolSearch = "tool_search" ToolDescribe = "tool_describe" ToolCall = "tool_call" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
tools.RuntimeConfig
DisclosureConfig
}
Config matches tools/runtime config at the top level, plus disclosure fields. Swap use: tools/runtime → tools/deferred without changing deps or timeout/allowTools keys.
type Deps ¶
type Deps = tools.RuntimeDeps
Deps are the same slots as tools/runtime (hooks, tools, toolPacks, dynamicTools, policies, approval).
type DisclosureConfig ¶
type DisclosureConfig struct {
Enabled EnabledSetting `json:"enabled"`
ThresholdPct float64 `json:"thresholdPct"`
ListingMaxTokens int `json:"listingMaxTokens"`
SearchDefaultLimit int `json:"searchDefaultLimit"`
MaxSearchLimit int `json:"maxSearchLimit"`
Listing string `json:"listing"` // auto | on | off
EagerTools []string `json:"eagerTools,omitempty"`
DeferTools []string `json:"deferTools,omitempty"`
}
DisclosureConfig controls progressive tool disclosure only.
func (DisclosureConfig) Normalize ¶
func (c DisclosureConfig) Normalize() DisclosureConfig
type EnabledSetting ¶
type EnabledSetting string
EnabledSetting controls when deferred bridges replace deferrable tools.
const ( EnabledOff EnabledSetting = "off" EnabledOn EnabledSetting = "on" EnabledAuto EnabledSetting = "auto" )
func (*EnabledSetting) UnmarshalJSON ¶
func (e *EnabledSetting) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.