@@ -137,10 +137,22 @@ func (client *Client) CreateAppAgentTemplateWithContext(ctx context.Context, tmp
137137 request .AgentSilenceConfigShrink = openapiutil .ArrayToStringWithSpecifiedStyle (tmpReq .AgentSilenceConfig , dara .String ("AgentSilenceConfig" ), dara .String ("json" ))
138138 }
139139
140+ if ! dara .IsNil (tmpReq .AmbientSoundConfig ) {
141+ request .AmbientSoundConfigShrink = openapiutil .ArrayToStringWithSpecifiedStyle (tmpReq .AmbientSoundConfig , dara .String ("AmbientSoundConfig" ), dara .String ("json" ))
142+ }
143+
140144 if ! dara .IsNil (tmpReq .AsrConfig ) {
141145 request .AsrConfigShrink = openapiutil .ArrayToStringWithSpecifiedStyle (tmpReq .AsrConfig , dara .String ("AsrConfig" ), dara .String ("json" ))
142146 }
143147
148+ if ! dara .IsNil (tmpReq .BackChannelConfig ) {
149+ request .BackChannelConfigShrink = openapiutil .ArrayToStringWithSpecifiedStyle (tmpReq .BackChannelConfig , dara .String ("BackChannelConfig" ), dara .String ("json" ))
150+ }
151+
152+ if ! dara .IsNil (tmpReq .InterruptConfig ) {
153+ request .InterruptConfigShrink = openapiutil .ArrayToStringWithSpecifiedStyle (tmpReq .InterruptConfig , dara .String ("InterruptConfig" ), dara .String ("json" ))
154+ }
155+
144156 if ! dara .IsNil (tmpReq .LlmConfig ) {
145157 request .LlmConfigShrink = openapiutil .ArrayToStringWithSpecifiedStyle (tmpReq .LlmConfig , dara .String ("LlmConfig" ), dara .String ("json" ))
146158 }
@@ -154,6 +166,10 @@ func (client *Client) CreateAppAgentTemplateWithContext(ctx context.Context, tmp
154166 query ["AgentSilenceConfig" ] = request .AgentSilenceConfigShrink
155167 }
156168
169+ if ! dara .IsNil (request .AmbientSoundConfigShrink ) {
170+ query ["AmbientSoundConfig" ] = request .AmbientSoundConfigShrink
171+ }
172+
157173 if ! dara .IsNil (request .AppId ) {
158174 query ["AppId" ] = request .AppId
159175 }
@@ -162,6 +178,10 @@ func (client *Client) CreateAppAgentTemplateWithContext(ctx context.Context, tmp
162178 query ["AsrConfig" ] = request .AsrConfigShrink
163179 }
164180
181+ if ! dara .IsNil (request .BackChannelConfigShrink ) {
182+ query ["BackChannelConfig" ] = request .BackChannelConfigShrink
183+ }
184+
165185 if ! dara .IsNil (request .ChatMode ) {
166186 query ["ChatMode" ] = request .ChatMode
167187 }
@@ -170,6 +190,10 @@ func (client *Client) CreateAppAgentTemplateWithContext(ctx context.Context, tmp
170190 query ["Greeting" ] = request .Greeting
171191 }
172192
193+ if ! dara .IsNil (request .InterruptConfigShrink ) {
194+ query ["InterruptConfig" ] = request .InterruptConfigShrink
195+ }
196+
173197 if ! dara .IsNil (request .InterruptMode ) {
174198 query ["InterruptMode" ] = request .InterruptMode
175199 }
@@ -4441,10 +4465,22 @@ func (client *Client) ModifyAppAgentTemplateWithContext(ctx context.Context, tmp
44414465 request .AgentSilenceConfigShrink = openapiutil .ArrayToStringWithSpecifiedStyle (tmpReq .AgentSilenceConfig , dara .String ("AgentSilenceConfig" ), dara .String ("json" ))
44424466 }
44434467
4468+ if ! dara .IsNil (tmpReq .AmbientSoundConfig ) {
4469+ request .AmbientSoundConfigShrink = openapiutil .ArrayToStringWithSpecifiedStyle (tmpReq .AmbientSoundConfig , dara .String ("AmbientSoundConfig" ), dara .String ("json" ))
4470+ }
4471+
44444472 if ! dara .IsNil (tmpReq .AsrConfig ) {
44454473 request .AsrConfigShrink = openapiutil .ArrayToStringWithSpecifiedStyle (tmpReq .AsrConfig , dara .String ("AsrConfig" ), dara .String ("json" ))
44464474 }
44474475
4476+ if ! dara .IsNil (tmpReq .BackChannelConfig ) {
4477+ request .BackChannelConfigShrink = openapiutil .ArrayToStringWithSpecifiedStyle (tmpReq .BackChannelConfig , dara .String ("BackChannelConfig" ), dara .String ("json" ))
4478+ }
4479+
4480+ if ! dara .IsNil (tmpReq .InterruptConfig ) {
4481+ request .InterruptConfigShrink = openapiutil .ArrayToStringWithSpecifiedStyle (tmpReq .InterruptConfig , dara .String ("InterruptConfig" ), dara .String ("json" ))
4482+ }
4483+
44484484 if ! dara .IsNil (tmpReq .LlmConfig ) {
44494485 request .LlmConfigShrink = openapiutil .ArrayToStringWithSpecifiedStyle (tmpReq .LlmConfig , dara .String ("LlmConfig" ), dara .String ("json" ))
44504486 }
@@ -4458,6 +4494,10 @@ func (client *Client) ModifyAppAgentTemplateWithContext(ctx context.Context, tmp
44584494 query ["AgentSilenceConfig" ] = request .AgentSilenceConfigShrink
44594495 }
44604496
4497+ if ! dara .IsNil (request .AmbientSoundConfigShrink ) {
4498+ query ["AmbientSoundConfig" ] = request .AmbientSoundConfigShrink
4499+ }
4500+
44614501 if ! dara .IsNil (request .AppId ) {
44624502 query ["AppId" ] = request .AppId
44634503 }
@@ -4466,6 +4506,10 @@ func (client *Client) ModifyAppAgentTemplateWithContext(ctx context.Context, tmp
44664506 query ["AsrConfig" ] = request .AsrConfigShrink
44674507 }
44684508
4509+ if ! dara .IsNil (request .BackChannelConfigShrink ) {
4510+ query ["BackChannelConfig" ] = request .BackChannelConfigShrink
4511+ }
4512+
44694513 if ! dara .IsNil (request .ChatMode ) {
44704514 query ["ChatMode" ] = request .ChatMode
44714515 }
@@ -4478,6 +4522,10 @@ func (client *Client) ModifyAppAgentTemplateWithContext(ctx context.Context, tmp
44784522 query ["Id" ] = request .Id
44794523 }
44804524
4525+ if ! dara .IsNil (request .InterruptConfigShrink ) {
4526+ query ["InterruptConfig" ] = request .InterruptConfigShrink
4527+ }
4528+
44814529 if ! dara .IsNil (request .InterruptMode ) {
44824530 query ["InterruptMode" ] = request .InterruptMode
44834531 }
@@ -4989,21 +5037,31 @@ func (client *Client) ModifyMPULayoutWithContext(ctx context.Context, request *M
49895037//
49905038// # NotifyAgent
49915039//
4992- // @param request - NotifyAgentRequest
5040+ // @param tmpReq - NotifyAgentRequest
49935041//
49945042// @param runtime - runtime options for this request RuntimeOptions
49955043//
49965044// @return NotifyAgentResponse
4997- func (client * Client ) NotifyAgentWithContext (ctx context.Context , request * NotifyAgentRequest , runtime * dara.RuntimeOptions ) (_result * NotifyAgentResponse , _err error ) {
4998- _err = request .Validate ()
5045+ func (client * Client ) NotifyAgentWithContext (ctx context.Context , tmpReq * NotifyAgentRequest , runtime * dara.RuntimeOptions ) (_result * NotifyAgentResponse , _err error ) {
5046+ _err = tmpReq .Validate ()
49995047 if _err != nil {
50005048 return _result , _err
50015049 }
5050+ request := & NotifyAgentShrinkRequest {}
5051+ openapiutil .Convert (tmpReq , request )
5052+ if ! dara .IsNil (tmpReq .BackgroundMusic ) {
5053+ request .BackgroundMusicShrink = openapiutil .ArrayToStringWithSpecifiedStyle (tmpReq .BackgroundMusic , dara .String ("BackgroundMusic" ), dara .String ("json" ))
5054+ }
5055+
50025056 query := map [string ]interface {}{}
50035057 if ! dara .IsNil (request .AppId ) {
50045058 query ["AppId" ] = request .AppId
50055059 }
50065060
5061+ if ! dara .IsNil (request .BackgroundMusicShrink ) {
5062+ query ["BackgroundMusic" ] = request .BackgroundMusicShrink
5063+ }
5064+
50075065 if ! dara .IsNil (request .ChannelId ) {
50085066 query ["ChannelId" ] = request .ChannelId
50095067 }
0 commit comments