Expand description
Native Rust support for Agentic Graph Specification (AGS) 1.0.
The crate parses JSON/YAML graphs, validates structural and semantic rules, computes RFC 8785 identities, parses AGX expressions, and creates deterministic conformance-level-0 plans. It never executes a graph.
Structs§
- AgxCall
- A function call discovered while parsing an AGX expression.
- AgxError
- Syntax error returned by the AGX parser.
- Effective
Edge - A normalized dependency or explicitly declared graph edge.
- Finding
- One machine-readable validation diagnostic.
- Graph
Plan - Deterministic, non-executing conformance-level-0 graph plan.
- Parse
Error - AGS parsing failure with a stable diagnostic code.
- Parsed
Expression - Structural information collected from a valid AGX expression.
- Validation
Report - The complete result of parsing and validating an AGS document.
Enums§
- Canonical
Error - Failure while producing canonical JSON.
- Plan
Error - Failure while constructing a deterministic graph plan.
Constants§
- AGS_
VERSION - AGS specification version implemented by this crate.
- SUPPORT_
VERSION - Version of this Rust support library.
Functions§
- canonical_
json - Serializes a value using RFC 8785 JSON Canonicalization Scheme rules.
- graph_
digest - Computes the AGS
sha256-<base64>identity of a graph document. - graph_
effective_ edges - Combines
depends_onrelationships and explicit edges into a sorted edge set. - load
- Loads an AGS document, selecting JSON for
.jsonpaths and YAML otherwise. - parse
- Parses a JSON or YAML AGS document with duplicate-key rejection.
- parse_
expression - Parses and validates AGX syntax while collecting calls and references.
- plan_
graph - Produces a deterministic, non-executing AGS conformance-level-0 plan.
- topological_
order - Computes a deterministic, identifier-tiebroken topological node order.
- validate
- Runs embedded JSON Schema, semantic, topology, and AGX dataflow validation.
- validate_
path - Loads and validates an AGS document, returning parse failures as diagnostics.
Type Aliases§
- Document
- A parsed AGS document represented as a JSON-compatible object.