Skip to main content

AxHostCallable

Type Alias AxHostCallable 

Source
pub type AxHostCallable = Arc<dyn Fn(Value) -> AxResult<Value> + Send + Sync + 'static>;
Expand description

A host callable the agent runtime can expose to actor code (e.g. the built-in llmQuery). JSON-typed both ways so it crosses the runtime boundary cleanly; Send + Sync so a concrete runtime may store it.

Aliased Typeยง

pub struct AxHostCallable { /* private fields */ }