MCPcopy Create free account
hub / github.com/astercloud/aster / Clone

Method Clone

pkg/tools/annotations.go:184–197  ·  view source on GitHub ↗

Clone 克隆注解(用于修改)

()

Source from the content-addressed store, hash-verified

182
183// Clone 克隆注解(用于修改)
184func (a *ToolAnnotations) Clone() *ToolAnnotations {
185 if a == nil {
186 return nil
187 }
188 return &ToolAnnotations{
189 ReadOnly: a.ReadOnly,
190 Destructive: a.Destructive,
191 Idempotent: a.Idempotent,
192 OpenWorld: a.OpenWorld,
193 RiskLevel: a.RiskLevel,
194 Category: a.Category,
195 RequiresConfirmation: a.RequiresConfirmation,
196 }
197}
198
199// WithCategory 设置分类(链式调用)
200func (a *ToolAnnotations) WithCategory(category string) *ToolAnnotations {

Callers 1

Calls

no outgoing calls

Tested by 1