|null, deep: bool, status: string, user_message_id: string|null, assistant_message_id: string|null, created_at: string}> * } */ public function toArray($request): array { return [ 'thread_id' => $this->thread_id, 'title' => $this->title, 'client' => $this->client, 'archived_at' => $this->archived_at, 'last_run_at' => $this->last_run_at, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, 'deleted_at' => $this->deleted_at, 'runs' => AgentThreadRunResource::collection($this->whenLoaded('runs')), ]; } }