runner->run('get_trip', get_defined_vars(), function () use ($code, $hotelCode): array { $trip = $this->catalog->get(trim($code), $hotelCode); if (null === $trip) { throw new ToolCallException(sprintf('No trip or date with code "%s". Use search_trips to find trip codes.', $code)); } return $trip; }); } }