client

package
v0.0.0-...-9fa62ac Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenAIClient

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

GenAIClient is a client for the Generative AI API.

func NewGenAIClient

func NewGenAIClient(ctx context.Context, apiKey string) (*GenAIClient, error)

NewGenAIClient creates a new Generative AI client.

func (*GenAIClient) Close

func (c *GenAIClient) Close() error

Close closes the client

func (*GenAIClient) StartNewChatSession

func (c *GenAIClient) StartNewChatSession(ctx context.Context, writer *bufio.Writer) func(parts ...genai.Part) error

StartNewChatSession starts a new chat session.

Jump to

Keyboard shortcuts

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