mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
feat(web): use generate sdk
This commit is contained in:
+360
@@ -162,6 +162,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Chat with AI",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Chat request",
|
||||
"name": "request",
|
||||
@@ -208,6 +215,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Stream chat with AI",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Chat request",
|
||||
"name": "request",
|
||||
@@ -1136,6 +1150,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "List history records",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Limit",
|
||||
@@ -1171,6 +1192,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Create history record",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "History payload",
|
||||
"name": "payload",
|
||||
@@ -1208,6 +1236,15 @@ const docTemplate = `{
|
||||
"history"
|
||||
],
|
||||
"summary": "Delete all history records",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "No Content"
|
||||
@@ -1235,6 +1272,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Get history record",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "History ID",
|
||||
@@ -1277,6 +1321,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Delete history record",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "History ID",
|
||||
@@ -1317,6 +1368,15 @@ const docTemplate = `{
|
||||
"mcp"
|
||||
],
|
||||
"summary": "List MCP connections",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -1357,6 +1417,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Create MCP connection",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "MCP payload",
|
||||
"name": "payload",
|
||||
@@ -1522,6 +1589,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Get MCP connection",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "MCP ID",
|
||||
@@ -1570,6 +1644,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Update MCP connection",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "MCP ID",
|
||||
@@ -1627,6 +1708,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Delete MCP connection",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "MCP ID",
|
||||
@@ -1674,6 +1762,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Add memory",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Add request",
|
||||
"name": "payload",
|
||||
@@ -1714,6 +1809,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Embed and upsert memory",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Embed upsert request",
|
||||
"name": "payload",
|
||||
@@ -1754,6 +1856,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "List memories",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Run ID",
|
||||
@@ -1795,6 +1904,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Delete memories",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Delete all request",
|
||||
"name": "payload",
|
||||
@@ -1835,6 +1951,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Get memory",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Memory ID",
|
||||
@@ -1871,6 +1994,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Delete memory",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Memory ID",
|
||||
@@ -1909,6 +2039,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Search memories",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Search request",
|
||||
"name": "payload",
|
||||
@@ -1949,6 +2086,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Update memory",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Update request",
|
||||
"name": "payload",
|
||||
@@ -1988,6 +2132,15 @@ const docTemplate = `{
|
||||
"schedule"
|
||||
],
|
||||
"summary": "List schedules",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -2016,6 +2169,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Create schedule",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Schedule payload",
|
||||
"name": "payload",
|
||||
@@ -2056,6 +2216,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Get schedule",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Schedule ID",
|
||||
@@ -2098,6 +2265,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Update schedule",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Schedule ID",
|
||||
@@ -2143,6 +2317,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Delete schedule",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Schedule ID",
|
||||
@@ -2177,6 +2358,15 @@ const docTemplate = `{
|
||||
"settings"
|
||||
],
|
||||
"summary": "Get user settings",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -2205,6 +2395,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Update user settings",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Settings payload",
|
||||
"name": "payload",
|
||||
@@ -2243,6 +2440,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Update user settings",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Settings payload",
|
||||
"name": "payload",
|
||||
@@ -2280,6 +2484,15 @@ const docTemplate = `{
|
||||
"settings"
|
||||
],
|
||||
"summary": "Delete user settings",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "No Content"
|
||||
@@ -2306,6 +2519,15 @@ const docTemplate = `{
|
||||
"subagent"
|
||||
],
|
||||
"summary": "List subagents",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -2334,6 +2556,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Create subagent",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Subagent payload",
|
||||
"name": "payload",
|
||||
@@ -2374,6 +2603,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Get subagent",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -2416,6 +2652,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Update subagent",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -2467,6 +2710,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Delete subagent",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -2508,6 +2758,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Get subagent context",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -2550,6 +2807,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Update subagent context",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -2603,6 +2867,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Get subagent skills",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -2645,6 +2916,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Update subagent skills",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -2696,6 +2974,13 @@ const docTemplate = `{
|
||||
],
|
||||
"summary": "Add subagent skills",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -4744,6 +5029,15 @@ const docTemplate = `{
|
||||
"definitions": {
|
||||
"bots.Bot": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"created_at",
|
||||
"display_name",
|
||||
"id",
|
||||
"is_active",
|
||||
"owner_user_id",
|
||||
"type",
|
||||
"updated_at"
|
||||
],
|
||||
"properties": {
|
||||
"avatar_url": {
|
||||
"type": "string"
|
||||
@@ -4815,6 +5109,9 @@ const docTemplate = `{
|
||||
},
|
||||
"bots.ListBotsResponse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"items"
|
||||
],
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
@@ -5459,6 +5756,16 @@ const docTemplate = `{
|
||||
},
|
||||
"github_com_memohai_memoh_internal_mcp.Connection": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"active",
|
||||
"bot_id",
|
||||
"config",
|
||||
"created_at",
|
||||
"id",
|
||||
"name",
|
||||
"type",
|
||||
"updated_at"
|
||||
],
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
@@ -5489,6 +5796,12 @@ const docTemplate = `{
|
||||
},
|
||||
"handlers.ChannelMeta": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"capabilities",
|
||||
"config_schema",
|
||||
"display_name",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"capabilities": {
|
||||
"$ref": "#/definitions/channel.ChannelCapabilities"
|
||||
@@ -5839,6 +6152,10 @@ const docTemplate = `{
|
||||
},
|
||||
"handlers.LoginRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"password",
|
||||
"username"
|
||||
],
|
||||
"properties": {
|
||||
"password": {
|
||||
"type": "string"
|
||||
@@ -5850,6 +6167,15 @@ const docTemplate = `{
|
||||
},
|
||||
"handlers.LoginResponse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"access_token",
|
||||
"display_name",
|
||||
"expires_at",
|
||||
"role",
|
||||
"token_type",
|
||||
"user_id",
|
||||
"username"
|
||||
],
|
||||
"properties": {
|
||||
"access_token": {
|
||||
"type": "string"
|
||||
@@ -6318,6 +6644,12 @@ const docTemplate = `{
|
||||
},
|
||||
"models.AddRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"llm_provider_id",
|
||||
"model_id",
|
||||
"name",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"dimensions": {
|
||||
"type": "integer"
|
||||
@@ -6366,6 +6698,12 @@ const docTemplate = `{
|
||||
},
|
||||
"models.GetResponse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"llm_provider_id",
|
||||
"model_id",
|
||||
"name",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"dimensions": {
|
||||
"type": "integer"
|
||||
@@ -6406,6 +6744,12 @@ const docTemplate = `{
|
||||
},
|
||||
"models.UpdateRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"llm_provider_id",
|
||||
"model_id",
|
||||
"name",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"dimensions": {
|
||||
"type": "integer"
|
||||
@@ -6486,6 +6830,14 @@ const docTemplate = `{
|
||||
},
|
||||
"providers.GetResponse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"base_url",
|
||||
"client_type",
|
||||
"created_at",
|
||||
"id",
|
||||
"name",
|
||||
"updated_at"
|
||||
],
|
||||
"properties": {
|
||||
"api_key": {
|
||||
"description": "masked in response",
|
||||
@@ -6644,6 +6996,14 @@ const docTemplate = `{
|
||||
},
|
||||
"settings.Settings": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"allow_guest",
|
||||
"chat_model_id",
|
||||
"embedding_model_id",
|
||||
"language",
|
||||
"max_context_load_time",
|
||||
"memory_model_id"
|
||||
],
|
||||
"properties": {
|
||||
"allow_guest": {
|
||||
"type": "boolean"
|
||||
|
||||
@@ -153,6 +153,13 @@
|
||||
],
|
||||
"summary": "Chat with AI",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Chat request",
|
||||
"name": "request",
|
||||
@@ -199,6 +206,13 @@
|
||||
],
|
||||
"summary": "Stream chat with AI",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Chat request",
|
||||
"name": "request",
|
||||
@@ -1127,6 +1141,13 @@
|
||||
],
|
||||
"summary": "List history records",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "Limit",
|
||||
@@ -1162,6 +1183,13 @@
|
||||
],
|
||||
"summary": "Create history record",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "History payload",
|
||||
"name": "payload",
|
||||
@@ -1199,6 +1227,15 @@
|
||||
"history"
|
||||
],
|
||||
"summary": "Delete all history records",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "No Content"
|
||||
@@ -1226,6 +1263,13 @@
|
||||
],
|
||||
"summary": "Get history record",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "History ID",
|
||||
@@ -1268,6 +1312,13 @@
|
||||
],
|
||||
"summary": "Delete history record",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "History ID",
|
||||
@@ -1308,6 +1359,15 @@
|
||||
"mcp"
|
||||
],
|
||||
"summary": "List MCP connections",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -1348,6 +1408,13 @@
|
||||
],
|
||||
"summary": "Create MCP connection",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "MCP payload",
|
||||
"name": "payload",
|
||||
@@ -1513,6 +1580,13 @@
|
||||
],
|
||||
"summary": "Get MCP connection",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "MCP ID",
|
||||
@@ -1561,6 +1635,13 @@
|
||||
],
|
||||
"summary": "Update MCP connection",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "MCP ID",
|
||||
@@ -1618,6 +1699,13 @@
|
||||
],
|
||||
"summary": "Delete MCP connection",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "MCP ID",
|
||||
@@ -1665,6 +1753,13 @@
|
||||
],
|
||||
"summary": "Add memory",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Add request",
|
||||
"name": "payload",
|
||||
@@ -1705,6 +1800,13 @@
|
||||
],
|
||||
"summary": "Embed and upsert memory",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Embed upsert request",
|
||||
"name": "payload",
|
||||
@@ -1745,6 +1847,13 @@
|
||||
],
|
||||
"summary": "List memories",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Run ID",
|
||||
@@ -1786,6 +1895,13 @@
|
||||
],
|
||||
"summary": "Delete memories",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Delete all request",
|
||||
"name": "payload",
|
||||
@@ -1826,6 +1942,13 @@
|
||||
],
|
||||
"summary": "Get memory",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Memory ID",
|
||||
@@ -1862,6 +1985,13 @@
|
||||
],
|
||||
"summary": "Delete memory",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Memory ID",
|
||||
@@ -1900,6 +2030,13 @@
|
||||
],
|
||||
"summary": "Search memories",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Search request",
|
||||
"name": "payload",
|
||||
@@ -1940,6 +2077,13 @@
|
||||
],
|
||||
"summary": "Update memory",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Update request",
|
||||
"name": "payload",
|
||||
@@ -1979,6 +2123,15 @@
|
||||
"schedule"
|
||||
],
|
||||
"summary": "List schedules",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -2007,6 +2160,13 @@
|
||||
],
|
||||
"summary": "Create schedule",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Schedule payload",
|
||||
"name": "payload",
|
||||
@@ -2047,6 +2207,13 @@
|
||||
],
|
||||
"summary": "Get schedule",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Schedule ID",
|
||||
@@ -2089,6 +2256,13 @@
|
||||
],
|
||||
"summary": "Update schedule",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Schedule ID",
|
||||
@@ -2134,6 +2308,13 @@
|
||||
],
|
||||
"summary": "Delete schedule",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Schedule ID",
|
||||
@@ -2168,6 +2349,15 @@
|
||||
"settings"
|
||||
],
|
||||
"summary": "Get user settings",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -2196,6 +2386,13 @@
|
||||
],
|
||||
"summary": "Update user settings",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Settings payload",
|
||||
"name": "payload",
|
||||
@@ -2234,6 +2431,13 @@
|
||||
],
|
||||
"summary": "Update user settings",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Settings payload",
|
||||
"name": "payload",
|
||||
@@ -2271,6 +2475,15 @@
|
||||
"settings"
|
||||
],
|
||||
"summary": "Delete user settings",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "No Content"
|
||||
@@ -2297,6 +2510,15 @@
|
||||
"subagent"
|
||||
],
|
||||
"summary": "List subagents",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
@@ -2325,6 +2547,13 @@
|
||||
],
|
||||
"summary": "Create subagent",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Subagent payload",
|
||||
"name": "payload",
|
||||
@@ -2365,6 +2594,13 @@
|
||||
],
|
||||
"summary": "Get subagent",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -2407,6 +2643,13 @@
|
||||
],
|
||||
"summary": "Update subagent",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -2458,6 +2701,13 @@
|
||||
],
|
||||
"summary": "Delete subagent",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -2499,6 +2749,13 @@
|
||||
],
|
||||
"summary": "Get subagent context",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -2541,6 +2798,13 @@
|
||||
],
|
||||
"summary": "Update subagent context",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -2594,6 +2858,13 @@
|
||||
],
|
||||
"summary": "Get subagent skills",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -2636,6 +2907,13 @@
|
||||
],
|
||||
"summary": "Update subagent skills",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -2687,6 +2965,13 @@
|
||||
],
|
||||
"summary": "Add subagent skills",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Subagent ID",
|
||||
@@ -4735,6 +5020,15 @@
|
||||
"definitions": {
|
||||
"bots.Bot": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"created_at",
|
||||
"display_name",
|
||||
"id",
|
||||
"is_active",
|
||||
"owner_user_id",
|
||||
"type",
|
||||
"updated_at"
|
||||
],
|
||||
"properties": {
|
||||
"avatar_url": {
|
||||
"type": "string"
|
||||
@@ -4806,6 +5100,9 @@
|
||||
},
|
||||
"bots.ListBotsResponse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"items"
|
||||
],
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
@@ -5450,6 +5747,16 @@
|
||||
},
|
||||
"github_com_memohai_memoh_internal_mcp.Connection": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"active",
|
||||
"bot_id",
|
||||
"config",
|
||||
"created_at",
|
||||
"id",
|
||||
"name",
|
||||
"type",
|
||||
"updated_at"
|
||||
],
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
@@ -5480,6 +5787,12 @@
|
||||
},
|
||||
"handlers.ChannelMeta": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"capabilities",
|
||||
"config_schema",
|
||||
"display_name",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"capabilities": {
|
||||
"$ref": "#/definitions/channel.ChannelCapabilities"
|
||||
@@ -5830,6 +6143,10 @@
|
||||
},
|
||||
"handlers.LoginRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"password",
|
||||
"username"
|
||||
],
|
||||
"properties": {
|
||||
"password": {
|
||||
"type": "string"
|
||||
@@ -5841,6 +6158,15 @@
|
||||
},
|
||||
"handlers.LoginResponse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"access_token",
|
||||
"display_name",
|
||||
"expires_at",
|
||||
"role",
|
||||
"token_type",
|
||||
"user_id",
|
||||
"username"
|
||||
],
|
||||
"properties": {
|
||||
"access_token": {
|
||||
"type": "string"
|
||||
@@ -6309,6 +6635,12 @@
|
||||
},
|
||||
"models.AddRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"llm_provider_id",
|
||||
"model_id",
|
||||
"name",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"dimensions": {
|
||||
"type": "integer"
|
||||
@@ -6357,6 +6689,12 @@
|
||||
},
|
||||
"models.GetResponse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"llm_provider_id",
|
||||
"model_id",
|
||||
"name",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"dimensions": {
|
||||
"type": "integer"
|
||||
@@ -6397,6 +6735,12 @@
|
||||
},
|
||||
"models.UpdateRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"llm_provider_id",
|
||||
"model_id",
|
||||
"name",
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"dimensions": {
|
||||
"type": "integer"
|
||||
@@ -6477,6 +6821,14 @@
|
||||
},
|
||||
"providers.GetResponse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"base_url",
|
||||
"client_type",
|
||||
"created_at",
|
||||
"id",
|
||||
"name",
|
||||
"updated_at"
|
||||
],
|
||||
"properties": {
|
||||
"api_key": {
|
||||
"description": "masked in response",
|
||||
@@ -6635,6 +6987,14 @@
|
||||
},
|
||||
"settings.Settings": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"allow_guest",
|
||||
"chat_model_id",
|
||||
"embedding_model_id",
|
||||
"language",
|
||||
"max_context_load_time",
|
||||
"memory_model_id"
|
||||
],
|
||||
"properties": {
|
||||
"allow_guest": {
|
||||
"type": "boolean"
|
||||
|
||||
@@ -20,6 +20,14 @@ definitions:
|
||||
type: string
|
||||
updated_at:
|
||||
type: string
|
||||
required:
|
||||
- created_at
|
||||
- display_name
|
||||
- id
|
||||
- is_active
|
||||
- owner_user_id
|
||||
- type
|
||||
- updated_at
|
||||
type: object
|
||||
bots.BotMember:
|
||||
properties:
|
||||
@@ -52,6 +60,8 @@ definitions:
|
||||
items:
|
||||
$ref: '#/definitions/bots.Bot'
|
||||
type: array
|
||||
required:
|
||||
- items
|
||||
type: object
|
||||
bots.ListMembersResponse:
|
||||
properties:
|
||||
@@ -502,6 +512,15 @@ definitions:
|
||||
type: string
|
||||
updated_at:
|
||||
type: string
|
||||
required:
|
||||
- active
|
||||
- bot_id
|
||||
- config
|
||||
- created_at
|
||||
- id
|
||||
- name
|
||||
- type
|
||||
- updated_at
|
||||
type: object
|
||||
handlers.ChannelMeta:
|
||||
properties:
|
||||
@@ -519,6 +538,11 @@ definitions:
|
||||
type: string
|
||||
user_config_schema:
|
||||
$ref: '#/definitions/channel.ConfigSchema'
|
||||
required:
|
||||
- capabilities
|
||||
- config_schema
|
||||
- display_name
|
||||
- type
|
||||
type: object
|
||||
handlers.CreateContainerRequest:
|
||||
properties:
|
||||
@@ -735,6 +759,9 @@ definitions:
|
||||
type: string
|
||||
username:
|
||||
type: string
|
||||
required:
|
||||
- password
|
||||
- username
|
||||
type: object
|
||||
handlers.LoginResponse:
|
||||
properties:
|
||||
@@ -752,6 +779,14 @@ definitions:
|
||||
type: string
|
||||
username:
|
||||
type: string
|
||||
required:
|
||||
- access_token
|
||||
- display_name
|
||||
- expires_at
|
||||
- role
|
||||
- token_type
|
||||
- user_id
|
||||
- username
|
||||
type: object
|
||||
handlers.MCPStdioRequest:
|
||||
properties:
|
||||
@@ -1062,6 +1097,11 @@ definitions:
|
||||
type: string
|
||||
type:
|
||||
$ref: '#/definitions/models.ModelType'
|
||||
required:
|
||||
- llm_provider_id
|
||||
- model_id
|
||||
- name
|
||||
- type
|
||||
type: object
|
||||
models.AddResponse:
|
||||
properties:
|
||||
@@ -1093,6 +1133,11 @@ definitions:
|
||||
type: string
|
||||
type:
|
||||
$ref: '#/definitions/models.ModelType'
|
||||
required:
|
||||
- llm_provider_id
|
||||
- model_id
|
||||
- name
|
||||
- type
|
||||
type: object
|
||||
models.ModelType:
|
||||
enum:
|
||||
@@ -1120,6 +1165,11 @@ definitions:
|
||||
type: string
|
||||
type:
|
||||
$ref: '#/definitions/models.ModelType'
|
||||
required:
|
||||
- llm_provider_id
|
||||
- model_id
|
||||
- name
|
||||
- type
|
||||
type: object
|
||||
providers.ClientType:
|
||||
enum:
|
||||
@@ -1178,6 +1228,13 @@ definitions:
|
||||
type: string
|
||||
updated_at:
|
||||
type: string
|
||||
required:
|
||||
- base_url
|
||||
- client_type
|
||||
- created_at
|
||||
- id
|
||||
- name
|
||||
- updated_at
|
||||
type: object
|
||||
providers.UpdateRequest:
|
||||
properties:
|
||||
@@ -1276,6 +1333,13 @@ definitions:
|
||||
type: integer
|
||||
memory_model_id:
|
||||
type: string
|
||||
required:
|
||||
- allow_guest
|
||||
- chat_model_id
|
||||
- embedding_model_id
|
||||
- language
|
||||
- max_context_load_time
|
||||
- memory_model_id
|
||||
type: object
|
||||
settings.UpsertRequest:
|
||||
properties:
|
||||
@@ -1572,6 +1636,11 @@ paths:
|
||||
description: Send a chat message and get a response. The system will automatically
|
||||
select an appropriate chat model from the database.
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Chat request
|
||||
in: body
|
||||
name: request
|
||||
@@ -1603,6 +1672,11 @@ paths:
|
||||
description: Send a chat message and get a streaming response. The system will
|
||||
automatically select an appropriate chat model from the database.
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Chat request
|
||||
in: body
|
||||
name: request
|
||||
@@ -2227,6 +2301,12 @@ paths:
|
||||
/bots/{bot_id}/history:
|
||||
delete:
|
||||
description: Delete all history records for current user
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"204":
|
||||
description: No Content
|
||||
@@ -2244,6 +2324,11 @@ paths:
|
||||
get:
|
||||
description: List history records for current user
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Limit
|
||||
in: query
|
||||
name: limit
|
||||
@@ -2267,6 +2352,11 @@ paths:
|
||||
post:
|
||||
description: Create a history record for current user
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: History payload
|
||||
in: body
|
||||
name: payload
|
||||
@@ -2293,6 +2383,11 @@ paths:
|
||||
delete:
|
||||
description: Delete a history record by ID (must belong to current user)
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: History ID
|
||||
in: path
|
||||
name: id
|
||||
@@ -2319,6 +2414,11 @@ paths:
|
||||
get:
|
||||
description: Get a history record by ID (must belong to current user)
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: History ID
|
||||
in: path
|
||||
name: id
|
||||
@@ -2347,6 +2447,12 @@ paths:
|
||||
/bots/{bot_id}/mcp:
|
||||
get:
|
||||
description: List MCP connections for a bot
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
@@ -2374,6 +2480,11 @@ paths:
|
||||
post:
|
||||
description: Create a MCP connection for a bot
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: MCP payload
|
||||
in: body
|
||||
name: payload
|
||||
@@ -2484,6 +2595,11 @@ paths:
|
||||
delete:
|
||||
description: Delete a MCP connection by ID
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: MCP ID
|
||||
in: path
|
||||
name: id
|
||||
@@ -2514,6 +2630,11 @@ paths:
|
||||
get:
|
||||
description: Get a MCP connection by ID
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: MCP ID
|
||||
in: path
|
||||
name: id
|
||||
@@ -2546,6 +2667,11 @@ paths:
|
||||
put:
|
||||
description: Update a MCP connection by ID
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: MCP ID
|
||||
in: path
|
||||
name: id
|
||||
@@ -2586,6 +2712,11 @@ paths:
|
||||
description: 'Add memory for a user via memory. Auth: Bearer JWT determines
|
||||
user_id (sub or user_id).'
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Add request
|
||||
in: body
|
||||
name: payload
|
||||
@@ -2613,6 +2744,11 @@ paths:
|
||||
description: 'Embed text or multimodal input and upsert into memory store. Auth:
|
||||
Bearer JWT determines user_id (sub or user_id).'
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Embed upsert request
|
||||
in: body
|
||||
name: payload
|
||||
@@ -2640,6 +2776,11 @@ paths:
|
||||
description: 'Delete all memories for a user via memory. Auth: Bearer JWT determines
|
||||
user_id (sub or user_id).'
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Delete all request
|
||||
in: body
|
||||
name: payload
|
||||
@@ -2666,6 +2807,11 @@ paths:
|
||||
description: 'List memories for a user via memory. Auth: Bearer JWT determines
|
||||
user_id (sub or user_id).'
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Run ID
|
||||
in: query
|
||||
name: run_id
|
||||
@@ -2695,6 +2841,11 @@ paths:
|
||||
description: 'Delete a memory by ID via memory. Auth: Bearer JWT determines
|
||||
user_id (sub or user_id).'
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Memory ID
|
||||
in: path
|
||||
name: memoryId
|
||||
@@ -2720,6 +2871,11 @@ paths:
|
||||
description: 'Get a memory by ID via memory. Auth: Bearer JWT determines user_id
|
||||
(sub or user_id).'
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Memory ID
|
||||
in: path
|
||||
name: memoryId
|
||||
@@ -2746,6 +2902,11 @@ paths:
|
||||
description: 'Search memories for a user via memory. Auth: Bearer JWT determines
|
||||
user_id (sub or user_id).'
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Search request
|
||||
in: body
|
||||
name: payload
|
||||
@@ -2773,6 +2934,11 @@ paths:
|
||||
description: 'Update a memory by ID via memory. Auth: Bearer JWT determines
|
||||
user_id (sub or user_id).'
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Update request
|
||||
in: body
|
||||
name: payload
|
||||
@@ -2798,6 +2964,12 @@ paths:
|
||||
/bots/{bot_id}/schedule:
|
||||
get:
|
||||
description: List schedules for current user
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
@@ -2817,6 +2989,11 @@ paths:
|
||||
post:
|
||||
description: Create a schedule for current user
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Schedule payload
|
||||
in: body
|
||||
name: payload
|
||||
@@ -2843,6 +3020,11 @@ paths:
|
||||
delete:
|
||||
description: Delete a schedule by ID
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Schedule ID
|
||||
in: path
|
||||
name: id
|
||||
@@ -2865,6 +3047,11 @@ paths:
|
||||
get:
|
||||
description: Get a schedule by ID
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Schedule ID
|
||||
in: path
|
||||
name: id
|
||||
@@ -2893,6 +3080,11 @@ paths:
|
||||
put:
|
||||
description: Update a schedule by ID
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Schedule ID
|
||||
in: path
|
||||
name: id
|
||||
@@ -2923,6 +3115,12 @@ paths:
|
||||
/bots/{bot_id}/settings:
|
||||
delete:
|
||||
description: Remove agent settings for current user
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"204":
|
||||
description: No Content
|
||||
@@ -2939,6 +3137,12 @@ paths:
|
||||
- settings
|
||||
get:
|
||||
description: Get agent settings for current user
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
@@ -2958,6 +3162,11 @@ paths:
|
||||
post:
|
||||
description: Update or create agent settings for current user
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Settings payload
|
||||
in: body
|
||||
name: payload
|
||||
@@ -2983,6 +3192,11 @@ paths:
|
||||
put:
|
||||
description: Update or create agent settings for current user
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Settings payload
|
||||
in: body
|
||||
name: payload
|
||||
@@ -3008,6 +3222,12 @@ paths:
|
||||
/bots/{bot_id}/subagents:
|
||||
get:
|
||||
description: List subagents for current user
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
@@ -3027,6 +3247,11 @@ paths:
|
||||
post:
|
||||
description: Create a subagent for current user
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Subagent payload
|
||||
in: body
|
||||
name: payload
|
||||
@@ -3053,6 +3278,11 @@ paths:
|
||||
delete:
|
||||
description: Delete a subagent by ID
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Subagent ID
|
||||
in: path
|
||||
name: id
|
||||
@@ -3079,6 +3309,11 @@ paths:
|
||||
get:
|
||||
description: Get a subagent by ID
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Subagent ID
|
||||
in: path
|
||||
name: id
|
||||
@@ -3107,6 +3342,11 @@ paths:
|
||||
put:
|
||||
description: Update a subagent by ID
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Subagent ID
|
||||
in: path
|
||||
name: id
|
||||
@@ -3142,6 +3382,11 @@ paths:
|
||||
get:
|
||||
description: Get a subagent's message context
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Subagent ID
|
||||
in: path
|
||||
name: id
|
||||
@@ -3170,6 +3415,11 @@ paths:
|
||||
put:
|
||||
description: Update a subagent's message context
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Subagent ID
|
||||
in: path
|
||||
name: id
|
||||
@@ -3205,6 +3455,11 @@ paths:
|
||||
get:
|
||||
description: Get a subagent's skills
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Subagent ID
|
||||
in: path
|
||||
name: id
|
||||
@@ -3233,6 +3488,11 @@ paths:
|
||||
post:
|
||||
description: Add skills to a subagent
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Subagent ID
|
||||
in: path
|
||||
name: id
|
||||
@@ -3267,6 +3527,11 @@ paths:
|
||||
put:
|
||||
description: Replace a subagent's skills
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Subagent ID
|
||||
in: path
|
||||
name: id
|
||||
|
||||
Reference in New Issue
Block a user