l->t('Generate Office spreadsheet document'); } /** * @inheritDoc */ #[\Override] public function getDescription(): string { return $this->l->t('Generate an Office spreadsheet document from a prompt'); } /** * @return string */ #[\Override] public function getId(): string { return self::ID; } /** * @return ShapeDescriptor[] */ #[\Override] public function getInputShape(): array { return [ 'text' => new ShapeDescriptor( $this->l->t('Instructions'), $this->l->t('Describe the document you want the assistant to generate'), EShapeType::Text, ), ]; } /** * @return ShapeDescriptor[] */ #[\Override] public function getOutputShape(): array { return [ 'file' => new ShapeDescriptor( $this->l->t('Generated Office document'), $this->l->t('The Office document that was generated from the description'), EShapeType::File, ), ]; } }