NewShoppingTools creates a new instance of shopping tools
()
| 13 | |
| 14 | // NewShoppingTools creates a new instance of shopping tools |
| 15 | func NewShoppingTools() *ShoppingTools { |
| 16 | return &ShoppingTools{ |
| 17 | cart: make(map[string]int), |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | // GetToolDefinitions returns the tool definitions for OpenAI function calling |
| 22 | func (st *ShoppingTools) GetToolDefinitions() []openai.ChatCompletionToolParam { |
no outgoing calls
no test coverage detected