mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
Final localization pass over everything the audit covers, driven by the local qwen3.8:instruct endpoint (thinking disabled) with placeholder- masked, cached, resumable batches: - Python server: comments, docstrings, log/error messages, prompt text - manager-api Java: javadoc, exception messages, Swagger summaries, westernized test fixtures (locale strings, signed-URL examples) - manager-web / manager-mobile: component comments and misc leftovers (functional split regexes such as /[、;;,,]/ left byte-identical) - digital-human: HTML/UI text, JS comments, wake-word defaults aligned with the server canonical English wake words - docs: device-call guide, wakeword and search integration guides Also widens the westernization audit exception to the whole vendored generator bundle and retires the stale per-file exception list.
90 lines
No EOL
3.2 KiB
JSON
90 lines
No EOL
3.2 KiB
JSON
[
|
|
{
|
|
"name": "self_camera_take_photo",
|
|
"description": "Take a photo using the device's camera. This tool captures the current camera frame and returns the image data. You MUST call this tool when user asks to 'take a photo', 'what do you see', 'describe what you see', or similar requests. After getting the photo data, describe what you see in the image. Parameter 'question' is optional, defaults to 'describe objects seen'.",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"type": "string",
|
|
"description": "Question to guide the photo analysis, e.g., 'describe the objects seen'. Can be empty."
|
|
}
|
|
}
|
|
},
|
|
"mockResponse": {
|
|
"success": true,
|
|
"photo_data": "base64_image_data",
|
|
"response": "Please describe what you see based on the returned photo_data"
|
|
}
|
|
},
|
|
{
|
|
"name": "self.get_device_status",
|
|
"description": "Provides the real-time information of the device, including the current status of the audio speaker, screen, battery, network, etc.\nUse this tool for: \n1. Answering questions about current condition (e.g. what is the current volume of the audio speaker?)\n2. As the first step to control the device (e.g. turn up / down the volume of the audio speaker, etc.)",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {}
|
|
},
|
|
"mockResponse": {
|
|
"audio_speaker": {
|
|
"volume": 50,
|
|
"muted": false
|
|
},
|
|
"screen": {
|
|
"brightness": 80,
|
|
"theme": "light"
|
|
},
|
|
"battery": {
|
|
"level": 85,
|
|
"charging": false
|
|
},
|
|
"network": {
|
|
"connected": true,
|
|
"type": "wifi"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "self.audio_speaker.set_volume",
|
|
"description": "Set the volume of the audio speaker. If the current volume is unknown, you must call `self.get_device_status` tool first and then call this tool.",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"volume": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 100
|
|
}
|
|
},
|
|
"required": [
|
|
"volume"
|
|
]
|
|
},
|
|
"mockResponse": {
|
|
"success": true,
|
|
"volume": "${volume}",
|
|
"message": "Volume set to ${volume}"
|
|
}
|
|
},
|
|
{
|
|
"name": "self.screen.set_brightness",
|
|
"description": "Set the brightness of the screen.",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"brightness": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 100
|
|
}
|
|
},
|
|
"required": [
|
|
"brightness"
|
|
]
|
|
},
|
|
"mockResponse": {
|
|
"success": true,
|
|
"brightness": "${brightness}",
|
|
"message": "Brightness set to ${brightness}"
|
|
}
|
|
}
|
|
] |