Skip to content

Commit e749614

Browse files
committed
fix: Update SpeakBody struct to include omitempty for optional fields
1 parent 3773903 commit e749614

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/convoai/req/speak.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ type SpeakBody struct {
1111
// - "INTERRUPT" (default): High priority, interrupt and speak. The agent will terminate the current interaction and speak the message directly.
1212
// - "APPEND": Middle priority, append and speak. The agent will speak the message after the current interaction.
1313
// - "IGNORE": Low priority, speak when idle. If the agent is currently interacting, it will directly ignore and discard the message to be spoken; only when the agent is not interacting will it speak the message.
14-
Priority *string `json:"priority"`
14+
Priority *string `json:"priority,omitempty"`
1515
// Whether to allow the user to speak to interrupt the agent's speech(Optional):
1616
//
1717
// - true (default): Allow.
1818
// - false: Disallow.
19-
Interruptable *bool `json:"interrupt"`
19+
Interruptable *bool `json:"interrupt,omitempty"`
2020
}

0 commit comments

Comments
 (0)