Help us shape the future of Go! Take the 2026 Go Developer Survey

agentstep

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package agentstep adapts goagent RunDetailed calls into workflowkit steps.

The adapter is optional host glue: it preserves the agent run ID and lets callers map agent results into workflow statuses such as succeeded, failed, or waiting_approval.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Step)

func WithResultMapper

func WithResultMapper(mapper ResultMapper) Option

type RequestBuilder

type RequestBuilder func(workflowkit.WorkflowRun) agentcore.RunRequest

type Runner

type Runner interface {
	RunDetailed(context.Context, agentcore.RunRequest) (*agentcore.RunResult, error)
}

type Step

type Step struct {
	// contains filtered or unexported fields
}

func New

func New(name string, runner Runner, builder RequestBuilder, options ...Option) Step

func (Step) Name

func (s Step) Name() string

func (Step) Run

Jump to

Keyboard shortcuts

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