Merge pull request #14 from memohai/feat/skills

feat: skills
This commit is contained in:
Acbox Liu
2026-02-01 15:55:48 +08:00
committed by GitHub
16 changed files with 376 additions and 23 deletions
+44
View File
@@ -2594,6 +2594,20 @@ const docTemplate = `{
}
},
"definitions": {
"chat.AgentSkill": {
"type": "object",
"properties": {
"content": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"chat.ChatRequest": {
"type": "object",
"properties": {
@@ -2632,6 +2646,18 @@ const docTemplate = `{
},
"query": {
"type": "string"
},
"skills": {
"type": "array",
"items": {
"$ref": "#/definitions/chat.AgentSkill"
}
},
"use_skills": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
@@ -2649,6 +2675,12 @@ const docTemplate = `{
},
"provider": {
"type": "string"
},
"skills": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
@@ -2981,6 +3013,12 @@ const docTemplate = `{
"type": "object",
"additionalProperties": true
}
},
"skills": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
@@ -3008,6 +3046,12 @@ const docTemplate = `{
"additionalProperties": true
}
},
"skills": {
"type": "array",
"items": {
"type": "string"
}
},
"timestamp": {
"type": "string"
},
+44
View File
@@ -2585,6 +2585,20 @@
}
},
"definitions": {
"chat.AgentSkill": {
"type": "object",
"properties": {
"content": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"chat.ChatRequest": {
"type": "object",
"properties": {
@@ -2623,6 +2637,18 @@
},
"query": {
"type": "string"
},
"skills": {
"type": "array",
"items": {
"$ref": "#/definitions/chat.AgentSkill"
}
},
"use_skills": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
@@ -2640,6 +2666,12 @@
},
"provider": {
"type": "string"
},
"skills": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
@@ -2972,6 +3004,12 @@
"type": "object",
"additionalProperties": true
}
},
"skills": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
@@ -2999,6 +3037,12 @@
"additionalProperties": true
}
},
"skills": {
"type": "array",
"items": {
"type": "string"
}
},
"timestamp": {
"type": "string"
},
+29
View File
@@ -1,4 +1,13 @@
definitions:
chat.AgentSkill:
properties:
content:
type: string
description:
type: string
name:
type: string
type: object
chat.ChatRequest:
properties:
current_platform:
@@ -25,6 +34,14 @@ definitions:
type: string
query:
type: string
skills:
items:
$ref: '#/definitions/chat.AgentSkill'
type: array
use_skills:
items:
type: string
type: array
type: object
chat.ChatResponse:
properties:
@@ -36,6 +53,10 @@ definitions:
type: string
provider:
type: string
skills:
items:
type: string
type: array
type: object
chat.GatewayMessage:
additionalProperties: true
@@ -251,6 +272,10 @@ definitions:
additionalProperties: true
type: object
type: array
skills:
items:
type: string
type: array
type: object
history.ListResponse:
properties:
@@ -268,6 +293,10 @@ definitions:
additionalProperties: true
type: object
type: array
skills:
items:
type: string
type: array
timestamp:
type: string
user_id: