Skip to content

Commit b1c0810

Browse files
committed
empty code output template docs
1 parent d7769f7 commit b1c0810

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

docs/guides/profiles.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Profiles can be set with `interpreter --profile name`
1010

1111
### Helpful fields
1212

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.
1414
`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.

docs/settings/all-settings.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,22 @@ interpreter.code_output_template = "Code output: {content}\nWhat code needs to b
686686

687687
</CodeGroup>
688688

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+
689705
# Computer
690706

691707
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

Comments
 (0)