gigachat::ROLES)){ $history[] = $message_data; } } try { $result = ['output' => $this->gigachat->get_response($input['input'], $history)]; } catch (Exception $e) { throw new \Exception('Error getting GigaChat service response'); } return $result; } public function getExpectedRuntime(): int { return 60; } public function getInputShapeDefaults(): array { return []; } public function getOptionalInputShape(): array { return []; } public function getOptionalInputShapeDefaults(): array { return []; } public function getOptionalOutputShape(): array { return []; } public function getInputShapeEnumValues(): array { return []; } public function getOptionalInputShapeEnumValues(): array { return []; } public function getOutputShapeEnumValues(): array { return []; } public function getOptionalOutputShapeEnumValues(): array { return []; } }