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
Copy file name to clipboardExpand all lines: docs/guides/profiles.mdx
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ Profiles can be set with `interpreter --profile name`
10
10
11
11
### Helpful fields
12
12
13
-
`interpreter.user_message_template` allows users to have their message wrapped in a template. This can be helpful steering a LLM to a desired behaviour without needing the user to add extra context to their message.
13
+
`interpreter.user_message_template` allows users to have their message wrapped in a template. This can be helpful steering a language model to a desired behaviour without needing the user to add extra context to their message.
14
14
`interpreter.always_apply_user_message_template` has all user messages to be wrapped in the template. If False, only the last User message will be wrapped.
15
-
`interpreter.code_output_template` wraps the output from the computer after code is run. This can help with nudging the LLM to continue working or to explain outputs.
15
+
`interpreter.code_output_template` wraps the output from the computer after code is run. This can help with nudging the language model to continue working or to explain outputs.
16
+
`interpreter.empty_code_output_template` is the message that is sent to the language model if code execution results in no output.
Copy file name to clipboardExpand all lines: docs/settings/all-settings.mdx
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -686,6 +686,22 @@ interpreter.code_output_template = "Code output: {content}\nWhat code needs to b
686
686
687
687
</CodeGroup>
688
688
689
+
### Empty Code Message Template
690
+
691
+
If the computer does not output anything after code execution, this value will be sent to the language model.
692
+
693
+
<CodeGroup>
694
+
695
+
```python Python
696
+
interpreter.empty_code_output_template ="The code above was executed on my machine. It produced no text output. what's next (if anything, or are we done?)"
697
+
```
698
+
699
+
```python Profile
700
+
interpreter.empty_code_output_template ="The code above was executed on my machine. It produced no text output. what's next?"
701
+
```
702
+
703
+
</CodeGroup>
704
+
689
705
# Computer
690
706
691
707
The `computer` object in `interpreter.computer` is a virtual computer that the AI controls. Its primary interface/function is to execute code and return the output in real-time.
0 commit comments