InvokeFunctionResponse

Response payload for a Function endpoint.

Definition

TypeScript
interface InvokeFunctionResponse {
  ok: boolean;
  result: unknown;
  error: string | null;
  durationMs: number;
}

Fields

FieldTypeNotes
okbooleanrequired — True if the invocation completed without error.
resultunknownrequired — Function return value; serialized as JSON. Null when ok is false.
errorstring | nullrequired — Error message when ok is false; null otherwise.
durationMsnumberrequired — Wall-clock duration of the invocation in milliseconds.