Module parser

Module parser 

Source
Expand description

Config parser for Markdown fence blocks Uses serde_yaml for ALL parsing (no custom mini-syntax)

Structsยง

AdapterConfig
AgentConfig
AgentConstraintsConfig
AlignmentSignalConfig
CacheConfig
DelegationBoundaryConfig
FieldConfig
IndexConfig
InjectionConfig
IntentConfig
MemoryConfig
PermissionMatrixConfig
PolicyConfig
PolicyRuleConfig
ProviderConfig
ResolutionRuleConfig
TrajectoryConfig

Enumsยง

ActionConfig
ConfigError
FreshnessConfig
SignalTargetConfig

Functionsยง

parse_action ๐Ÿ”’
Converts an ActionConfig (parsed from YAML) into the corresponding internal Action.
parse_adapter_block
Parses an adapter YAML fence block into an AdapterDef.
parse_adapter_type ๐Ÿ”’
Parse a string into an AdapterType.
parse_agent_block
Parses an agent YAML block and converts it into an AgentDef.
parse_autonomy_level ๐Ÿ”’
Parse an autonomy level string into an AutonomyLevel.
parse_cache_backend ๐Ÿ”’
Parse a string into a CacheBackendType.
parse_cache_block
Parses a cache configuration YAML block and converts it into a CacheDef.
parse_env_value ๐Ÿ”’
Parses a string into an EnvValue, interpreting values that start with env: as environment variable references.
parse_field_def ๐Ÿ”’
Converts a YAML-deserialized FieldConfig into the internal FieldDef.
parse_field_type ๐Ÿ”’
Parses a field type identifier into a FieldType.
parse_freshness_def ๐Ÿ”’
Convert a freshness configuration into its AST representation.
parse_index_def ๐Ÿ”’
Converts an IndexConfig into an IndexDef by parsing the configured index type.
parse_index_type ๐Ÿ”’
Parses a string representation of an index type into an IndexType.
parse_injection_block
Parses an InjectionConfig YAML block and converts it into an InjectionDef.
parse_injection_mode ๐Ÿ”’
Parses an injection mode string into an InjectionMode.
parse_intent_block
Parses an intent YAML fence block into an IntentDef.
parse_lifecycle ๐Ÿ”’
Parse a lifecycle descriptor string into a Lifecycle.
parse_memory_block
Parses a YAML memory block (fence content) into a MemoryDef.
parse_memory_type ๐Ÿ”’
Parse a memory type name into its corresponding MemoryType.
parse_modifier ๐Ÿ”’
Parses a modifier specification string into a ModifierDef.
parse_policy_block
Parses a policy YAML block from a Markdown fence into a PolicyDef.
parse_policy_rule ๐Ÿ”’
Converts a deserialized PolicyRuleConfig into a validated PolicyRule.
parse_provider_block
Parse a provider fence block from YAML content into a ProviderDef.
parse_provider_type ๐Ÿ”’
Parse a provider identifier string into the corresponding ProviderType.
parse_retention ๐Ÿ”’
Parse a retention specifier string into a Retention value.
parse_trajectory_block
Parse a Markdown fence trajectory YAML block into a TrajectoryDef, resolving the block name from the header or payload.
parse_trigger ๐Ÿ”’
Parses a trigger specifier string into a Trigger.
resolve_block_name ๐Ÿ”’
Resolves the name of a fence block from the optional header name and the optional payload name field. The header name takes precedence when present; if both are provided, a conflict error is returned. If neither is provided, a missing-name error is returned.
validate_adapter_config ๐Ÿ”’
Validates that the adapter configuration specifies a known adapter type.