Skip to content

Commit 6a4a6d1

Browse files
ZishanZishan
authored andcommitted
add openai agent doc
1 parent a5bb336 commit 6a4a6d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/testing/Examples/openai-python-agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ We use the `expect_equals` assertion, which is less strict than `assert_equal`,
195195
```python
196196
expected_response = "I can only help with Python code."
197197
expect_equals(
198-
"I can only help with Python code.", trace.messages(-1)["content"]
198+
expected_response, trace.messages(-1)["content"]
199199
)
200200
```
201201
Another way to do it is to use our `levenshtein()` function which calculate Levenshtein distance. So we assert that the Levenshtein distance between the response and the expected response is smaller than 5.

0 commit comments

Comments
 (0)