HasHandler returns true if this tool has a handler function.
()
| 92 | |
| 93 | // HasHandler returns true if this tool has a handler function. |
| 94 | func (st *ServerTool) HasHandler() bool { |
| 95 | return st.HandlerFunc != nil |
| 96 | } |
| 97 | |
| 98 | // Handler returns a tool handler by calling HandlerFunc with the given dependencies. |
| 99 | // Panics if HandlerFunc is nil - all tools should have handlers. |
no outgoing calls