Provider Adapters
complete()
Generate one text response from normalized conversation messages and optional system context.
What it does
Generate one text response from normalized conversation messages and optional system context.
Pass the adapter into MemoGrafter configuration so the rest of the memory pipeline remains independent of the provider SDK.
Signature
TypeScript
complete(messages: Message[], system?: string): Promise<string>Parameters
messages (Message[]) — Ordered conversation messages to extract memory from.system? (string) — Optional operation-specific settings.Result
The requested identifier or text value.
Example
example.ts
const text = await llm.complete(messages, systemPrompt);