Documentation ¶
Index ¶
- func CreateThreadForAgent(ctx context.Context, c kclient.WithWatch, agent *v1.Agent, ...) (*v1.Thread, error)
- type ErrToolResult
- type 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
- 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) Step ¶
func (i *Invoker) Step(ctx context.Context, c kclient.WithWatch, step *v1.WorkflowStep, opt StepOptions) (*Response, error)
func (*Invoker) SystemTask ¶
type Response ¶
type StepOptions ¶
type SystemTaskOptions ¶
type TaskResult ¶
type TaskResult struct { // Task output Output string }
Click to show internal directories.
Click to hide internal directories.