1: <?php
2:
3: declare(strict_types=1);
4:
5: /**
6: * This file is part of the Nexus MCP SDK package.
7: *
8: * (c) 2026 John Paul E. Balandan, CPA <paulbalandan@gmail.com>
9: *
10: * For the full copyright and license information, please view
11: * the LICENSE file that was distributed with this source code.
12: */
13:
14: namespace Nexus\Mcp\Core\Schema\Enum;
15:
16: /**
17: * Indicates the type of a `Result` object, allowing the client to determine how to parse the response.
18: *
19: * complete - the request completed successfully and the result contains the final content.
20: * input_required - the request requires additional input and the result contains an `InputRequiredResult`
21: * object with instructions for the client to provide additional input before retrying the original request.
22: *
23: * @see https://modelcontextprotocol.io/specification/2026-07-28/schema#resulttype
24: */
25: enum ResultType: string
26: {
27: case Complete = 'complete';
28: case InputRequired = 'input_required';
29:
30: /**
31: * Reserved by SEP-2663 for the tasks extension: the request was accepted
32: * as a long-running task and the result carries a task handle.
33: */
34: case Task = 'task';
35: }
36: