l = $l10nFactory->get('lib'); } /** * @inheritDoc * @since 30.0.0 */ public function getName(): string { return $this->l->t('Formalize text'); } /** * @inheritDoc * @since 30.0.0 */ public function getDescription(): string { return $this->l->t('Takes a text and makes it sound more formal'); } /** * @return string * @since 30.0.0 */ public function getId(): string { return self::ID; } /** * @return ShapeDescriptor[] * @since 30.0.0 */ public function getInputShape(): array { return [ 'input' => new ShapeDescriptor( $this->l->t('Input text'), $this->l->t('Write a text that you want the assistant to formalize'), EShapeType::Text ), ]; } /** * @return ShapeDescriptor[] * @since 30.0.0 */ public function getOutputShape(): array { return [ 'output' => new ShapeDescriptor( $this->l->t('Formalized text'), $this->l->t('The formalized text'), EShapeType::Text ), ]; } }