Documentation
¶
Index ¶
- Constants
- func Encode(tool *ToolDraft, format string) ([]byte, error)
- func WriteFile(path string, tool *ToolDraft, format string) error
- type Annotations
- type Confirmation
- type CostTags
- type DataClassification
- type Finding
- type Idempotency
- type LintReport
- type LintSummary
- type Manifest
- type ManifestTool
- type Metadata
- type RetryPolicy
- type RiskLevel
- type Severity
- type SideEffect
- type Source
- type Spec
- type ToolDraft
Constants ¶
View Source
const ( APIVersion = "agent.tools/v1" KindDraft = "ToolDraft" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Annotations ¶
type Annotations struct {
GeneratedBy string `json:"generated_by" yaml:"generated_by"`
Warnings []string `json:"warnings,omitempty" yaml:"warnings,omitempty"`
GovernanceReasons []string `json:"governance_reasons,omitempty" yaml:"governance_reasons,omitempty"`
Deprecated bool `json:"deprecated,omitempty" yaml:"deprecated,omitempty"`
}
type Confirmation ¶
type Confirmation string
const ( ConfirmNever Confirmation = "never" ConfirmRecommended Confirmation = "recommended" ConfirmRequired Confirmation = "required" )
type DataClassification ¶
type Idempotency ¶
type Idempotency string
const ( IdemSafe Idempotency = "safe" IdemIdempotent Idempotency = "idempotent" IdemNonIdempotent Idempotency = "non_idempotent" IdemUnknown Idempotency = "unknown" )
type LintReport ¶
type LintReport struct {
Summary LintSummary `json:"summary" yaml:"summary"`
Findings []Finding `json:"findings" yaml:"findings"`
}
type LintSummary ¶
type Manifest ¶
type Manifest struct {
GeneratedBy string `json:"generated_by" yaml:"generated_by"`
SpecHash string `json:"spec_hash" yaml:"spec_hash"`
SpecTitle string `json:"spec_title" yaml:"spec_title"`
ToolCount int `json:"tool_count" yaml:"tool_count"`
Tools []ManifestTool `json:"tools" yaml:"tools"`
}
type ManifestTool ¶
type RetryPolicy ¶
type SideEffect ¶
type SideEffect string
const ( SideNone SideEffect = "none" SideRead SideEffect = "read" SideWrite SideEffect = "write" SideDelete SideEffect = "delete" SideExecute SideEffect = "execute" )
type Source ¶
type Source struct {
Type string `json:"type" yaml:"type"`
SpecHash string `json:"spec_hash" yaml:"spec_hash"`
OperationID string `json:"operation_id,omitempty" yaml:"operation_id,omitempty"`
Method string `json:"method" yaml:"method"`
Path string `json:"path" yaml:"path"`
SpecTitle string `json:"spec_title,omitempty" yaml:"spec_title,omitempty"`
SpecVersion string `json:"spec_version,omitempty" yaml:"spec_version,omitempty"`
}
type Spec ¶
type Spec struct {
Description string `json:"description" yaml:"description"`
InputSchema map[string]any `json:"input_schema" yaml:"input_schema"`
OutputSchema map[string]any `json:"output_schema" yaml:"output_schema"`
RiskLevel RiskLevel `json:"risk_level" yaml:"risk_level"`
SideEffect SideEffect `json:"side_effect" yaml:"side_effect"`
Idempotency Idempotency `json:"idempotency" yaml:"idempotency"`
Confirmation Confirmation `json:"confirmation" yaml:"confirmation"`
TimeoutMs int `json:"timeout_ms" yaml:"timeout_ms"`
RetryPolicy RetryPolicy `json:"retry_policy" yaml:"retry_policy"`
Permissions []string `json:"permissions" yaml:"permissions"`
DataClassification DataClassification `json:"data_classification" yaml:"data_classification"`
CostTags CostTags `json:"cost_tags" yaml:"cost_tags"`
Annotations Annotations `json:"annotations" yaml:"annotations"`
}
Click to show internal directories.
Click to hide internal directories.