Skip to content

Commit b8be62b

Browse files
committed
refactor: Rename ParametersStructData to FixedParams and update related references for improved clarity
1 parent 4fe8321 commit b8be62b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/convoai/service/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (s *Service) RunWithCustomTTS(ttsVendor req.TTSVendor, ttsParam req.TTSVend
127127
Language: "zh-CN",
128128
},
129129
Parameters: &req.Parameters{
130-
FixedParams: &req.ParametersStructData{
130+
FixedParams: &req.FixedParams{
131131
SilenceConfig: &req.SilenceConfig{
132132
TimeoutMs: agoraUtils.Ptr(1200),
133133
Action: agoraUtils.Ptr("speak"),

services/convoai/req/join.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,10 @@ type TurnDetectionBody struct {
416416
InterruptMode string `json:"interrupt_mode,omitempty"`
417417
}
418418

419-
// @brief Structured data for parameters
419+
// @brief Fixed parameters
420420
//
421421
// @since v0.11.0
422-
type ParametersStructData struct {
422+
type FixedParams struct {
423423
// Silence configuration for the agent
424424
SilenceConfig *SilenceConfig `json:"silence_config,omitempty"`
425425
}
@@ -464,7 +464,7 @@ type Parameters struct {
464464
// Extra parameters for flexible key-value pairs
465465
ExtraParams map[string]any `json:"-"`
466466
// Fixed parameters for type-safe parameters
467-
FixedParams *ParametersStructData `json:"-"`
467+
FixedParams *FixedParams `json:"-"`
468468
}
469469

470470
// MarshalJSON implements custom JSON marshaling

0 commit comments

Comments
 (0)