tool.go 487 B

1234567891011121314151617181920
  1. package model
  2. type Tool struct {
  3. Type string `json:"type"`
  4. Function Function `json:"function"`
  5. }
  6. type Function struct {
  7. Parameters any `json:"parameters,omitempty"`
  8. Arguments string `json:"arguments,omitempty"`
  9. Description string `json:"description,omitempty"`
  10. Name string `json:"name,omitempty"`
  11. }
  12. type ToolCall struct {
  13. Index int `json:"index"`
  14. ID string `json:"id"`
  15. Type string `json:"type"`
  16. Function Function `json:"function"`
  17. }