Documentation
¶
Index ¶
- type AddDatasourceRequest
- type ChatCompletionRequest
- type ChatCompletionResponse
- type CreateRequest
- type Message
- type MessageDelta
- type Minds
- func (md *Minds) AddDatasource(name string, Datasource datasource.DatabaseConfig, checkConnection bool) error
- func (md *Minds) Completion(model, message string, stream bool) (string, <-chan string, error)
- func (md *Minds) Create(name string, Datasources []datasource.DatabaseConfig) (string, error)
- func (md *Minds) Delete(name string) error
- func (md *Minds) Get(name string) (*ResponseMind, error)
- func (md *Minds) List() ([]ResponseMind, error)
- func (md *Minds) Update(Oldname, newName string, Datasources []datasource.DatabaseConfig) (string, error)
- type ResponseMind
- type StreamChoice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddDatasourceRequest ¶
type ChatCompletionRequest ¶
type ChatCompletionResponse ¶
type ChatCompletionResponse struct { ID string `json:"id"` Object string `json:"object"` Created int64 `json:"created"` Model string `json:"model"` Choices []StreamChoice `json:"choices"` }
type CreateRequest ¶
type MessageDelta ¶
type Minds ¶
func (*Minds) AddDatasource ¶
func (md *Minds) AddDatasource(name string, Datasource datasource.DatabaseConfig, checkConnection bool) error
func (*Minds) Completion ¶
func (*Minds) Create ¶
func (md *Minds) Create(name string, Datasources []datasource.DatabaseConfig) (string, error)
func (*Minds) List ¶
func (md *Minds) List() ([]ResponseMind, error)
func (*Minds) Update ¶
func (md *Minds) Update(Oldname, newName string, Datasources []datasource.DatabaseConfig) (string, error)
type ResponseMind ¶
type StreamChoice ¶
type StreamChoice struct { Delta MessageDelta `json:"delta"` Index int `json:"index"` }
Click to show internal directories.
Click to hide internal directories.