Documentation
¶
Index ¶
- type Chatbot
- func (c *Chatbot) Ask(body *chatbot.ChatbotRequest, ch chan chatbot.ChatbotResponse, ...)
- func (c *Chatbot) AskNS(body *chatbot.ChatbotRequest) (map[string]*chatbot.ChatbotResponse, error)
- func (c *Chatbot) DownloadFile(fileID string) (Download, error)
- func (c *Chatbot) GetConversation(conversationID string) (*conversation.Conversation, error)
- func (c *Chatbot) GetHistory(offset, limit int) (*conversation.Conversations, error)
- func (c *Chatbot) GetModels() ([]chatbot.Model, error)
- type Download
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chatbot ¶
type Chatbot struct {
AccessToken string
HTTPClient *tls_client.HttpClient
}
func NewChatbot ¶
func (*Chatbot) Ask ¶
func (c *Chatbot) Ask(body *chatbot.ChatbotRequest, ch chan chatbot.ChatbotResponse, errch chan error)
func (*Chatbot) AskNS ¶
func (c *Chatbot) AskNS(body *chatbot.ChatbotRequest) (map[string]*chatbot.ChatbotResponse, error)
Ask No Stream
func (*Chatbot) GetConversation ¶
func (c *Chatbot) GetConversation(conversationID string) (*conversation.Conversation, error)
func (*Chatbot) GetHistory ¶
func (c *Chatbot) GetHistory(offset, limit int) (*conversation.Conversations, error)
Click to show internal directories.
Click to hide internal directories.