Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AIGCs = map[string]*DSL{}
AIGCs the loaded AIGCs
View Source
var Autopilots = []string{}
Autopilots the loaded autopilots
Functions ¶
Types ¶
type AI ¶
type AI interface { ChatCompletions(messages []map[string]interface{}, option map[string]interface{}, cb func(data []byte) int) (interface{}, *exception.Exception) ChatCompletionsWith(ctx context.Context, messages []map[string]interface{}, option map[string]interface{}, cb func(data []byte) int) (interface{}, *exception.Exception) GetContent(response interface{}) (string, *exception.Exception) Embeddings(input interface{}, user string) (interface{}, *exception.Exception) Tiktoken(input string) (int, error) MaxToken() int }
AI the AI interface
type DSL ¶
type DSL struct { ID string `json:"-" yaml:"-"` Name string `json:"name,omitempty"` Connector string `json:"connector"` Process string `json:"process,omitempty"` Prompts []Prompt `json:"prompts"` Optional Optional `json:"optional,omitempty"` AI AI `json:"-" yaml:"-"` }
DSL the connector DSL
Click to show internal directories.
Click to hide internal directories.