Documentation ¶
Index ¶
Constants ¶
View Source
const DaemonURLSuffix = ".daemon.gpt.local"
Variables ¶
View Source
var DefaultToolSchema = types.JSONSchema{ Property: types.Property{ Type: "object", }, Properties: map[string]types.Property{ openai.DefaultPromptParameter: { Description: "Prompt to send to the tool or assistant. This may be instructions or question.", Type: "string", }, }, Required: []string{openai.DefaultPromptParameter}, }
View Source
var InternalSystemPrompt = `` /* 324-byte string literal not displayed */
InternalSystemPrompt is added to all threads. Changing this is very dangerous as it has a terrible global effect and changes the behavior of all scripts.
Functions ¶
func CloseDaemons ¶
func CloseDaemons()
Types ¶
type CallResult ¶
type Context ¶
type Context struct { ID string Ctx context.Context Parent *Context Program *types.Program Tool types.Tool }
func (*Context) MarshalJSON ¶
func (*Context) UnmarshalJSON ¶
type ErrToolNotFound ¶
type ErrToolNotFound struct {
ToolName string
}
func (*ErrToolNotFound) Error ¶
func (e *ErrToolNotFound) Error() string
type State ¶
type State struct { Completion types.CompletionRequest `json:"completion,omitempty"` Pending map[string]types.CompletionToolCall `json:"pending,omitempty"` Results map[string]CallResult `json:"results,omitempty"` }
Click to show internal directories.
Click to hide internal directories.