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: * The status of a task.
18: *
19: * @see https://modelcontextprotocol.io/specification/2025-11-25/schema#taskstatus
20: */
21: enum TaskStatus: string
22: {
23: /**
24: * Task is executing.
25: */
26: case Working = 'working';
27:
28: /**
29: * Task is paused awaiting client input.
30: */
31: case InputRequired = 'input_required';
32:
33: /**
34: * Task finished successfully.
35: */
36: case Completed = 'completed';
37:
38: /**
39: * Task ended with an error.
40: */
41: case Failed = 'failed';
42:
43: /**
44: * Task was cancelled before completion.
45: */
46: case Cancelled = 'cancelled';
47: }
48: