Skip to main content

validate_agent_semantic

Function validate_agent_semantic 

Source
pub fn validate_agent_semantic(source: &str) -> Result<JsValue, JsValue>
Expand description

Validate AgentScript source code and return structured errors and warnings.

§Arguments

  • source - The AgentScript source code to validate

§Returns

  • Ok(JsValue) - Object with errors and warnings arrays
  • Err(JsValue) - Error message if serialization fails