-
Notifications
You must be signed in to change notification settings - Fork 4
/
book_db_function_calling.aiconfig.json
87 lines (87 loc) · 2.53 KB
/
book_db_function_calling.aiconfig.json
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
79
80
81
82
83
84
85
86
87
{
"name": "Book Finder",
"description": "Use OpenAI function calling to help recommend books",
"schema_version": "latest",
"metadata": {},
"prompts": [
{
"name": "user_query_to_function_call",
"input": "{{user_query}}",
"metadata": {
"model": {
"name": "gpt-3.5-turbo",
"settings": {
"model": "gpt-3.5-turbo",
"functions": [
{
"name": "list",
"description": "list queries books by genre, and returns a list of names of books",
"parameters": {
"type": "object",
"properties": {
"genre": {
"type": "string",
"enum": [
"mystery",
"nonfiction",
"memoir",
"romance",
"historical"
]
}
}
}
},
{
"name": "search",
"description": "search queries books and returns a list",
"parameters": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
}
},
{
"name": "get",
"description": "get returns a book's detailed information for a book.",
"parameters": {
"type": "object",
"properties": {
"book": {
"type": "string"
}
}
}
}
],
"system_prompt": {
"role": "system",
"content": "Please use our book database, which you can access using functions to answer the following questions."
}
}
},
"parameters": {},
"remember_chat_context": false
}
},
{
"name": "function_output_to_text_response",
"input": "Question: {{user_query}}\n\nData: {{function_output_as_text}}\n\n",
"metadata": {
"model": {
"name": "gpt-3.5-turbo",
"settings": {
"model": "gpt-3.5-turbo",
"temperature": 0
}
},
"parameters": {},
"remember_chat_context": false
}
}
],
"$schema": "https://json.schemastore.org/aiconfig-1.0"
}