Skip to content

DoneEventPayload

Payload for “done” events — the agent loop completed successfully.

---
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
response: The weather in Paris is 72°F and sunny.
NameTypeDescription
responsestringThe final text response from the LLM
messagesMessage[]The final conversation state including all messages

The following types are composed within DoneEventPayload: