Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .changeset/rename-custom-event-to-debug-message.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@livekit/protocol": patch
---

agent_session: rename `CustomEvent` → `DebugMessage`; drop `type` field, keep only `payload`

Renames the agent-session event added in #1588 before any consumer ships it. The
message is repositioned as an internal debug/trace channel surfaced only to the
debugger/recorder, not to user code, so the `type` discriminator was unnecessary
— callers just emit a JSON `payload`.

Wire-level: `AgentSessionEvent.custom_event` (field 21) → `AgentSessionEvent.debug_message`
(same field number 21, same type slot, no schema-compat concerns since nothing
has been built against it yet downstream).
64 changes: 28 additions & 36 deletions livekit/agent/livekit_agent_session.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions protobufs/agent/livekit_agent_session.proto
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ message AgentSessionUsage {
repeated ModelUsage model_usage = 1;
}

// Application-defined event carried over the remote session wire.
message CustomEvent {
string type = 1;
google.protobuf.Struct payload = 2;
// Debug/trace payload carried over the remote session wire.
// Internal: surfaced only to the debugger/recorder, not to user code.
message DebugMessage {
google.protobuf.Struct payload = 1;
Comment thread
toubatbrian marked this conversation as resolved.
}

message AgentSessionEvent {
Expand Down Expand Up @@ -262,7 +262,7 @@ message AgentSessionEvent {
AmdPrediction amd_prediction = 18;
EotPrediction eot_prediction = 19;
FunctionToolsStarted function_tools_started = 20;
CustomEvent custom_event = 21;
DebugMessage debug_message = 21;
}
}

Expand Down