sample_interface.json 994 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. [
  2. {
  3. "name": "lamp",
  4. "description": "A lamp",
  5. "properties": {
  6. "power": {
  7. "type": "boolean",
  8. "description": "Whether the lamp is on or off"
  9. }
  10. },
  11. "methods": {
  12. "TurnOn": {
  13. "description": "Turns the lamp on"
  14. }
  15. }
  16. },
  17. {
  18. "name": "speaker",
  19. "description": "当前 AI 机器人的扬声器",
  20. "properties": {
  21. "volume": {
  22. "type": "number",
  23. "description": "当前扬声器的音量(0-100)"
  24. }
  25. },
  26. "methods": {
  27. "SetVolume": {
  28. "description": "设置当前扬声器的音量",
  29. "parameters": {
  30. "volume": {
  31. "type": "number",
  32. "description": "The volume of the speaker (0-100)"
  33. }
  34. }
  35. }
  36. }
  37. }
  38. ]