₂₂₂₂₃₃₃₃⅓⅓�W���(��2@�-�0�hv%#�=у�sL'��@��`���7`W&zhaudjnrqs�����q�u}3������~b��LL"�ī��X��s�隑� ����0��� 0�E���?0}f3������B��V��ԩl�bc��d�QƎ�7������� _�wf�-�Fb��R]8SV�⅔¼¾°℃℃∣∣∬∰∮℅⊿∨∪みふにににnŋtsjʒrrdzd巭巭氼氼囍兲兲靐伍叁ㄡㄡㄡшшщъ┞┯..;~& IG金额哦软件管家额VR个款老鹅利润高了令人感慨了kgetg◆★✔▆▆▃▓▒※♪▬℡℡ √☚▆▇▆▃◑☺◆◆费了完【二类费lwefl[regkl±∵≤∑∏∷<<可热卡箍陪客人开票【 LLF LWEFL WLEFL \W;F\;CER]\]\ ER]\GF ]\[ERG]\[P ]\ER;GF;W[RGOL [WR[GFL �;4J��TOڰ�c��y~~e�PlQ��e��ת�~L[ ��i�2w�C��W�4���CH ��5��&�M�=��‡O�&\:Úú "SSn<rçù–´�R�pa$�/E� ************&&&&&&&&&&&&&&^^^^^^^^^^^^%%%%%%%%%% {!��N���! O��`F..>>>>>>>>>>> 0˜S�4 &m�[��� @9��~i8� ����d!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! @@@@@@@@&&&&&&&&&& kgfpok ergjf ?????????????? ???????????? AfterGenerateResultEvent.php000064400000006353152505666440012216 0ustar00 The messages that were sent to the model. */ private array $messages; /** * @var ModelInterface The model that processed the prompt. */ private ModelInterface $model; /** * @var CapabilityEnum|null The capability that was used for generation. */ private ?CapabilityEnum $capability; /** * @var GenerativeAiResult The result from the model. */ private GenerativeAiResult $result; /** * Constructor. * * @since 0.4.0 * * @param list $messages The messages that were sent to the model. * @param ModelInterface $model The model that processed the prompt. * @param CapabilityEnum|null $capability The capability that was used for generation. * @param GenerativeAiResult $result The result from the model. */ public function __construct(array $messages, ModelInterface $model, ?CapabilityEnum $capability, GenerativeAiResult $result) { $this->messages = $messages; $this->model = $model; $this->capability = $capability; $this->result = $result; } /** * Gets the messages that were sent to the model. * * @since 0.4.0 * * @return list The messages. */ public function getMessages(): array { return $this->messages; } /** * Gets the model that processed the prompt. * * @since 0.4.0 * * @return ModelInterface The model. */ public function getModel(): ModelInterface { return $this->model; } /** * Gets the capability that was used for generation. * * @since 0.4.0 * * @return CapabilityEnum|null The capability, or null if not specified. */ public function getCapability(): ?CapabilityEnum { return $this->capability; } /** * Gets the result from the model. * * @since 0.4.0 * * @return GenerativeAiResult The result. */ public function getResult(): GenerativeAiResult { return $this->result; } /** * Performs a deep clone of the event. * * This method ensures that message and result objects are cloned to prevent * modifications to the cloned event from affecting the original. * The model object is not cloned as it is a service object. * * @since 0.4.2 */ public function __clone() { $clonedMessages = []; foreach ($this->messages as $message) { $clonedMessages[] = clone $message; } $this->messages = $clonedMessages; $this->result = clone $this->result; } } BeforeGenerateResultEvent.php000064400000005251152505666440012353 0ustar00 The messages to be sent to the model. */ private array $messages; /** * @var ModelInterface The model that will process the prompt. */ private ModelInterface $model; /** * @var CapabilityEnum|null The capability being used for generation. */ private ?CapabilityEnum $capability; /** * Constructor. * * @since 0.4.0 * * @param list $messages The messages to be sent to the model. * @param ModelInterface $model The model that will process the prompt. * @param CapabilityEnum|null $capability The capability being used for generation. */ public function __construct(array $messages, ModelInterface $model, ?CapabilityEnum $capability) { $this->messages = $messages; $this->model = $model; $this->capability = $capability; } /** * Gets the messages to be sent to the model. * * @since 0.4.0 * * @return list The messages. */ public function getMessages(): array { return $this->messages; } /** * Gets the model that will process the prompt. * * @since 0.4.0 * * @return ModelInterface The model. */ public function getModel(): ModelInterface { return $this->model; } /** * Gets the capability being used for generation. * * @since 0.4.0 * * @return CapabilityEnum|null The capability, or null if not specified. */ public function getCapability(): ?CapabilityEnum { return $this->capability; } /** * Performs a deep clone of the event. * * This method ensures that message objects are cloned to prevent * modifications to the cloned event from affecting the original. * The model object is not cloned as it is a service object. * * @since 0.4.2 */ public function __clone() { $clonedMessages = []; foreach ($this->messages as $message) { $clonedMessages[] = clone $message; } $this->messages = $clonedMessages; } }