Versions in this module Expand all Collapse all v1 v1.0.0 Jul 24, 2023 Changes in this version + func GetFinalResponse(ch <-chan map[string]interface{}) string + func GetPoint(s T) *T + func GetTextStream(ch <-chan map[string]interface{}) <-chan string + type Client struct + func NewClient(token string, proxy *url.URL) (*Client, error) + func (c *Client) CreateBot(req CreateBot) (map[string]interface{}, error) + func (c *Client) DeleteMessage(messageIDs []int) error + func (c *Client) EditBot(botID string, req CreateBot) (map[string]interface{}, error) + func (c *Client) GetBots() map[string]string + func (c *Client) GetMessageHistory(chatbot string, count int, cursor interface{}) ([]map[string]interface{}, error) + func (c *Client) PurgeConversation(chatbot string, count int) error + func (c *Client) SendChatBreak(chatbot string) (map[string]interface{}, error) + func (c *Client) SendMessage(chatbot, message string, withChatBreak bool, timeout time.Duration) (<-chan map[string]interface{}, error) + type CreateBot struct + ApiBot bool + ApiKey *string + ApiUrl *string + BaseModel string + Description string + DisplayName string + Handle string + IntroMessage string + Linkification bool + MarkdownRendering *bool + PfpUrl *string + Private bool + Prompt string + PromptPublic *bool + SuggestedReplies bool + Temperature string + type InvalidToken struct + func (e *InvalidToken) Error() string + type Message struct + Attachments []interface{} + Bot string + ChatID float64 + ClientNonce string + Query string + Sdid string + Source Source + WithChatBreak bool + type Payload struct + Extensions map[string]interface{} + QueryName string + Variables interface{} + type Point interface + type Source struct + ChatInputMetadata map[string]interface{} + SourceType string + type Subscription struct + Query interface{} + QueryHash string + SubscriptionName string + type SubscriptionsMutation struct + Subscriptions []Subscription