You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{- "// The `cursor` appears in brackets before each browsing display: `[{cursor}]`.
172
-
" }}
173
-
{{- "// Cite information from the tool using the following format:
174
-
" }}
175
-
{{- "// `【{cursor}†L{line_start}(-L{line_end})?】`, for example: `【6†L9-L11】` or `【8†L3】`.
176
-
" }}
177
-
{{- "// Do not quote more than 10 words directly from the tool output.
178
-
" }}
179
-
{{- "// sources=web (default: web)
180
-
" }}
181
-
{{- "namespace browser {
182
-
183
-
" }}
184
-
{{- "// Searches for information related to `query` and displays `topn` results.
185
-
" }}
186
-
{{- "type search = (_: {
187
-
" }}
188
-
{{- "query: string,
189
-
" }}
190
-
{{- "topn?: number, // default: 10
191
-
" }}
192
-
{{- "source?: string,
193
-
" }}
194
-
{{- "}) => any;
195
-
196
-
" }}
197
-
{{- "// Opens the link `id` from the page indicated by `cursor` starting at line number `loc`, showing `num_lines` lines.
198
-
" }}
199
-
{{- "// Valid link ids are displayed with the formatting: `【{id}†.*】`.
200
-
" }}
201
-
{{- "// If `cursor` is not provided, the most recent page is implied.
202
-
" }}
203
-
{{- "// If `id` is a string, it is treated as a fully qualified URL associated with `source`.
204
-
" }}
205
-
{{- "// If `loc` is not provided, the viewport will be positioned at the beginning of the document or centered on the most relevant passage, if available.
206
-
" }}
207
-
{{- "// Use this function without `id` to scroll to a new location of an opened page.
208
-
" }}
209
-
{{- "type open = (_: {
210
-
" }}
211
-
{{- "id?: number | string, // default: -1
212
-
" }}
213
-
{{- "cursor?: number, // default: -1
214
-
" }}
215
-
{{- "loc?: number, // default: -1
216
-
" }}
217
-
{{- "num_lines?: number, // default: -1
218
-
" }}
219
-
{{- "view_source?: boolean, // default: false
220
-
" }}
221
-
{{- "source?: string,
222
-
" }}
223
-
{{- "}) => any;
224
-
225
-
" }}
226
-
{{- "// Finds exact matches of `pattern` in the current page, or the page given by `cursor`.
227
-
" }}
228
-
{{- "type find = (_: {
229
-
" }}
230
-
{{- "pattern: string,
231
-
" }}
232
-
{{- "cursor?: number, // default: -1
233
-
" }}
234
-
{{- "}) => any;
235
-
236
-
" }}
237
-
{{- "} // namespace browser
238
-
239
-
" }}
152
+
{{- "## browser\n\n" }}
153
+
{{- "// Tool for browsing.\n" }}
154
+
{{- "// The `cursor` appears in brackets before each browsing display: `[{cursor}]`.\n" }}
155
+
{{- "// Cite information from the tool using the following format:\n" }}
156
+
{{- "// `【{cursor}†L{line_start}(-L{line_end})?】`, for example: `【6†L9-L11】` or `【8†L3】`.\n" }}
157
+
{{- "// Do not quote more than 10 words directly from the tool output.\n" }}
158
+
{{- "// sources=web (default: web)\n" }}
159
+
{{- "namespace browser {\n\n" }}
160
+
{{- "// Searches for information related to `query` and displays `topn` results.\n" }}
161
+
{{- "type search = (_: {\n" }}
162
+
{{- "query: string,\n" }}
163
+
{{- "topn?: number, // default: 10\n" }}
164
+
{{- "source?: string,\n" }}
165
+
{{- "}) => any;\n\n" }}
166
+
{{- "// Opens the link `id` from the page indicated by `cursor` starting at line number `loc`, showing `num_lines` lines.\n" }}
167
+
{{- "// Valid link ids are displayed with the formatting: `【{id}†.*】`.\n" }}
168
+
{{- "// If `cursor` is not provided, the most recent page is implied.\n" }}
169
+
{{- "// If `id` is a string, it is treated as a fully qualified URL associated with `source`.\n" }}
170
+
{{- "// If `loc` is not provided, the viewport will be positioned at the beginning of the document or centered on the most relevant passage, if available.\n" }}
171
+
{{- "// Use this function without `id` to scroll to a new location of an opened page.\n" }}
{{- "// Finds exact matches of `pattern` in the current page, or the page given by `cursor`.\n" }}
181
+
{{- "type find = (_: {\n" }}
182
+
{{- "pattern: string,\n" }}
183
+
{{- "cursor?: number, // default: -1\n" }}
184
+
{{- "}) => any;\n\n" }}
185
+
{{- "} // namespace browser\n\n" }}
240
186
{%- endif -%}
241
187
242
188
{%- ifpython_tool%}
243
-
{{- "## python
244
-
245
-
" }}
246
-
{{- "Use this tool to execute Python code in your chain of thought. The code will not be shown to the user. This tool should be used for internal reasoning, but not for code that is intended to be visible to the user (e.g. when creating plots, tables, or files).
247
-
248
-
" }}
249
-
{{- "When you send a message containing Python code to python, it will be executed in a stateful Jupyter notebook environment. python will respond with the output of the execution or time out after 120.0 seconds. The drive at '/mnt/data' can be used to save and persist user files. Internet access for this session is UNKNOWN. Depends on the cluster.
250
-
251
-
" }}
189
+
{{- "## python\n\n" }}
190
+
{{- "Use this tool to execute Python code in your chain of thought. The code will not be shown to the user. This tool should be used for internal reasoning, but not for code that is intended to be visible to the user (e.g. when creating plots, tables, or files).\n\n" }}
191
+
{{- "When you send a message containing Python code to python, it will be executed in a stateful Jupyter notebook environment. python will respond with the output of the execution or time out after 120.0 seconds. The drive at '/mnt/data' can be used to save and persist user files. Internet access for this session is UNKNOWN. Depends on the cluster.\n\n" }}
252
192
{%- endif -%}
253
193
{%- endmacro -%}
254
194
@@ -257,23 +197,15 @@
257
197
{%- ifmodel_identityisnotdefined%}
258
198
{%- setmodel_identity = "You are ChatGPT, a large language model trained by OpenAI."%}
{#- We assume max 1 tool call per message, and so we infer the tool call name #}
350
284
{#- in "tool" messages from the most recent assistant tool call name #}
351
285
{%- settool_call = message.tool_calls[0] %}
@@ -354,9 +288,9 @@ Calls to these tools must go to the commentary channel: 'functions'." }}
354
288
{%- endif%}
355
289
{%- ifmessage.contentandmessage.thinking%}
356
290
{{- raise_exception("Cannot pass both content and thinking in an assistant message with tool calls! Put the analysis message in one or the other, but not both.") }}
0 commit comments