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
| 17 | // The Run method should never be called; it returns an error if |
| 18 | // it is, as a safety net. |
| 19 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected