RunToolOutputModel.fromJson constructor

RunToolOutputModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory RunToolOutputModel.fromJson(Map<String, dynamic> json) => RunToolOutputModel(
  id: json["id"],
  object: json["object"],
  createdAt: json["created_at"],
  assistantId: json["assistant_id"],
  threadId: json["thread_id"],
  status: json["status"],
  startedAt: json["started_at"],
  expiresAt: json["expires_at"],
  cancelledAt: json["cancelled_at"],
  failedAt: json["failed_at"],
  completedAt: json["completed_at"],
  lastError: json["last_error"],
  model: json["model"],
  instructions: json["instructions"],
  tools: List<Tool>.from(json["tools"].map((x) => Tool.fromJson(x))),
  fileIds: List<dynamic>.from(json["file_ids"].map((x) => x)),
  metadata: Metadata.fromJson(json["metadata"]),
);