Skip to documentation
Docs navigation
Docs/invoke()
Fleet Memory

invoke()

Run a fleet-aware conversation turn.

What it does

Run a fleet-aware conversation turn.

The operation follows the fleet’s memory mode and agent identity rules when selecting, storing, or transferring memory.

Signature

TypeScript
invoke(userMessage: string): Promise<string>

Parameters

userMessage (string) — The latest user turn to answer and add to the conversation.

Result

The assistant response produced after memory recall.

Example

example.ts
const answer = await worker.invoke("Summarize the refund rule.");