MCPcopy Create free account
hub / github.com/coder/coder / dynamicTool

Struct dynamicTool

coderd/x/chatd/dynamictool.go:19–25  ·  view source on GitHub ↗

dynamicTool wraps a codersdk.DynamicTool as a fantasy.AgentTool. These tools are presented to the LLM but never executed by the chatloop — when the LLM calls one, the chatloop exits with requires_action status and the client handles execution. The Run method should never be called; it returns an err

Source from the content-addressed store, hash-verified

17// The Run method should never be called; it returns an error if
18// it is, as a safety net.
19type dynamicTool struct {
20 name string
21 description string
22 parameters map[string]any
23 required []string
24 opts fantasy.ProviderOptions
25}
26
27// dynamicToolsFromSDK converts codersdk.DynamicTool definitions
28// into fantasy.AgentTool implementations for inclusion in the LLM

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected