- Update all Go dependencies to latest versions - Migrate from github.com/google/generative-ai-go/genai to google.golang.org/genai - Fix google.go to use the new SDK API (NewPartFromText, NewContentFromParts, etc.) - Update schema package imports to use the new genai package - Add CLAUDE.md with README maintenance guideline Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
449 B
Go
24 lines
449 B
Go
package schema
|
|
|
|
import (
|
|
"reflect"
|
|
|
|
"github.com/openai/openai-go"
|
|
"google.golang.org/genai"
|
|
)
|
|
|
|
type Type interface {
|
|
OpenAIParameters() openai.FunctionParameters
|
|
GoogleParameters() *genai.Schema
|
|
AnthropicInputSchema() map[string]any
|
|
|
|
//SchemaType() jsonschema.DataType
|
|
//Definition() jsonschema.Definition
|
|
|
|
Required() bool
|
|
Description() string
|
|
|
|
FromAny(any) (reflect.Value, error)
|
|
SetValueOnField(obj reflect.Value, val reflect.Value)
|
|
}
|