-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllm-tool-spec.json
More file actions
61 lines (61 loc) · 1.77 KB
/
llm-tool-spec.json
File metadata and controls
61 lines (61 loc) · 1.77 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
{
"$schema" : "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/JavaAIDev/easy-llm-tools/raw/refs/heads/main/llm-tool-spec.json",
"type": "object",
"title": "LLM Tool Spec",
"description": "Tools for LLMs to use",
"properties": {
"definition": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique id of this tool"
},
"name": {
"type": "string",
"description": "Name of this tool"
},
"description": {
"type": "string",
"description": "Description of this tool"
},
"parameters": {
"description": "Parameters of this tool",
"$ref": "https://json-schema.org/draft/2020-12/schema"
},
"returnType": {
"description": "Return type of this tool",
"$ref": "https://json-schema.org/draft/2020-12/schema"
},
"examples": {
"description": "Examples of using tool",
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"description": "Description of this example",
"type": "string"
},
"parameters": {
"description": "Input parameters",
"type": "object"
},
"returnValue": {
"description": "Return value",
"type": "object"
}
}
}
}
},
"required": ["name", "description"]
},
"configuration": {
"description": "Configuration of this tool",
"$ref": "https://json-schema.org/draft/2020-12/schema"
},
"required": ["definition"]
}
}