workflow

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToolName = "workflow_draft"

	ToolDescription = "Validate and render a static workflow DAG draft as YAML or JSON. " +
		"Use this when a user asks to design a reusable workflow, split a complex task into parallel agents, or prepare a workflow file for `seshat workflow run`."
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

type Tool struct{}

func NewTool

func NewTool() *Tool

func (*Tool) BackfillInput

func (t *Tool) BackfillInput(_ context.Context, in map[string]any) map[string]any

func (*Tool) Call

func (t *Tool) Call(_ context.Context, callInput tool.CallInput, _ types.CanUseToolFn) (tool.CallResult, error)

func (*Tool) CheckPermissions

func (t *Tool) CheckPermissions(_ context.Context, in map[string]any, _ tool.ToolUseContext) types.PermissionResult

func (*Tool) Definition

func (t *Tool) Definition() tool.Definition

func (*Tool) Description

func (t *Tool) Description(_ context.Context) (string, error)

func (*Tool) FormatResult

func (t *Tool) FormatResult(data any) string

func (*Tool) IsConcurrencySafe

func (t *Tool) IsConcurrencySafe(_ map[string]any) bool

func (*Tool) IsEnabled

func (t *Tool) IsEnabled() bool

func (*Tool) IsReadOnly

func (t *Tool) IsReadOnly(_ map[string]any) bool

func (*Tool) ValidateInput

func (t *Tool) ValidateInput(_ context.Context, in map[string]any) (map[string]any, error)

Jump to

Keyboard shortcuts

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