Documentation
¶
Index ¶
- func CreateProjectFromProject(ctx context.Context, c kclient.WithWatch, projectThread *v1.Thread, ...) (*v1.Thread, error)
- type ErrToolResult
- type Invoker
- func (i *Invoker) Agent(ctx context.Context, c kclient.WithWatch, agent *v1.Agent, input string, ...) (*Response, error)
- func (i *Invoker) EphemeralThreadTask(ctx context.Context, thread *v1.Thread, tool, input any, ...) (string, error)
- func (i *Invoker) Resume(ctx context.Context, c kclient.WithWatch, thread *v1.Thread, run *v1.Run) (err 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) Thread(ctx context.Context, c kclient.WithWatch, thread *v1.Thread, input string, ...) (*Response, error)
- func (i *Invoker) Workflow(ctx context.Context, c kclient.WithWatch, wf *v1.Workflow, input string, ...) (*Response, error)
- type Options
- type Response
- type StepOptions
- type SystemTaskOptions
- type TaskResult
- type WorkflowOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrToolResult ¶
type ErrToolResult struct {
Message string
}
func (ErrToolResult) Error ¶
func (e ErrToolResult) Error() string
type Invoker ¶
type Invoker struct {
// contains filtered or unexported fields
}
func NewInvoker ¶
func (*Invoker) EphemeralThreadTask ¶ added in v0.5.0
func (*Invoker) Step ¶
func (i *Invoker) Step(ctx context.Context, c kclient.WithWatch, step *v1.WorkflowStep, opt StepOptions) (*Response, error)
func (*Invoker) SystemTask ¶
type Options ¶
type Options struct { Synchronous bool EphemeralThread bool Thread *v1.Thread ThreadName string ParentThreadName string WorkflowName string WorkflowStepName string WorkflowStepID string WorkflowExecutionName string PreviousRunName string ForceNoResume bool CreateThread bool CredentialContextIDs []string UserUID string UserIsAdmin bool IgnoreMCPErrors bool GenerateName string ExtraEnv []string }
type Response ¶
type StepOptions ¶
type StepOptions struct {
PreviousRunName string
}
type SystemTaskOptions ¶
type TaskResult ¶
type TaskResult struct { // Task output Output string }
type WorkflowOptions ¶
Click to show internal directories.
Click to hide internal directories.