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 ¶
func ApplyClientOptions ¶
func ApplyClientOptions(opts *ClientOptions, modifiers ...ClientOption) ClientOptions
type DefaultTool ¶
func NewTool ¶ added in v0.1.703
func NewTool(c Client, opts contract.ToolOptions[Client]) *DefaultTool
type Dependencies ¶
type Dependencies struct {
M contract.Marshaler
U contract.Unmarshaler
HR contract.HTTPRequester
HD contract.HTTPDoer
R contract.Reader
}
Click to show internal directories.
Click to hide internal directories.