Skip to main content

Module parser

Module parser 

Source

Structs§

ParsedAgentFile
The result of parsing a raw agent file.

Functions§

compute_sha256
Compute SHA-256 of the file content for content addressing.
parse_agent_file
Parse a raw agent file string into an AgentFile. Returns Err only for fatal parse errors. Lint warnings are returned via ValidationResult from validate_agent_file.
parse_agent_file_with_format
Like parse_agent_file but uses an explicitly supplied format instead of auto-detecting. Useful when the file extension is misleading or the user wants to override detection.
to_agent_version
Build an AgentVersion from a ParsedAgentFile.