Skip to main content

Crate dsl

Crate dsl 

Source
Expand description

Symbiont DSL Parser Library

This library provides parsing capabilities for the Symbiont DSL using Tree-sitter.

Structs§

ChannelDefinition
A parsed channel definition from DSL channel blocks.
ChannelPolicyRule
A policy rule within a channel definition.
DataClassificationEntry
A data classification entry within a channel definition.
DslDiagnostic
A structured diagnostic emitted by error analysis
MemoryDefinition
A parsed memory definition from DSL memory blocks.
MemorySearchConfig
Search configuration for a memory store.
ScheduleDefinition
A parsed schedule definition from DSL schedule blocks.
WebhookDefinition
A parsed webhook definition from DSL webhook blocks.
WebhookFilter
Filter configuration for a webhook.
WithAttribute
WithBlock attribute structure
WithBlock
WithBlock structure containing sandbox configuration

Enums§

MemoryStoreType
Memory store backend type.
SandboxTier
Sandbox tier enumeration representing different isolation levels This mirrors the SandboxTier enum in the runtime crate to avoid circular dependencies
WebhookProvider
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 .symbi or 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 (.symbi or .dsl) from a filename, returning the stem. Returns None if the name has neither extension.