Skip to main content

spawn_component_actor

Function spawn_component_actor 

Source
pub fn spawn_component_actor(
    tool_provider: ToolProvider,
    session_provider: Option<SessionProvider>,
    store: Store<HostState>,
    current_consent: Arc<CurrentConsentSink>,
    audit: AuditContext,
) -> ComponentHandle
Expand description

Spawn the component actor task. Owns the Store, the tool-provider guest, and the optional SessionProvider (present iff the component supports act:sessions/session-provider).

Returns a handle for sending requests.