Skip to content

Commit e894217

Browse files
committed
More compact
Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent ce80026 commit e894217

1 file changed

Lines changed: 12 additions & 18 deletions

File tree

pkg/runtime/event.go

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,10 @@ type SessionTitleEvent struct {
201201

202202
func SessionTitle(sessionID, title, agentName string) Event {
203203
return &SessionTitleEvent{
204-
Type: "session_title",
205-
SessionID: sessionID,
206-
Title: title,
207-
AgentContext: AgentContext{
208-
AgentName: agentName,
209-
},
204+
Type: "session_title",
205+
SessionID: sessionID,
206+
Title: title,
207+
AgentContext: AgentContext{AgentName: agentName},
210208
}
211209
}
212210

@@ -219,12 +217,10 @@ type SessionSummaryEvent struct {
219217

220218
func SessionSummary(sessionID, summary, agentName string) Event {
221219
return &SessionSummaryEvent{
222-
Type: "session_summary",
223-
SessionID: sessionID,
224-
Summary: summary,
225-
AgentContext: AgentContext{
226-
AgentName: agentName,
227-
},
220+
Type: "session_summary",
221+
SessionID: sessionID,
222+
Summary: summary,
223+
AgentContext: AgentContext{AgentName: agentName},
228224
}
229225
}
230226

@@ -237,12 +233,10 @@ type SessionCompactionEvent struct {
237233

238234
func SessionCompaction(sessionID, status, agentName string) Event {
239235
return &SessionCompactionEvent{
240-
Type: "session_compaction",
241-
SessionID: sessionID,
242-
Status: status,
243-
AgentContext: AgentContext{
244-
AgentName: agentName,
245-
},
236+
Type: "session_compaction",
237+
SessionID: sessionID,
238+
Status: status,
239+
AgentContext: AgentContext{AgentName: agentName},
246240
}
247241
}
248242

0 commit comments

Comments
 (0)