*/ class ExamplePrompt implements MetadataInterface, PromptGetterInterface { public function get(PromptGet $input): PromptGetResult { $firstName = $input->arguments['first name'] ?? null; return new PromptGetResult( $this->getDescription(), [new PromptGetResultMessages( 'user', \sprintf('Hello %s', $firstName ?? 'World') )] ); } public function getName(): string { return 'Greet'; } public function getDescription(): ?string { return 'Greet a person with a nice message'; } public function getArguments(): array { return [ [ 'name' => 'first name', 'description' => 'The name of the person to greet', 'required' => false, ], ]; } }