File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,18 @@ async def output(
7777 self ,
7878 content : t .Annotated [str , "The content to add to the output buffer." ],
7979 ) -> str :
80- """Adds content to the output buffer."""
80+ """
81+ Appends new content to the task's stateful output buffer.
82+
83+ Use this method when you want to build up a longer or multi-part result
84+ over several steps or tool calls, instead of returning everything at once.
85+ Each call adds the provided `content` string to the existing buffer;
86+ previously saved outputs are never overwritten or cleared by this method.
87+
88+ The return value is a short confirmation message that includes the current
89+ number of saved output entries, which can help you track how much content
90+ has been accumulated so far.
91+ """
8192 self ._outputs .append (content )
8293 return f"Output saved (total outputs: { len (self ._outputs )} )"
8394
You can’t perform that action at this time.
0 commit comments