Skip to content

Commit 766e660

Browse files
Update dreadnode/agent/tools/tasking.py
Co-authored-by: Copilot <[email protected]>
1 parent af58a52 commit 766e660

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

dreadnode/agent/tools/tasking.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)