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 @@ -10,15 +10,11 @@ public partial interface IRetellAiClient
/// <param name="agentId">
/// Example: 16b980523634a6dc504898cda492e939
/// </param>
/// <param name="includeResponseEngine">
/// Default Value: false
/// </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>
/// <exception cref="global::RetellAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::RetellAI.AgentResponse>> GetAgentVersionsAsync(
string agentId,
bool? includeResponseEngine = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
Expand All @@ -27,15 +23,11 @@ public partial interface IRetellAiClient
/// <param name="agentId">
/// Example: 16b980523634a6dc504898cda492e939
/// </param>
/// <param name="includeResponseEngine">
/// Default Value: false
/// </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>
/// <exception cref="global::RetellAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::RetellAI.AutoSDKHttpResponse<global::System.Collections.Generic.IList<global::RetellAI.AgentResponse>>> GetAgentVersionsAsResponseAsync(
string agentId,
bool? includeResponseEngine = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ public partial interface IRetellAiClient
/// <param name="agentId">
/// Example: 16b980523634a6dc504898cda492e939
/// </param>
/// <param name="includeResponseEngine">
/// Default Value: false
/// </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>
/// <exception cref="global::RetellAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::RetellAI.ChatAgentResponse>> GetChatAgentVersionsAsync(
string agentId,
bool? includeResponseEngine = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
Expand All @@ -27,15 +23,11 @@ public partial interface IRetellAiClient
/// <param name="agentId">
/// Example: 16b980523634a6dc504898cda492e939
/// </param>
/// <param name="includeResponseEngine">
/// Default Value: false
/// </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>
/// <exception cref="global::RetellAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::RetellAI.AutoSDKHttpResponse<global::System.Collections.Generic.IList<global::RetellAI.ChatAgentResponse>>> GetChatAgentVersionsAsResponseAsync(
string agentId,
bool? includeResponseEngine = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace RetellAI
public partial interface IRetellAiClient
{
/// <summary>
/// List calls with unified cursor pagination response and total count.
/// List calls with unified cursor pagination response.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -17,7 +17,7 @@ public partial interface IRetellAiClient
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List calls with unified cursor pagination response and total count.
/// List calls with unified cursor pagination response.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -29,7 +29,7 @@ public partial interface IRetellAiClient
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List calls with unified cursor pagination response and total count.
/// List calls with unified cursor pagination response.
/// </summary>
/// <param name="filterCriteria">
/// Filter criteria for calls. All conditions are implicitly connected with AND.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace RetellAI
public partial interface IRetellAiClient
{
/// <summary>
/// List chats with unified cursor pagination response and total count.
/// List chats with unified cursor pagination response.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -17,7 +17,7 @@ public partial interface IRetellAiClient
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List chats with unified cursor pagination response and total count.
/// List chats with unified cursor pagination response.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -29,7 +29,7 @@ public partial interface IRetellAiClient
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List chats with unified cursor pagination response and total count.
/// List chats with unified cursor pagination response.
/// </summary>
/// <param name="filterCriteria">
/// Filter criteria for chats to retrieve.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization
if (__jsonProps.Contains("webhook_url")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("last_modification_timestamp")) __score2++;
if (__jsonProps.Contains("response_engine_data")) __score2++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public class ChatAgentResponseJsonConverter : global::System.Text.Json.Serializa
if (__jsonProps.Contains("webhook_url")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("last_modification_timestamp")) __score2++;
if (__jsonProps.Contains("response_engine_data")) __score2++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ public partial class RetellAiClient
};
partial void PrepareGetAgentVersionsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string agentId,
ref bool? includeResponseEngine);
ref string agentId);
partial void PrepareGetAgentVersionsRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string agentId,
bool? includeResponseEngine);
string agentId);
partial void ProcessGetAgentVersionsResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -49,21 +47,16 @@ partial void ProcessGetAgentVersionsResponseContent(
/// <param name="agentId">
/// Example: 16b980523634a6dc504898cda492e939
/// </param>
/// <param name="includeResponseEngine">
/// Default Value: false
/// </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>
/// <exception cref="global::RetellAI.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::RetellAI.AgentResponse>> GetAgentVersionsAsync(
string agentId,
bool? includeResponseEngine = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __response = await GetAgentVersionsAsResponseAsync(
agentId: agentId,
includeResponseEngine: includeResponseEngine,
requestOptions: requestOptions,
cancellationToken: cancellationToken
).ConfigureAwait(false);
Expand All @@ -76,24 +69,19 @@ partial void ProcessGetAgentVersionsResponseContent(
/// <param name="agentId">
/// Example: 16b980523634a6dc504898cda492e939
/// </param>
/// <param name="includeResponseEngine">
/// Default Value: false
/// </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>
/// <exception cref="global::RetellAI.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::RetellAI.AutoSDKHttpResponse<global::System.Collections.Generic.IList<global::RetellAI.AgentResponse>>> GetAgentVersionsAsResponseAsync(
string agentId,
bool? includeResponseEngine = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
PrepareGetAgentVersionsArguments(
httpClient: HttpClient,
agentId: ref agentId,
includeResponseEngine: ref includeResponseEngine);
agentId: ref agentId);


var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations(
Expand Down Expand Up @@ -121,9 +109,6 @@ partial void ProcessGetAgentVersionsResponseContent(
var __pathBuilder = new global::RetellAI.PathBuilder(
path: $"/get-agent-versions/{agentId}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("include_response_engine", includeResponseEngine?.ToString().ToLowerInvariant())
;
var __path = __pathBuilder.ToString();
__path = global::RetellAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down Expand Up @@ -164,8 +149,7 @@ partial void ProcessGetAgentVersionsResponseContent(
PrepareGetAgentVersionsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId!,
includeResponseEngine: includeResponseEngine);
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ public partial class RetellAiClient
};
partial void PrepareGetChatAgentVersionsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string agentId,
ref bool? includeResponseEngine);
ref string agentId);
partial void PrepareGetChatAgentVersionsRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string agentId,
bool? includeResponseEngine);
string agentId);
partial void ProcessGetChatAgentVersionsResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -49,21 +47,16 @@ partial void ProcessGetChatAgentVersionsResponseContent(
/// <param name="agentId">
/// Example: 16b980523634a6dc504898cda492e939
/// </param>
/// <param name="includeResponseEngine">
/// Default Value: false
/// </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>
/// <exception cref="global::RetellAI.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::RetellAI.ChatAgentResponse>> GetChatAgentVersionsAsync(
string agentId,
bool? includeResponseEngine = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __response = await GetChatAgentVersionsAsResponseAsync(
agentId: agentId,
includeResponseEngine: includeResponseEngine,
requestOptions: requestOptions,
cancellationToken: cancellationToken
).ConfigureAwait(false);
Expand All @@ -76,24 +69,19 @@ partial void ProcessGetChatAgentVersionsResponseContent(
/// <param name="agentId">
/// Example: 16b980523634a6dc504898cda492e939
/// </param>
/// <param name="includeResponseEngine">
/// Default Value: false
/// </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>
/// <exception cref="global::RetellAI.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::RetellAI.AutoSDKHttpResponse<global::System.Collections.Generic.IList<global::RetellAI.ChatAgentResponse>>> GetChatAgentVersionsAsResponseAsync(
string agentId,
bool? includeResponseEngine = default,
global::RetellAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
PrepareGetChatAgentVersionsArguments(
httpClient: HttpClient,
agentId: ref agentId,
includeResponseEngine: ref includeResponseEngine);
agentId: ref agentId);


var __authorizations = global::RetellAI.EndPointSecurityResolver.ResolveAuthorizations(
Expand Down Expand Up @@ -121,9 +109,6 @@ partial void ProcessGetChatAgentVersionsResponseContent(
var __pathBuilder = new global::RetellAI.PathBuilder(
path: $"/get-chat-agent-versions/{agentId}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("include_response_engine", includeResponseEngine?.ToString().ToLowerInvariant())
;
var __path = __pathBuilder.ToString();
__path = global::RetellAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down Expand Up @@ -164,8 +149,7 @@ partial void ProcessGetChatAgentVersionsResponseContent(
PrepareGetChatAgentVersionsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId!,
includeResponseEngine: includeResponseEngine);
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ partial void ProcessListCallsV3ResponseContent(
ref string content);

/// <summary>
/// List calls with unified cursor pagination response and total count.
/// List calls with unified cursor pagination response.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand All @@ -64,7 +64,7 @@ partial void ProcessListCallsV3ResponseContent(
return __response.Body;
}
/// <summary>
/// List calls with unified cursor pagination response and total count.
/// List calls with unified cursor pagination response.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
Expand Down Expand Up @@ -588,7 +588,7 @@ partial void ProcessListCallsV3ResponseContent(
}
}
/// <summary>
/// List calls with unified cursor pagination response and total count.
/// List calls with unified cursor pagination response.
/// </summary>
/// <param name="filterCriteria">
/// Filter criteria for calls. All conditions are implicitly connected with AND.
Expand Down
Loading