41 lines
775 B
Plaintext
41 lines
775 B
Plaintext
<?php
|
|
|
|
namespace {{ namespace }};
|
|
|
|
use Laravel\Mcp\Request;
|
|
use Laravel\Mcp\Response;
|
|
use Laravel\Mcp\Server\Prompt;
|
|
use Laravel\Mcp\Server\Prompts\Argument;
|
|
|
|
class {{ class }} extends Prompt
|
|
{
|
|
/**
|
|
* The prompt's description.
|
|
*/
|
|
protected string $description = <<<'MARKDOWN'
|
|
A description of what this prompt does.
|
|
MARKDOWN;
|
|
|
|
/**
|
|
* Handle the prompt request.
|
|
*/
|
|
public function handle(Request $request): Response
|
|
{
|
|
//
|
|
|
|
return Response::text('The content generated by the prompt.');
|
|
}
|
|
|
|
/**
|
|
* Get the prompt's arguments.
|
|
*
|
|
* @return array<int, \Laravel\Mcp\Server\Prompts\Argument>
|
|
*/
|
|
public function arguments(): array
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
}
|