Expand description
Guest-side helpers for the soma:provider@1.0.0 component world.
Business logic should implement ProviderCore, leaving the tiny
wit-bindgen export adapter in the final component crate. The same core can
then be reused by PyO3 and native-provider adapters.
Modules§
Traits§
- Guest
- Provider
Core - Reusable business-logic boundary shared by component, PyO3, and native provider adapters.
Functions§
- http
- Perform a capability-mediated HTTP request.
- invoke_
json - Decode the canonical JSON envelope, invoke a reusable core, and encode its output for the WIT adapter.
- log
- Emit a bounded structured provider log.
- metric
- Emit a provider metric.
- progress
- Report invocation progress.
- secret
- Resolve a named secret handle declared by the provider.
- state_
get - Read a JSON value from the provider’s declared state namespace.
- state_
put - Write a JSON value into the provider’s declared state namespace.