Commit 302e17e
fix(agent): don't add blocks that contain only punctuation (#469)
Trailing punctuation blocks are of little to no value (imho). This PR
ensures that we don't add those blocks.
From:
```
Here is the image you requested:
(image/png: B1A98152-A422-4B44-8FD9-D7C954E82D2A)
.
```
To:
```
Here is the image you requested:
(image/png: B1A98152-A422-4B44-8FD9-D7C954E82D2A)
```
---------
Co-authored-by: Douglas Reid <doug@steamship.com>1 parent cd17b0e commit 302e17e
2 files changed
Lines changed: 15 additions & 3 deletions
File tree
- src/steamship/agents/functional
- tests/steamship_tests/agents
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
11 | 18 | | |
12 | 19 | | |
13 | 20 | | |
| |||
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
49 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
50 | 62 | | |
51 | 63 | | |
52 | 64 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
0 commit comments