kong--kong
50 行
1.2 KiB
JSON
50 行
1.2 KiB
JSON
{
|
|
"system_instruction": {
|
|
"parts": {
|
|
"text": "You are a helpful lighting system bot. You can turn lights on and off, and you can set the color. Do not perform any other tasks."
|
|
}
|
|
},
|
|
|
|
"tools": [
|
|
{
|
|
"function_declarations": [
|
|
{
|
|
"name": "enable_lights",
|
|
"description": "Turn on the lighting system."
|
|
},
|
|
{
|
|
"name": "set_light_color",
|
|
"description": "Set the light color. Lights must be enabled for this to work.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"rgb_hex": {
|
|
"type": "string",
|
|
"description": "The light color as a 6-digit hex string, e.g. ff0000 for red."
|
|
}
|
|
},
|
|
"required": [
|
|
"rgb_hex"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "stop_lights",
|
|
"description": "Turn off the lighting system."
|
|
}
|
|
]
|
|
}
|
|
],
|
|
|
|
"tool_config": {
|
|
"function_calling_config": {"mode": "auto"}
|
|
},
|
|
|
|
"contents": {
|
|
"role": "user",
|
|
"parts": {
|
|
"text": "Turn on the lights please. Also set them to orange."
|
|
}
|
|
}
|
|
}
|