-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathkimi_test.json
More file actions
78 lines (78 loc) · 2.38 KB
/
kimi_test.json
File metadata and controls
78 lines (78 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"model": "kimi-k2.5",
"messages": [
{"role": "system", "content": "You are an A2UI generator. Use the provided tools to build UI components."},
{"role": "user", "content": "Create a volume slider with a label and value display"}
],
"tools": [
{
"type": "function",
"function": {
"name": "create_slider",
"description": "Create a slider input component",
"parameters": {
"type": "object",
"properties": {
"id": {"type": "string", "description": "Unique component ID"},
"label": {"type": "string", "description": "Label text"},
"dataPath": {"type": "string", "description": "JSON pointer path e.g. /volume"},
"min": {"type": "number"},
"max": {"type": "number"},
"step": {"type": "number"}
},
"required": ["id", "dataPath", "min", "max"]
}
}
},
{
"type": "function",
"function": {
"name": "create_text",
"description": "Create text/label component",
"parameters": {
"type": "object",
"properties": {
"id": {"type": "string"},
"text": {"type": "string", "description": "Static text"},
"dataPath": {"type": "string", "description": "Dynamic text binding path"},
"style": {"type": "string", "enum": ["h1", "h3", "caption", "body"]}
},
"required": ["id"]
}
}
},
{
"type": "function",
"function": {
"name": "create_row",
"description": "Create horizontal layout container",
"parameters": {
"type": "object",
"properties": {
"id": {"type": "string"},
"children": {"type": "array", "items": {"type": "string"}, "description": "Child component IDs"}
},
"required": ["id", "children"]
}
}
},
{
"type": "function",
"function": {
"name": "set_data",
"description": "Set initial data value",
"parameters": {
"type": "object",
"properties": {
"path": {"type": "string", "description": "JSON pointer path"},
"value": {"type": "number", "description": "Initial value"}
},
"required": ["path", "value"]
}
}
}
],
"temperature": 1,
"max_tokens": 4096,
"stream": false
}