Re-exports§
pub use crate::context::Context;
pub use crate::bindings_app::exports::pie::inferlet::run::Guest as RunSync;
pub use crate::bindings::pie::inferlet::core::Priority;
pub use wasi;
pub use wstd;
Modules§
Macros§
Structs§
- App
- Model
- Represents a specific model instance, providing access to its metadata and functionality.
- Queue
- Represents a command queue for a model instance.
- Server
Traits§
Functions§
- broadcast
- Publishes a message to a topic, broadcasting it to all subscribers.
- debug_
query - Executes a debug command and returns the result as a string.
- get_
all_ models - Get a list of all available model names.
- get_
all_ models_ with_ traits - Get names of models that have all specified traits (e.g. “input_text”, “tokenize”).
- get_
arguments - Retrieves POSIX-style CLI arguments passed to the inferlet from the remote user client.
- get_
auto_ model - get_
instance_ id - Returns a unique identifier for the running instance.
- get_
model - Retrieve a model by its name.
- get_
version - Returns the runtime version string.
- receive
- Receives an incoming message from the remote user client.
- send
- Sends a message to the remote user client.
- store_
delete - Deletes a key-value pair from the store.
- store_
exists - Checks if a key exists in the store.
- store_
get - Retrieves a value from the persistent store for a given key.
- store_
list_ keys - Returns a list of all keys currently in the store.
- store_
set - Sets a value in the persistent store for a given key.
- subscribe
- Subscribes to a topic and returns a
Subscription
handle.
Type Aliases§
- Result
Result<T, Error>