* feat: add tool support for AWS & Claude * fix: add {} for openai compatibility in streaming tool_use
15 lines
525 B
Go
15 lines
525 B
Go
package model
|
|
|
|
type Tool struct {
|
|
Id string `json:"id,omitempty"`
|
|
Type string `json:"type,omitempty"` // when splicing claude tools stream messages, it is empty
|
|
Function Function `json:"function"`
|
|
}
|
|
|
|
type Function struct {
|
|
Description string `json:"description,omitempty"`
|
|
Name string `json:"name,omitempty"` // when splicing claude tools stream messages, it is empty
|
|
Parameters any `json:"parameters,omitempty"` // request
|
|
Arguments any `json:"arguments,omitempty"` // response
|
|
}
|