Introduce schema component
This commit is contained in:
parent
ee0dffe369
commit
6025f890f9
2 changed files with 5419 additions and 0 deletions
32
src/Schema/Enum/LoggingLevel.php
Normal file
32
src/Schema/Enum/LoggingLevel.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the official PHP MCP SDK.
|
||||
*
|
||||
* A collaboration between Symfony and the PHP Foundation.
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Mcp\Schema\Enum;
|
||||
|
||||
/**
|
||||
* The severity of a log message.
|
||||
*
|
||||
* These map to syslog message severities, as specified in RFC-5424:
|
||||
* https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1
|
||||
*
|
||||
* @author Kyrian Obikwelu <koshnawaza@gmail.com>
|
||||
*/
|
||||
enum LoggingLevel: string
|
||||
{
|
||||
case Debug = 'debug';
|
||||
case Info = 'info';
|
||||
case Notice = 'notice';
|
||||
case Warning = 'warning';
|
||||
case Error = 'error';
|
||||
case Critical = 'critical';
|
||||
case Alert = 'alert';
|
||||
case Emergency = 'emergency';
|
||||
}
|
||||
23
src/Schema/Enum/Role.php
Normal file
23
src/Schema/Enum/Role.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the official PHP MCP SDK.
|
||||
*
|
||||
* A collaboration between Symfony and the PHP Foundation.
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Mcp\Schema\Enum;
|
||||
|
||||
/**
|
||||
* The sender or recipient of messages and data in a conversation.
|
||||
*
|
||||
* @author Kyrian Obikwelu <koshnawaza@gmail.com>
|
||||
*/
|
||||
enum Role: string
|
||||
{
|
||||
case User = 'user';
|
||||
case Assistant = 'assistant';
|
||||
}
|
||||
Loading…
Reference in a new issue