Skip to content

Commit

Permalink
Update CodeBlockResponseParser hints about empty values (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
Winston-503 authored Dec 24, 2024
1 parent f67cc2b commit bec0acd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion council/llm/llm_function/data/response_hints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ code_blocks:
hints_common: |
- Provide your response in a the following code blocks.
- All keys must be present in the response, even when their values are empty.
- For empty values, include empty quotes ("") rather than leaving them blank.
- For empty values, leave them blank as follows:
```empty_field
```
- Your output outside of code blocks will not be parsed.
4 changes: 3 additions & 1 deletion tests/unit/llm/test_llm_response_parser_response_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ def test_with_hints(self):
template,
"""- Provide your response in a the following code blocks.
- All keys must be present in the response, even when their values are empty.
- For empty values, include empty quotes ("") rather than leaving them blank.
- For empty values, leave them blank as follows:
```empty_field
```
- Your output outside of code blocks will not be parsed.
```reasoning
Expand Down

0 comments on commit bec0acd

Please sign in to comment.