Skip to content

Commit

Permalink
fix: add agent strategy check for ManifestValidate
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Dec 25, 2024
1 parent d55e0ba commit 17c80b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (p *PluginDeclaration) Identity() string {
}

func (p *PluginDeclaration) ManifestValidate() error {
if p.Endpoint == nil && p.Model == nil && p.Tool == nil {
if p.Endpoint == nil && p.Model == nil && p.Tool == nil && p.AgentStrategy == nil {
return fmt.Errorf("at least one of endpoint, model, or tool must be provided")
}

Expand Down

0 comments on commit 17c80b0

Please sign in to comment.