instead of having an openai => google translation layer, just add sister functions to the types that construct the google request just like openai's

This commit is contained in:
2025-04-07 01:57:02 -04:00
parent 58552ee226
commit 5ba0d5df7e
11 changed files with 175 additions and 232 deletions

View File

@@ -1,17 +1,18 @@
package schema
import (
"github.com/openai/openai-go"
"reflect"
"github.com/sashabaranov/go-openai/jsonschema"
"github.com/google/generative-ai-go/genai"
"github.com/openai/openai-go"
)
type Type interface {
FunctionParameters() openai.FunctionParameters
OpenAIParameters() openai.FunctionParameters
GoogleParameters() *genai.Schema
SchemaType() jsonschema.DataType
Definition() jsonschema.Definition
//SchemaType() jsonschema.DataType
//Definition() jsonschema.Definition
Required() bool
Description() string