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

graftByPrompt()

Select fleet memory by prompt and transfer it.

What it does

Select fleet memory by prompt and transfer it.

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

Signature

TypeScript
graftByPrompt(prompt: string, targetAgent: WorkerAgent, options?): Promise<TopicNode[]>

Parameters

prompt (string) — Required input for this operation.
targetAgent (WorkerAgent) — Required input for this operation.
options?

Result

The topic nodes created, selected, or copied by the operation.

Example

example.ts
await conductor.graftByPrompt("billing context", blue);