-
Notifications
You must be signed in to change notification settings - Fork 24
/
functionSignatures.json
153 lines (153 loc) · 8.78 KB
/
functionSignatures.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"_schemaVersion": "1.0.0",
"openAIChat.openAIChat":
{
"inputs":
[
{"name":"systemPrompt","kind":"ordered","type":["string","scalar"]},
{"name":"Tools","kind":"namevalue","type":"openAIFunction"},
{"name":"ModelName","kind":"namevalue","type":"choices=llms.openai.models"},
{"name":"Temperature","kind":"namevalue","type":["numeric","scalar",">=0","<=2"]},
{"name":"TopP","kind":"namevalue","type":["numeric","scalar",">=0","<=1"]},
{"name":"StopSequences","kind":"namevalue","type":["string","vector"]},
{"name":"ResponseFormat","kind":"namevalue","type":[["choices={'text','json'}"],["struct"],["cell"],["string"]]},
{"name":"APIKey","kind":"namevalue","type":["string","scalar"]},
{"name":"PresencePenalty","kind":"namevalue","type":["numeric","scalar","<=2",">=-2"]},
{"name":"FrequencyPenalty","kind":"namevalue","type":["numeric","scalar","<=2",">=-2"]},
{"name":"TimeOut","kind":"namevalue","type":["numeric","scalar","real","positive"]},
{"name":"StreamFun","kind":"namevalue","type":"function_handle"}
],
"outputs":
[
{"name":"this","type":"openAIChat"}
]
},
"openAIChat.generate":
{
"inputs":
[
{"name":"this","kind":"required","type":["openAIChat","scalar"]},
{"name":"messages","kind":"required","type":[["messageHistory","row"],["string","scalar"]]},
{"name":"NumCompletions","kind":"namevalue","type":["numeric","scalar","integer","positive"]},
{"name":"MaxNumTokens","kind":"namevalue","type":["numeric","scalar","positive"]},
{"name":"ToolChoice","kind":"namevalue","type":"choices=[\"none\",\"auto\",this.FunctionNames]"},
{"name":"Seed","kind":"namevalue","type":["numeric","integer","scalar"]},
{"name":"ModelName","kind":"namevalue","type":"choices=llms.openai.models"},
{"name":"Temperature","kind":"namevalue","type":["numeric","scalar",">=0","<=2"]},
{"name":"TopP","kind":"namevalue","type":["numeric","scalar",">=0","<=1"]},
{"name":"StopSequences","kind":"namevalue","type":["string","vector"]},
{"name":"ResponseFormat","kind":"namevalue","type":[["choices={'text','json'}"],["struct"],["cell"],["string"]]},
{"name":"APIKey","kind":"namevalue","type":["string","scalar"]},
{"name":"PresencePenalty","kind":"namevalue","type":["numeric","scalar","<=2",">=-2"]},
{"name":"FrequencyPenalty","kind":"namevalue","type":["numeric","scalar","<=2",">=-2"]},
{"name":"TimeOut","kind":"namevalue","type":["numeric","scalar","real","positive"]},
{"name":"StreamFun","kind":"namevalue","type":"function_handle"}
],
"outputs":
[
{"name":"text","type":"string"},
{"name":"message","type":"struct"},
{"name":"response","type":"matlab.net.http.ResponseMessage"}
]
},
"azureChat.azureChat":
{
"inputs":
[
{"name":"systemPrompt","kind":"ordered","type":["string","scalar"]},
{"name":"Endpoint","kind":"namevalue","type":["string","scalar"]},
{"name":"DeploymentID","kind":"namevalue","type":["string","scalar"]},
{"name":"APIKey","kind":"namevalue","type":["string","scalar"]},
{"name":"Tools","kind":"namevalue","type":"openAIFunction"},
{"name":"APIVersion","kind":"namevalue","type":"choices=llms.azure.apiVersions"},
{"name":"Temperature","kind":"namevalue","type":["numeric","scalar",">=0","<=2"]},
{"name":"TopP","kind":"namevalue","type":["numeric","scalar",">=0","<=1"]},
{"name":"StopSequences","kind":"namevalue","type":["string","vector"]},
{"name":"ResponseFormat","kind":"namevalue","type":"choices={'text','json'}"},
{"name":"PresencePenalty","kind":"namevalue","type":["numeric","scalar","<=2",">=-2"]},
{"name":"FrequencyPenalty","kind":"namevalue","type":["numeric","scalar","<=2",">=-2"]},
{"name":"TimeOut","kind":"namevalue","type":["numeric","scalar","real","positive"]},
{"name":"StreamFun","kind":"namevalue","type":"function_handle"}
],
"outputs":
[
{"name":"this","type":"azureChat"}
]
},
"azureChat.generate":
{
"inputs":
[
{"name":"this","kind":"required","type":["azureChat","scalar"]},
{"name":"messages","kind":"required","type":[["messageHistory","row"],["string","scalar"]]},
{"name":"NumCompletions","kind":"namevalue","type":["numeric","scalar","integer","positive"]},
{"name":"MaxNumTokens","kind":"namevalue","type":["numeric","scalar","positive"]},
{"name":"ToolChoice","kind":"namevalue","type":"choices=[\"none\",\"auto\",this.FunctionNames]"},
{"name":"Seed","kind":"namevalue","type":["numeric","integer","scalar"]},
{"name":"APIKey","kind":"namevalue","type":["string","scalar"]},
{"name":"Temperature","kind":"namevalue","type":["numeric","scalar",">=0","<=2"]},
{"name":"TopP","kind":"namevalue","type":["numeric","scalar",">=0","<=1"]},
{"name":"StopSequences","kind":"namevalue","type":["string","vector"]},
{"name":"ResponseFormat","kind":"namevalue","type":"choices={'text','json'}"},
{"name":"PresencePenalty","kind":"namevalue","type":["numeric","scalar","<=2",">=-2"]},
{"name":"FrequencyPenalty","kind":"namevalue","type":["numeric","scalar","<=2",">=-2"]},
{"name":"TimeOut","kind":"namevalue","type":["numeric","scalar","real","positive"]},
{"name":"StreamFun","kind":"namevalue","type":"function_handle"}
],
"outputs":
[
{"name":"text","type":"string"},
{"name":"message","type":"struct"},
{"name":"response","type":"matlab.net.http.ResponseMessage"}
]
},
"ollamaChat.ollamaChat":
{
"inputs":
[
{"name":"modelName","kind":"positional","type":"choices=ollamaChat.models"},
{"name":"systemPrompt","kind":"ordered","type":["string","scalar"]},
{"name":"Temperature","kind":"namevalue","type":["numeric","scalar",">=0","<=2"]},
{"name":"TopP","kind":"namevalue","type":["numeric","scalar",">=0","<=1"]},
{"name":"MinP","kind":"namevalue","type":["numeric","scalar",">=0","<=1"]},
{"name":"TopK","kind":"namevalue","type":["numeric","scalar","integer",">=1"]},
{"name":"StopSequences","kind":"namevalue","type":["string","vector"]},
{"name":"ResponseFormat","kind":"namevalue","type":"choices={'text','json'}"},
{"name":"TailFreeSamplingZ","kind":"namevalue","type":["numeric","scalar","real"]},
{"name":"TimeOut","kind":"namevalue","type":["numeric","scalar","real","positive"]},
{"name":"StreamFun","kind":"namevalue","type":"function_handle"},
{"name":"Endpoint","kind":"namevalue","type":["string","scalar"]}
],
"outputs":
[
{"name":"this","type":"ollamaChat"}
]
},
"ollamaChat.generate":
{
"inputs":
[
{"name":"this","kind":"required","type":["ollamaChat","scalar"]},
{"name":"messages","kind":"required","type":[["messageHistory","row"],["string","scalar"]]},
{"name":"MaxNumTokens","kind":"namevalue","type":["numeric","scalar","positive"]},
{"name":"Seed","kind":"namevalue","type":["numeric","integer","scalar"]},
{"name":"ModelName","kind":"namevalue","type":"choices=ollamaChat.models"},
{"name":"Temperature","kind":"namevalue","type":["numeric","scalar",">=0","<=2"]},
{"name":"TopP","kind":"namevalue","type":["numeric","scalar",">=0","<=1"]},
{"name":"MinP","kind":"namevalue","type":["numeric","scalar",">=0","<=1"]},
{"name":"TopK","kind":"namevalue","type":["numeric","scalar","integer",">=1"]},
{"name":"StopSequences","kind":"namevalue","type":["string","vector"]},
{"name":"ResponseFormat","kind":"namevalue","type":"choices={'text','json'}"},
{"name":"TailFreeSamplingZ","kind":"namevalue","type":["numeric","scalar","real"]},
{"name":"TimeOut","kind":"namevalue","type":["numeric","scalar","real","positive"]},
{"name":"StreamFun","kind":"namevalue","type":"function_handle"},
{"name":"Endpoint","kind":"namevalue","type":["string","scalar"]}
],
"outputs":
[
{"name":"text","type":"string"},
{"name":"message","type":"struct"},
{"name":"response","type":"matlab.net.http.ResponseMessage"}
]
}
}