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) StartNewChatSession ¶
func (c *GenAIClient) StartNewChatSession(ctx context.Context, writer *bufio.Writer) func(parts ...genai.Part) error
StartNewChatSession starts a new chat session.
Click to show internal directories.
Click to hide internal directories.