Expand description
Symbiont DSL Parser Library
This library provides parsing capabilities for the Symbiont DSL using Tree-sitter.
Structs§
- Channel
Definition - A parsed channel definition from DSL
channelblocks. - Channel
Policy Rule - A policy rule within a channel definition.
- Data
Classification Entry - A data classification entry within a channel definition.
- DslDiagnostic
- A structured diagnostic emitted by error analysis
- Memory
Definition - A parsed memory definition from DSL
memoryblocks. - Memory
Search Config - Search configuration for a memory store.
- Schedule
Definition - A parsed schedule definition from DSL
scheduleblocks. - Webhook
Definition - A parsed webhook definition from DSL
webhookblocks. - Webhook
Filter - Filter configuration for a webhook.
- With
Attribute - WithBlock attribute structure
- With
Block - WithBlock structure containing sandbox configuration
Enums§
- Memory
Store Type - Memory store backend type.
- Sandbox
Tier - Sandbox tier enumeration representing different isolation levels This mirrors the SandboxTier enum in the runtime crate to avoid circular dependencies
- Webhook
Provider - Webhook provider type.
Constants§
- LEGACY_
DSL_ EXTENSION - Legacy file extension for Symbiont agent definitions. Continues to be
recognized indefinitely for backward compatibility; new files should
use
SYMBI_EXTENSION. - SYMBI_
EXTENSION - Canonical file extension for Symbiont agent definitions.
Functions§
- extract_
channel_ definitions - Extract channel definitions from parsed AST.
- extract_
memory_ definitions - Extract memory definitions from parsed AST.
- extract_
metadata - Extract metadata from parsed AST
- extract_
schedule_ definitions - Extract schedule definitions from parsed AST.
- extract_
webhook_ definitions - Extract webhook definitions from parsed AST.
- extract_
with_ blocks - Extract with blocks from parsed AST
- find_
errors - Find errors in the AST and return them as structured diagnostics
- is_
symbi_ file - Returns true if the given path has a Symbiont agent definition extension
(either canonical
.symbior legacy.dsl). - parse_
dsl - Parse Symbiont DSL code and return the syntax tree
- print_
ast - Print the AST in a readable format
- strip_
symbi_ extension - Strip a recognized Symbiont agent extension (
.symbior.dsl) from a filename, returning the stem. ReturnsNoneif the name has neither extension.