Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AIService ¶
type AIService struct {
// contains filtered or unexported fields
}
func NewAIService ¶
func (*AIService) Ask ¶
func (s *AIService) Ask(ctx context.Context, question string, history []ChatMessage) (*AskResponse, error)
func (*AIService) AskStream ¶
func (s *AIService) AskStream(ctx context.Context, question string, history []ChatMessage, cb StreamCallback) error
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) Ask ¶
func (a *Agent) Ask(ctx context.Context, question string, history []ChatMessage) (*AskResponse, error)
func (*Agent) AskStream ¶
func (a *Agent) AskStream(ctx context.Context, question string, history []ChatMessage, cb StreamCallback) error
type AskResponse ¶
type ChatMessage ¶
type StreamCallback ¶
type StreamCallback func(StreamEvent)
Click to show internal directories.
Click to hide internal directories.