Documentation
¶
Index ¶
- type App
- type Bot
- type Client
- func (c *Client) CreateConversation(ctx context.Context, req CreateConversationRequest) (*Conversation, error)
- func (c *Client) CreateIndexes(ctx context.Context, req CreateIndexesRequest) error
- func (c *Client) DeleteConversation(ctx context.Context, conversationID string) error
- func (c *Client) DeleteIndex(ctx context.Context, objectId string) error
- func (c *Client) GetConvTurn(ctx context.Context, conversationID string, turnID uint64, ...) (*ConvTurn, error)
- func (c *Client) GetConversation(ctx context.Context, conversationID string) (*Conversation, error)
- func (c *Client) PostToConversation(ctx context.Context, req PostToConversationPayloadRequest) (*ConvTurn, error)
- func (c *Client) SearchIndexes(ctx context.Context, req SearchIndexesRequest) (*SearchIndexesResponse, error)
- func (c *Client) UpdateConversation(ctx context.Context, req UpdateConversationRequest) error
- type ConvTurn
- type Conversation
- type CreateConversationRequest
- type CreateIndexesItem
- type CreateIndexesRequest
- type Error
- type Index
- type Logger
- type Middleware
- type Option
- type PostToConversationPayloadRequest
- type SearchIndexesRequest
- type SearchIndexesResponse
- type UpdateConversationRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateConversation ¶
func (c *Client) CreateConversation(ctx context.Context, req CreateConversationRequest) (*Conversation, error)
func (*Client) CreateIndexes ¶
func (c *Client) CreateIndexes(ctx context.Context, req CreateIndexesRequest) error
func (*Client) DeleteConversation ¶
func (*Client) DeleteIndex ¶
func (*Client) GetConvTurn ¶
func (*Client) GetConversation ¶
func (*Client) PostToConversation ¶
func (*Client) SearchIndexes ¶
func (c *Client) SearchIndexes(ctx context.Context, req SearchIndexesRequest) (*SearchIndexesResponse, error)
func (*Client) UpdateConversation ¶
func (c *Client) UpdateConversation(ctx context.Context, req UpdateConversationRequest) error
type ConvTurn ¶
type ConvTurn struct {
ID uint64 `json:"id"`
ConversationID string `json:"conversation_id"`
BotID uint64 `json:"bot_id"`
AppID uint64 `json:"app_id"`
UserIdentity string `json:"user_identity"`
Request string `json:"request"`
Response string `json:"response"`
RequestToken int `json:"request_token"`
ResponseToken int `json:"response_token"`
PromptTokens int `json:"prompt_tokens"`
CompletionTokens int `json:"completion_tokens"`
TotalTokens int `json:"total_tokens"`
Status int `json:"status"`
CreatedAt *time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
}
type Conversation ¶
type CreateIndexesItem ¶
type CreateIndexesRequest ¶
type CreateIndexesRequest struct {
Items []*CreateIndexesItem `json:"items"`
}
type Middleware ¶
type SearchIndexesRequest ¶
type SearchIndexesResponse ¶
type SearchIndexesResponse struct {
Items []*Index `json:"items"`
}
Click to show internal directories.
Click to hide internal directories.