tool.go 766 B

1234567891011121314151617181920212223242526272829
  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 GoogleExtraContent struct {
  13. ThoughtSignature string `json:"thought_signature,omitempty"`
  14. }
  15. type ExtraContent struct {
  16. Google *GoogleExtraContent `json:"google,omitempty"`
  17. }
  18. type ToolCall struct {
  19. Index int `json:"index"`
  20. ID string `json:"id"`
  21. Type string `json:"type"`
  22. Function Function `json:"function"`
  23. ExtraContent *ExtraContent `json:"extra_content,omitempty"`
  24. }