mcp初步调试

This commit is contained in:
玄凤科技
2025-03-20 08:59:45 +08:00
parent bd556c33a0
commit 8504c181c0
5 changed files with 228 additions and 4 deletions
@@ -6,7 +6,7 @@ get_time_function_desc = {
"function": {
"name": "get_time",
"description": "获取当前时间、日期、星期几",
"parameters": {}
'parameters': {'type': 'object', 'properties': {}, 'required': []}
}
}
@@ -12,6 +12,7 @@ class ToolType(Enum):
CHANGE_SYS_PROMPT = (3, "修改系统提示词,切换角色性格或职责")
SYSTEM_CTL = (4, "系统控制,影响正常的对话流程,如退出、播放音乐等,需要传递conn参数")
IOT_CTL = (5, "IOT设备控制,需要传递conn参数")
MCP_CLIENT = (6, "MCP客户端")
def __init__(self, code, message):
self.code = code