grok

package
v0.1.849 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	contract.GrokOperator
}

func NewClient

func NewClient(d Dependencies, opts ClientOptions) (Client, error)

type ClientOption

type ClientOption = contract.Opt[ClientOptions]

func WithAPIKey

func WithAPIKey(x string) ClientOption

func WithLoaded

func WithLoaded(x Loaded) ClientOption

func WithModel

func WithModel(x string) ClientOption

func WithURL

func WithURL(x string) ClientOption

type ClientOptions

type ClientOptions struct {
	Loaded
	URL   string
	Model string
}

func ApplyClientOptions

func ApplyClientOptions(opts *ClientOptions, modifiers ...ClientOption) ClientOptions

type DefaultTool

type DefaultTool struct {
	T *contract.Tool[Client]
}

func NewTool added in v0.1.703

func NewTool(c Client, opts contract.ToolOptions[Client]) *DefaultTool

type Loaded

type Loaded struct {
	APIKey string
}

type Tool

type Tool any

Jump to

Keyboard shortcuts

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