(toolName string)
| 519 | } |
| 520 | |
| 521 | func (opts *WaveChatOpts) GetToolDefinition(toolName string) *ToolDefinition { |
| 522 | for _, tool := range opts.Tools { |
| 523 | if tool.Name == toolName { |
| 524 | return &tool |
| 525 | } |
| 526 | } |
| 527 | for _, tool := range opts.TabTools { |
| 528 | if tool.Name == toolName { |
| 529 | return &tool |
| 530 | } |
| 531 | } |
| 532 | return nil |
| 533 | } |
| 534 | |
| 535 | func (opts *WaveChatOpts) GetWaveRequestType() string { |
| 536 | if opts.BuilderId != "" { |
no outgoing calls
no test coverage detected