Documentation
¶
Index ¶
- func GetFinalResponse(ch <-chan map[string]interface{}) string
- func GetPoint[T Point](s T) *T
- func GetTextStream(ch <-chan map[string]interface{}) <-chan string
- type Client
- 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
- type InvalidToken
- type Message
- type Payload
- type Point
- type Source
- type Subscription
- type SubscriptionsMutation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFinalResponse ¶
func GetTextStream ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteMessage ¶
func (*Client) GetMessageHistory ¶
func (*Client) PurgeConversation ¶
func (*Client) SendChatBreak ¶
type CreateBot ¶
type CreateBot struct {
Handle string
Prompt string
DisplayName string
BaseModel string
Description string
IntroMessage string
ApiKey *string
ApiBot bool
ApiUrl *string
PromptPublic *bool
PfpUrl *string
Linkification bool
MarkdownRendering *bool
SuggestedReplies bool
Private bool
Temperature string
}
type InvalidToken ¶
type InvalidToken struct {
// contains filtered or unexported fields
}
func (*InvalidToken) Error ¶
func (e *InvalidToken) Error() string
type Subscription ¶
type SubscriptionsMutation ¶
type SubscriptionsMutation struct {
Subscriptions []Subscription `json:"subscriptions"`
}
Click to show internal directories.
Click to hide internal directories.