DoneEventPayload
Payload for “done” events — the agent loop completed successfully.
Class Diagram
Section titled “Class Diagram”---
title: DoneEventPayload
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class DoneEventPayload {
+string response
+Message[] messages
}
class Message {
+string role
+ContentPart[] parts
+dictionary metadata
+toTextContent() unknown [async-capable]
+text() string [async-capable]
}
DoneEventPayload *-- Message
Yaml Example
Section titled “Yaml Example”response: The weather in Paris is 72°F and sunny.Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| response | string | The final text response from the LLM |
| messages | Message[] | The final conversation state including all messages |
Composed Types
Section titled “Composed Types”The following types are composed within DoneEventPayload: