Documentation
¶
Overview ¶
Package optimizerdec provides a MultiSession decorator that replaces the full tool list with two optimizer tools: find_tool and call_tool.
Index ¶
Constants ¶
View Source
const ( // FindToolName is the tool name for semantic tool discovery. FindToolName = "find_tool" // CallToolName is the tool name for routing a call to any backend tool. CallToolName = "call_tool" )
Variables ¶
This section is empty.
Functions ¶
func NewDecorator ¶
func NewDecorator(sess sessiontypes.MultiSession, opt optimizer.Optimizer) sessiontypes.MultiSession
NewDecorator wraps sess with optimizer mode. Only find_tool and call_tool are exposed via Tools(). find_tool calls opt.FindTool. call_tool calls opt.CallTool, which routes through the instrumented optimizer (telemetry, traces, metrics).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.