record method

  1. @override
Future<void> record(
  1. LlmOptions options,
  2. String conversationId
)
override

Records the conversation id a successful call produced, so a later call of the same session can resume it. A no-op for read-only strategies (AgentSdkQuestResume).

Implementation

@override
Future<void> record(LlmOptions options, String conversationId) async {
  final key = options.sessionId;
  if (key == null) return;
  await store.put(key, conversationId);
}