Documentation
¶
Index ¶
- Constants
- type Tool
- func (t *Tool) BackfillInput(_ context.Context, in map[string]any) map[string]any
- func (t *Tool) Call(_ context.Context, callInput tool.CallInput, _ types.CanUseToolFn) (tool.CallResult, error)
- func (t *Tool) CheckPermissions(_ context.Context, in map[string]any, _ tool.ToolUseContext) types.PermissionResult
- func (t *Tool) Definition() tool.Definition
- func (t *Tool) Description(_ context.Context) (string, error)
- func (t *Tool) FormatResult(data any) string
- func (t *Tool) IsConcurrencySafe(_ map[string]any) bool
- func (t *Tool) IsEnabled() bool
- func (t *Tool) IsReadOnly(_ map[string]any) bool
- func (t *Tool) ValidateInput(_ context.Context, in map[string]any) (map[string]any, error)
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 (*Tool) BackfillInput ¶
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) FormatResult ¶
Click to show internal directories.
Click to hide internal directories.