Documentation
¶
Index ¶
Constants ¶
View Source
const NamespaceURI = "github.com/agentflare-ai/agentml-go/validate"
Variables ¶
This section is empty.
Functions ¶
func Loader ¶
func Loader() agentml.NamespaceLoader
Loader returns a NamespaceLoader for the validate namespace. This allows SCXML documents to validate AML content.
Usage in SCXML:
<scxml xmlns:validate="github.com/agentflare-ai/agentml-go/validate"> <!-- Validate inline content --> <validate:content content="<agentml>...</agentml>" location="result" /> <!-- Validate content from data model --> <validate:content contentexpr="generatedCode" location="result" strict="false" /> </scxml>
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
type ValidationResult ¶
type ValidationResult struct {
Valid bool `json:"valid"`
ErrorCount int `json:"error_count"`
WarningCount int `json:"warning_count"`
InfoCount int `json:"info_count"`
Diagnostics []validator.Diagnostic `json:"diagnostics"`
}
ValidationResult represents the result of validating AML content
Click to show internal directories.
Click to hide internal directories.