AgentStructureValidator

class AgentStructureValidator(val context: <Error class: unknown class>) : AgentValidator

Validator that checks the fundamental structure of agent definitions.

Ensures that each agent has at least one goal, action, or condition defined, and validates that action and condition method signatures are correct and conform to expected patterns.

Specific checks include:

  • Detecting empty agents (no actions, conditions, or goals)

  • Enforcing that agents have at least one goal

  • Verifying that action and condition methods have valid parameter signatures

Reports detailed validation errors for structural issues, helping ensure that only well-formed agents are registered or used in the system.

Constructors

Link copied to clipboard
constructor(context: <Error class: unknown class>)

Properties

Link copied to clipboard
val context: <Error class: unknown class>

Functions

Link copied to clipboard
Link copied to clipboard
open override fun validate(agentScope: AgentScope): ValidationResult