Documentation
¶
Index ¶
- func ConvertJResponseFormatJSONSchema(jschema *schema.ResponseFormatJSONSchema) (*genai.Schema, error)
- func ConvertJSONSchemaDefinition(jschema *jsonschema.Schema) (*genai.Schema, error)
- func ConvertJSONSchemaType(dt string) genai.Type
- func ConvertToolSchemaType(ty string) genai.Type
- func ConvertTools(tools []llms.Tool) ([]*genai.Tool, error)
- func Float32Ptr(f float32) *float32
- func Int32Ptr(i int32) *int32
- func StringPtr(s string) *string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertJResponseFormatJSONSchema ¶ added in v0.13.68
func ConvertJResponseFormatJSONSchema(jschema *schema.ResponseFormatJSONSchema) (*genai.Schema, error)
ConvertJSONSchemaDefinition converts a json_schema response format to a genai.Schema.
func ConvertJSONSchemaDefinition ¶
func ConvertJSONSchemaDefinition(jschema *jsonschema.Schema) (*genai.Schema, error)
ConvertJSONSchemaDefinition converts a jsonschema.Definition to a genai.Schema.
func ConvertJSONSchemaType ¶
ConvertJSONSchemaType converts a jsonschema.DataType to a genai.Type.
func ConvertToolSchemaType ¶
ConvertToolSchemaType converts a tool's schema type from its langchaingo representation (string) to a genai enum.
func ConvertTools ¶
ConvertTools converts from a list of langchaingo tools to a list of genai tools.
func Float32Ptr ¶ added in v0.13.68
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.