ai_engine

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 26 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	DefaultModel             string   `long:"default-model" env:"DEFAULT_MODEL" description:"The default model to use" required:"true"`
	FileDescriptorSetConfigs []string `` /* 299-byte string literal not displayed */
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(
	opts *Opts,

	serverReflectionClient serverreflectionpb.ServerReflectionClient,

) (*Service, error)

func (*Service) BatchCreateTools

func (s *Service) BatchCreateTools(ctx context.Context, request *pb.BatchCreateToolsRequest) (*pb.BatchCreateToolsResponse, error)

func (*Service) CreateDiscoveryTool

func (s *Service) CreateDiscoveryTool(ctx context.Context, request *pb.CreateDiscoveryToolRequest) (*aipb.Tool, error)

func (*Service) CreateServiceToolSet

func (s *Service) CreateServiceToolSet(ctx context.Context, request *pb.CreateServiceToolSetRequest) (*aipb.ToolSet, error)

func (*Service) CreateTool

func (s *Service) CreateTool(ctx context.Context, request *pb.CreateToolRequest) (*aipb.Tool, error)

func (*Service) ParseToolCall

func (s *Service) ParseToolCall(ctx context.Context, request *pb.ParseToolCallRequest) (*pb.ParseToolCallResponse, error)

func (*Service) Start

func (s *Service) Start(ctx context.Context, withServiceAccount func(context.Context) context.Context) (func(), error)

func (*Service) WithLogger

func (s *Service) WithLogger(logger *slog.Logger) *Service

Jump to

Keyboard shortcuts

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