Skip to content

Commit 0fbb186

Browse files
committed
feat(agent): new generation_text attribute
1 parent 239cda2 commit 0fbb186

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

agentle/agents/agent_run_output.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ class AgentRunOutput[T_StructuredOutput](BaseModel):
9090
In streaming mode, only available in the final chunk.
9191
"""
9292

93+
generation_text: str = Field(default="")
94+
"""
95+
The text response from the agent.
96+
Returns empty string if execution is suspended or generation is None.
97+
"""
98+
9399
is_suspended: bool = Field(default=False)
94100
"""
95101
Whether the execution is suspended and waiting for external input.

0 commit comments

Comments
 (0)