Documentation ¶
Index ¶
Constants ¶
View Source
const DaemonURLSuffix = ".daemon.gptscript.local"
Variables ¶
This section is empty.
Functions ¶
func CloseDaemons ¶
func CloseDaemons()
func PickToolName ¶ added in v0.1.5
func ToolNormalizer ¶ added in v0.1.5
Types ¶
type CallResult ¶
type Context ¶
type Context struct { ID string Ctx context.Context Parent *Context Program *types.Program Tool types.Tool // contains filtered or unexported fields }
func (*Context) MarshalJSON ¶
func (*Context) UnmarshalJSON ¶
type Engine ¶
type Engine struct { Model Model RuntimeManager RuntimeManager Env []string Progress chan<- types.CompletionStatus }
type ErrToolNotFound ¶
type ErrToolNotFound struct {
ToolName string
}
func (*ErrToolNotFound) Error ¶
func (e *ErrToolNotFound) Error() string
type Model ¶ added in v0.1.4
type Model interface {
Call(ctx context.Context, messageRequest types.CompletionRequest, status chan<- types.CompletionStatus) (*types.CompletionMessage, error)
}
type RuntimeManager ¶ added in v0.2.0
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.