Skip to content

Commit

Permalink
add warning for stutter
Browse files Browse the repository at this point in the history
  • Loading branch information
the-praxs committed Dec 22, 2024
1 parent 2696ae7 commit d2724f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/v1/integrations/taskweaver.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ This is a basic example of how to use TaskWeaver as a library and observe it wit

Ensure you have configured your project directory in the TaskWeaverApp by following the documentation mentioned in step 2.

<Warning>
When registering the TaskWeaverEventHandler, you should either use the `session.event_emitter.register` method or pass the handler object to the `event_handler` parameter in the `send_message` method. If you use both, the events will be recorded twice, resulting in a "stuttering" effect in the recorded messages.
</Warning>

<CodeGroup>
```python python
import agentops
Expand Down

0 comments on commit d2724f3

Please sign in to comment.