agent

package
v0.98.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 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

View Source
const (
	OpRun    = "run"
	OpHealth = "health"
)

Variables

This section is empty.

Functions

func Register

func Register() error

Register registers the agent capability with hub and invoker registry. Registration runs when chat agent is enabled or a Runner has been wired (including test stubs via SetRunner).

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