1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Prompt.php
См. документацию.
1<?php
2declare(strict_types=1);
3
4namespace Bitrix\Landing\Copilot\Connector\AI;
5
6class Prompt
7{
8 private const DEFAULT_REQUEST_TEMPERATURE = 0.7;
9 private string $code;
10 private string $category;
11 private int $maxTokens;
12 private array $markers;
13 private float $temperature;
14 private array $result;
15
16 public function __construct(string $code)
17 {
18 $this->code = $code;
19 $this->setTemperature(self::DEFAULT_REQUEST_TEMPERATURE);
20 }
21
22 public function getCode(): string
23 {
24 return $this->code;
25 }
26
27 public function setMarkers($markers): self
28 {
29 $this->markers = $markers;
30
31 return $this;
32 }
33
34 public function getMarkers(): array
35 {
36 return $this->markers;
37 }
38
39 public function setTemperature($temperature): self
40 {
41 $this->temperature = $temperature;
42
43 return $this;
44 }
45
46 public function getTemperature(): float
47 {
48 return $this->temperature;
49 }
50}
__construct(string $code)
Определения Prompt.php:16
setTemperature($temperature)
Определения Prompt.php:39
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
Определения options.php:195