Versions in this module Expand all Collapse all v0 v0.4.0 Dec 19, 2024 Changes in this version + func CreateThreadForAgent(ctx context.Context, c kclient.WithWatch, agent *v1.Agent, ...) (*v1.Thread, error) + type ErrToolResult struct + Message string + func (e ErrToolResult) Error() string + type Invoker struct + func NewInvoker(c kclient.WithWatch, gptClient *gptscript.GPTScript, ...) *Invoker + func (i *Invoker) Agent(ctx context.Context, c kclient.WithWatch, agent *v1.Agent, input string, ...) (_ *Response, err error) + func (i *Invoker) Resume(ctx context.Context, c kclient.WithWatch, thread *v1.Thread, run *v1.Run) error + func (i *Invoker) Step(ctx context.Context, c kclient.WithWatch, step *v1.WorkflowStep, ...) (*Response, error) + func (i *Invoker) SystemTask(ctx context.Context, thread *v1.Thread, tool, input any, ...) (*Response, error) + func (i *Invoker) Workflow(ctx context.Context, c kclient.WithWatch, wf *v1.Workflow, input string, ...) (*Response, error) + type Options struct + AgentAlias string + CreateThread bool + ForceNoResume bool + PreviousRunName string + Synchronous bool + ThreadCredentialScope *bool + ThreadName string + UserUID string + WorkflowExecutionName string + WorkflowStepID string + WorkflowStepName string + type Response struct + Events <-chan types.Progress + Run *v1.Run + Thread *v1.Thread + WorkflowExecution *v1.WorkflowExecution + func (r *Response) Close() + func (r *Response) Result(ctx context.Context) (TaskResult, error) + type StepOptions struct + Continue *string + PreviousRunName string + type SystemTaskOptions struct + CredentialContextIDs []string + Env []string + Timeout time.Duration + type TaskResult struct + Output string + type WorkflowOptions struct + Events bool + OwningThreadName string + StepID string + ThreadName string + WorkflowExecutionName string v0.4.0-rc1 Dec 18, 2024