go-llm/pkg/function.go

14 lines
328 B
Go
Raw Normal View History

2024-10-06 20:01:01 -04:00
package llm
type Function struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
Strict bool `json:"strict,omitempty"`
Parameters any `json:"parameters"`
}
type FunctionCall struct {
Name string `json:"name,omitempty"`
Arguments any `json:"arguments,omitempty"`
}