Skip to main content

Crate soma_provider_guest

Crate soma_provider_guest 

Source
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§

soma

Traits§

Guest
ProviderCore
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.