vertex

package
v0.1.665 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 10 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 WithEmbeddingOptions

func WithEmbeddingOptions(x contract.EmbeddingOptions) ClientOption

type ClientOptions

type ClientOptions struct {
	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