Map<String, dynamic> toJson() => { "tool_outputs": List<dynamic>.from(toolOutputs.map((x) => x)), "run_id": runId, "thread_id": threadId, };