From d2724f39d984ad0606b1fea78982cdc9e2b5b70b Mon Sep 17 00:00:00 2001 From: Pratyush Shukla Date: Sun, 22 Dec 2024 07:20:11 +0530 Subject: [PATCH] add warning for stutter --- docs/v1/integrations/taskweaver.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/v1/integrations/taskweaver.mdx b/docs/v1/integrations/taskweaver.mdx index 8fea4e4d..97901e0e 100644 --- a/docs/v1/integrations/taskweaver.mdx +++ b/docs/v1/integrations/taskweaver.mdx @@ -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. + + 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. + + ```python python import agentops