mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 09:03:54 +08:00
add:测试页面增加拍照识物功能
This commit is contained in:
@@ -1,4 +1,22 @@
|
||||
[
|
||||
{
|
||||
"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.)",
|
||||
|
||||
Reference in New Issue
Block a user