mirror of
https://github.com/nextcloud/server.git
synced 2026-02-15 08:48:14 -05:00
23 lines
402 B
PHP
23 lines
402 B
PHP
<?php
|
|
|
|
namespace OCP\LanguageModel\Events;
|
|
|
|
use OCP\LanguageModel\ILanguageModelTask;
|
|
|
|
/**
|
|
* @since 28.0.0
|
|
*/
|
|
class TaskSuccessfulEvent extends AbstractLanguageModelEvent {
|
|
|
|
public function __construct(ILanguageModelTask $task,
|
|
private string $output) {
|
|
parent::__construct($task);
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getErrorMessage(): string {
|
|
return $this->output;
|
|
}
|
|
}
|