Re-exports§
pub use crate::chat::ChatFormatter;pub use crate::context::Context;pub use crate::sampler::Sampler;pub use wasi;pub use wstd;
Modules§
Macros§
- anyhow
- Construct an ad-hoc error from a string or existing non-
anyhowerror value. - bail
- Return early with an error.
- ensure
- Return early with an error if a condition is not satisfied.
- format_
err - Construct an ad-hoc error from a string or existing non-
anyhowerror value. - main_
async - main_
sync
Structs§
- App
- Args
- An arguments parser.
- Blob
- Error
- The
Errortype, a wrapper around a dynamic error type. - Model
- Represents a specific model instance, providing access to its metadata and functionality.
- Queue
- Tokenizer
Enums§
Traits§
- Anyhow
Context - Provides the
contextmethod forResult. - Local
Run
- Run
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.
- receive_
blob - Receives an incoming message from the remote user client.
- send
- Sends a message to the remote user client.
- send_
blob - Sends a message to the remote user client.
- set_
return - 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
Subscriptionhandle.
Type Aliases§
- Result
Result<T, Error>