Documentation
¶
Overview ¶
Package assistant provides a wrapper for the Google Generative AI (Gemini) SDK. It is designed to act as an "Option Analyzer," processing user prompts and returning structured results interpreted through an embedded Lua execution engine.
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 the LLM service provider and its internal state for chat sessions.
func NewClient ¶
NewClient initializes a new LLM client with a predefined system prompt and conversation history.
func (*Client) GenerateResponse ¶
func (c *Client) GenerateResponse(ctx context.Context, newMessage *structs.PromptMessage, historyMessages []*structs.PromptMessage) (string, error)
GenerateResponse sends a message (and optional images) to the LLM and processes the Lua-formatted output.
Click to show internal directories.
Click to hide internal directories.