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
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ public partial class AgentsClient
partial void PrepareAgentsCallsCreateArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid agentId,
ref string? throttle,
global::Ultravox.UltravoxV1StartAgentCallRequest request);
partial void PrepareAgentsCallsCreateRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
global::System.Guid agentId,
string? throttle,
global::Ultravox.UltravoxV1StartAgentCallRequest request);
partial void ProcessAgentsCallsCreateResponse(
global::System.Net.Http.HttpClient httpClient,
Expand All @@ -47,6 +49,7 @@ partial void ProcessAgentsCallsCreateResponseContent(
///
/// </summary>
/// <param name="agentId"></param>
/// <param name="throttle"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand All @@ -55,6 +58,7 @@ partial void ProcessAgentsCallsCreateResponseContent(
global::System.Guid agentId,

global::Ultravox.UltravoxV1StartAgentCallRequest request,
string? throttle = default,
global::Ultravox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand All @@ -65,6 +69,7 @@ partial void ProcessAgentsCallsCreateResponseContent(
PrepareAgentsCallsCreateArguments(
httpClient: HttpClient,
agentId: ref agentId,
throttle: ref throttle,
request: request);


Expand All @@ -91,7 +96,10 @@ partial void ProcessAgentsCallsCreateResponseContent(
{
var __pathBuilder = new global::Ultravox.PathBuilder(
path: $"/api/agents/{agentId}/calls",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("throttle", throttle)
;
var __path = __pathBuilder.ToString();
__path = global::Ultravox.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down Expand Up @@ -139,6 +147,7 @@ partial void ProcessAgentsCallsCreateResponseContent(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
throttle: throttle,
request: request);

return __httpRequest;
Expand Down Expand Up @@ -396,6 +405,7 @@ partial void ProcessAgentsCallsCreateResponseContent(
///
/// </summary>
/// <param name="agentId"></param>
/// <param name="throttle"></param>
/// <param name="templateContext">
/// Context for filling any mustache templates for the call.
/// </param>
Expand Down Expand Up @@ -466,6 +476,7 @@ partial void ProcessAgentsCallsCreateResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Ultravox.Call> AgentsCallsCreateAsync(
global::System.Guid agentId,
string? throttle = default,
object? templateContext = default,
global::System.Collections.Generic.IList<global::Ultravox.UltravoxV1Message>? initialMessages = default,
global::System.Collections.Generic.Dictionary<string, string>? metadata = default,
Expand Down Expand Up @@ -509,6 +520,7 @@ partial void ProcessAgentsCallsCreateResponseContent(

return await AgentsCallsCreateAsync(
agentId: agentId,
throttle: throttle,
request: __request,
requestOptions: requestOptions,
cancellationToken: cancellationToken).ConfigureAwait(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ partial void ProcessAgentsScheduledBatchesCreateResponseContent(
/// <param name="windowEnd">
/// The end of the time window during which calls can be made.
/// </param>
/// <param name="throttle">
/// The name or ID of a call throttle. If specified, calls in this batch will be subject to the rate limits defined by the throttle.
/// </param>
/// <param name="webhookUrl">
/// The URL to which a request will be made (synchronously) when a call in the batch is created, excluding those with an outgoing medium. Required if any call has a non-outgoing medium and not allowed otherwise.
/// </param>
Expand All @@ -420,6 +423,7 @@ partial void ProcessAgentsScheduledBatchesCreateResponseContent(
global::System.Collections.Generic.IList<global::Ultravox.ScheduledCall> calls,
global::System.DateTime? windowStart = default,
global::System.DateTime? windowEnd = default,
string? throttle = default,
string? webhookUrl = default,
string? webhookSecret = default,
bool? paused = default,
Expand All @@ -430,6 +434,7 @@ partial void ProcessAgentsScheduledBatchesCreateResponseContent(
{
WindowStart = windowStart,
WindowEnd = windowEnd,
Throttle = throttle,
WebhookUrl = webhookUrl,
WebhookSecret = webhookSecret,
Paused = paused,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,9 @@ partial void ProcessAgentsScheduledBatchesPartialUpdateResponseContent(
/// <param name="windowEnd">
/// The end of the time window during which calls can be made.
/// </param>
/// <param name="throttle">
/// The name or ID of a call throttle. If specified, calls in this batch will be subject to the rate limits defined by the throttle.
/// </param>
/// <param name="webhookUrl">
/// The URL to which a request will be made (synchronously) when a call in the batch is created, excluding those with an outgoing medium. Required if any call has a non-outgoing medium and not allowed otherwise.
/// </param>
Expand All @@ -428,6 +431,7 @@ partial void ProcessAgentsScheduledBatchesPartialUpdateResponseContent(
global::System.Collections.Generic.IList<global::Ultravox.ScheduledCall> calls,
global::System.DateTime? windowStart = default,
global::System.DateTime? windowEnd = default,
string? throttle = default,
string? webhookUrl = default,
string? webhookSecret = default,
bool? paused = default,
Expand All @@ -438,6 +442,7 @@ partial void ProcessAgentsScheduledBatchesPartialUpdateResponseContent(
{
WindowStart = windowStart,
WindowEnd = windowEnd,
Throttle = throttle,
WebhookUrl = webhookUrl,
WebhookSecret = webhookSecret,
Paused = paused,
Expand Down
Loading