agent

package
v0.95.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package agent provides the agent capability for pipeline steps to run chat agent prompts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Descriptor

func Descriptor() hub.Descriptor

Descriptor returns the hub capability descriptor for agent.

func Register

func Register() error

Register registers the agent capability with the hub and ability registry.

func SetRunner

func SetRunner(r Runner)

SetRunner wires the product-layer agent runner used by pipeline steps.

Types

type RunParams

type RunParams struct {
	Prompt      string
	UID         types.Uid
	Tools       []string
	Skills      []string
	MemoryScope string
}

RunParams carries one pipeline-rendered agent run request.

type RunResult

type RunResult struct {
	Reply     string
	SessionID string
}

RunResult holds the outcome of one agent.run invocation.

type Runner

type Runner interface {
	Run(ctx context.Context, params RunParams) (*RunResult, error)
}

Runner executes one agent prompt from a pipeline step.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL