Documentation
¶
Index ¶
- type Chat
- func (c *Chat) Chat(ctx context.Context, content string) (string, error)
- func (c *Chat) ChatStream(ctx context.Context, content string, receive func([]byte) error) error
- func (c *Chat) Prompt(ctx context.Context, p prompt.Prompt) (string, error)
- func (c *Chat) Stream(ctx context.Context, p prompt.Prompt, fn func([]byte) error) error
- type ChatModel
- type Embedding
- type EmbeddingModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chat ¶
type Chat struct {
// contains filtered or unexported fields
}
func (*Chat) ChatStream ¶
ChatStream send a message, need to receive its returns
Click to show internal directories.
Click to hide internal directories.