xai

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Model

func Model(g *genkit.Genkit, name string) ai.Model

Model returns the ai.Model with the given name. It returns nil if the model was not defined.

Types

type GenerationReasoningConfig

type GenerationReasoningConfig = config.GenerationReasoningConfig

type Plugin

type Plugin struct {
	// The API key to access the service for XAI.
	// If empty, the values of the environment variables XAI_API_KEY will be consulted.
	APIKey string
}

func (*Plugin) Init

func (o *Plugin) Init(_ context.Context, g *genkit.Genkit) (err error)

Init implements genkit.Plugin. After calling Init, you may call [DefineModel] to create and register any additional generative models.

func (*Plugin) Name

func (o *Plugin) Name() string

Name implements genkit.Plugin.