Skip to main content

Module validation

Module validation 

Source
Expand description

Startup validation for OpenCode agent references.

This module provides validation logic for checking that all opencode/* agent references in configured agent chains are valid (i.e., the provider and model exist in the OpenCode API catalog).

Validation errors include helpful suggestions for typos using Levenshtein distance matching.

Functionsยง

get_opencode_refs
Get all OpenCode agent references from the fallback configuration.
validate_opencode_agents
Validate all OpenCode agent references in the fallback configuration.