From 4ab091a9958f6636d3da01b79843c1a992e68510 Mon Sep 17 00:00:00 2001 From: "0xThresh.eth" <0xthresh@protonmail.com> Date: Sun, 29 Dec 2024 16:47:37 -0700 Subject: [PATCH] Add the hidden param to event emitter examples --- docs/features/plugin/tools/index.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/features/plugin/tools/index.mdx b/docs/features/plugin/tools/index.mdx index 39030b5..a73bb11 100644 --- a/docs/features/plugin/tools/index.mdx +++ b/docs/features/plugin/tools/index.mdx @@ -147,7 +147,7 @@ This is used to add statuses to a message while it is performing steps. These ca await __event_emitter__( { "type": "status", # We set the type here - "data": {"description": "Message that shows up in the chat", "done": False}, + "data": {"description": "Message that shows up in the chat", "done": False, "hidden": False}, # Note done is False here indicating we are still emitting statuses } ) @@ -178,8 +178,9 @@ async def test_function( await __event_emitter__( { "type": "status", - "data": {"description": "Completed a task message", "done": True}, + "data": {"description": "Completed a task message", "done": True, "hidden": False}, # Note done is True here indicating we are done emitting statuses + # You can also set "hidden": True if you want to remove the status once the message is returned } )