Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QuickQueryFromEnv ¶
QuickQueryFromEnv performs a single query using environment configuration
Types ¶
type Conversation ¶
type Conversation struct {
// contains filtered or unexported fields
}
Conversation manages a multi-turn conversation with the AI
func NewConversation ¶
func NewConversation(client *openai.Client, config *Config, systemPrompt string) *Conversation
NewConversation creates a new conversation with a system prompt
func (*Conversation) GetHistory ¶
func (c *Conversation) GetHistory() []Message
GetHistory returns the conversation history as a slice of Messages
func (*Conversation) Reset ¶
func (c *Conversation) Reset()
Reset clears the conversation history except for the system message
func (*Conversation) SendMessage ¶
SendMessage sends a user message and returns the AI's response
Click to show internal directories.
Click to hide internal directories.