Browse Source

fix: add agent strategy check for ManifestValidate

Yeuoly 7 months ago
parent
commit
17c80b0936
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/types/entities/plugin_entities/plugin_declaration.go

+ 1 - 1
internal/types/entities/plugin_entities/plugin_declaration.go

@@ -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")
 	}