Map<String, dynamic> toJson() => { "metadata": metadata.toJson(), "thread_id": threadId, "run_id" : runId };