Documentation
¶
Overview ¶
Package toolgenfixture pins toolgen's declaration-only path against a real package: agent-tools/session.yaml is generated into tool_gen.go here, and this file supplies both the hand-written type the generated names must not collide with and a Handler implementation the generated Dispatch must accept.
It exists outside internal/ on purpose. toolgen prunes stale generated files under its output root, and a fixture living there would be deleted on the next run.
Index ¶
Constants ¶
const ToolPrefix = "session"
ToolPrefix is the family every generated session tool name starts with.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionTool ¶
type ActionTool = toolmeta.ActionTool
ActionTool describes one generated tool: an exact schema bound to one action.
func ActionTools ¶
func ActionTools() []ActionTool
ActionTools lists every generated tool in a stable order.
type Handler ¶
type Handler interface {
List(context.Context, SessionListInput) (any, error)
Send(context.Context, SessionSendInput) (any, error)
}
type SendInput ¶
SendInput is hand-written, and shares its name with what a naive generator would emit for session/send. internal/agent/session/access has exactly this collision; the generated type is SessionSendInput.