vertex

package
v0.1.751 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVertexClient added in v0.1.662

func NewVertexClient(ctx context.Context, retryOpts helper.RetryOptions, opts VertexClientOptions) (*genai.Client, error)

Types

type Client

type Client interface {
	contract.VertexOperator
}

func NewClient

func NewClient(d Dependencies, opts ClientOptions) (Client, error)

type ClientOption

type ClientOption func(*ClientOptions)

func WithImageEmbeddingOptions added in v0.1.668

func WithImageEmbeddingOptions(x contract.EmbeddingOptions) ClientOption

func WithTextEmbeddingOptions added in v0.1.668

func WithTextEmbeddingOptions(x contract.EmbeddingOptions) ClientOption

func WithVideoEmbeddingOptions added in v0.1.668

func WithVideoEmbeddingOptions(x contract.EmbeddingOptions) ClientOption

type ClientOptions

type ClientOptions struct {
	TextEmbeddingOpts  contract.EmbeddingOptions
	VideoEmbeddingOpts contract.EmbeddingOptions
	ImageEmbeddingOpts contract.EmbeddingOptions
}

func ApplyClientOptions

func ApplyClientOptions(opts *ClientOptions, modifiers ...ClientOption) ClientOptions

type DefaultTool

type DefaultTool struct {
	T *contract.Tool[Client]
}

func NewTool

func NewTool(c Client, opts contract.ToolOptions[Client]) *DefaultTool

type Dependencies

type Dependencies struct {
	M contract.VertexModels
}

type Loaded

type Loaded struct {
	VertexProjectID string
	VertexLocation  string
	CredentialsJSON []byte
}

type Tool

type Tool any

type VertexClientOptions added in v0.1.662

type VertexClientOptions struct {
	Loaded
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL