BoundaryML/baml · error · BridgeError
Not implemented
Error message
Not implemented: {0} What it means
BridgeError::NotImplemented wraps a description of functionality the bridge_cffi layer does not implement yet. The requested operation is recognized but has no implementation on this code path, so the bridge refuses it explicitly rather than failing silently.
Solutions
- Read the wrapped message to identify the unimplemented feature.
- Upgrade the bridge_cffi native library to a version that implements the feature.
- Use an alternative supported API for the same outcome.
- File/track an issue with the BAML project if the feature is required.
Defensive patterns
Strategy: try-catch
Try / catch
try:
result = bridge.operation(...)
except BridgeError as e:
if isinstance(e.__cause__ or e, NotImplementedPath):
fallback_to_supported_api() Prevention
- Pin bridge_cffi and client SDK versions together
- Check feature support notes before using new APIs
- Keep the native library updated
When it happens
Trigger: Invoking a bridge operation or feature flag whose implementation is a stub (e.g. a media/handle operation or runtime feature not yet wired through the CFFI layer).
Common situations: Using a client SDK feature newer than the installed native bridge; calling an operation only supported in a different backend; platform-specific gaps in the prebuilt library.
Related errors
- Platform not supported
- {0}
- BAML library not found. Searched paths
- baml.panics.HostContractViolation
- call_id is already in use by an active call
AI-assisted analysis of BoundaryML/baml@bd85ce9dee (2026-09-12).
Data as JSON: /api/errors/b6b441405dda16ca.
Report an issue: GitHub.
Appendix: source
Thrown at baml_language/crates/bridge_cffi/src/error.rs:34
#[error("Engine lock poisoned")]
LockPoisoned,
#[error("{0}")]
Runtime(#[from] bex_project::RuntimeError),
#[error("CallFunctionArgs.call_target must be set")]
MissingCallTarget,
#[error("type arguments are not supported when invoking a BAML function handle")]
FunctionHandleTypeArgs,
#[error("Function not found: {name}")]
FunctionNotFound { name: String },
#[error("Missing argument '{parameter}' for function '{function}'")]
MissingArgument { function: String, parameter: String },
#[error("Not implemented: {0}")]
NotImplemented(String),
#[error("call_id {0} is already in use by an active call")]
DuplicateCallId(u64),
#[error("call_id must be a nonzero uint64")]
InvalidCallId,
#[error("Internal error: {0}")]
Internal(String),
#[error("{0}")]
Startup(String),
}
View on GitHub (pinned to bd85ce9dee)