artifact_declare

package
v0.1.21 Latest Latest
Warning

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

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

Documentation

Overview

Package artifact_declare provides a tool for declaring project artifacts produced during a task execution.

Index

Constants

View Source
const (
	// ToolNameArtifactDeclare is the stable tool name for declaring artifacts.
	ToolNameArtifactDeclare = "artifact_declare"
	// ToolDescription describes the artifact declaration tool to the LLM.
	ToolDescription = `` /* 474-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

type Tool struct {
	tools.BaseTool
}

Tool lets an internal Leros agent declare an artifact produced during task execution.

func NewTool

func NewTool() *Tool

NewTool creates the artifact declaration tool.

func (*Tool) Execute

func (t *Tool) Execute(ctx context.Context, raw json.RawMessage) (string, error)

Execute records the artifact declaration in the manifest.

func (*Tool) Validate

func (t *Tool) Validate(raw json.RawMessage) error

Validate checks artifact declaration input before execution.

Jump to

Keyboard shortcuts

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