Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents an LLM client
func (*Client) Generate ¶
func (c *Client) Generate(req GenerateRequest) <-chan GenerateResponse
Generate sends a prompt to the LLM and returns the response
type GenerateRequest ¶
type GenerateRequest struct {
SystemPrompt string
Context string
Task string
Stream bool // Enable streaming output to stdout
}
GenerateRequest represents a request to the LLM
type GenerateResponse ¶
GenerateResponse represents the response from the LLM
Click to show internal directories.
Click to hide internal directories.