Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatFlow ¶
type ChatFlow = *core.Flow[ChatInput, ChatOutput, struct{}]
ChatFlow 对话流程
func DefineSimpleChatFlow ¶
DefineSimpleChatFlow 定义简单对话流程
type ChatInput ¶
type ChatInput struct {
Prompt string `json:"prompt"`
History []*ai.Message `json:"history,omitempty"`
MaxContextWindow int64 `json:"maxContextWindow,omitempty"`
}
ChatInput 对话输入
type ChatOutput ¶
type ChatOutput struct {
Messages []*ai.Message `json:"messages"`
LastContextWindow int64 `json:"lastContextWindow,omitempty"`
}
ChatOutput 对话输出
Click to show internal directories.
Click to hide internal directories.