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 @@ -125,13 +125,13 @@ partial void ProcessAddKnowledgeBaseSourcesResponseContent(
}
var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{knowledgeBaseId}"),
content: new global::System.Net.Http.StringContent(knowledgeBaseId ?? string.Empty),
name: "\"knowledge_base_id\"");
if (request.KnowledgeBaseTexts != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.KnowledgeBaseTexts, x => x))}]"),
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.KnowledgeBaseTexts, x => x.ToJson(JsonSerializerContext)))}]"),
name: "\"knowledge_base_texts\"");
}
if (request.KnowledgeBaseFiles != default)
Expand All @@ -140,6 +140,7 @@ partial void ProcessAddKnowledgeBaseSourcesResponseContent(
for (var __iKnowledgeBaseFiles = 0; __iKnowledgeBaseFiles < request.KnowledgeBaseFiles.Count; __iKnowledgeBaseFiles++)
{
var __contentKnowledgeBaseFiles = new global::System.Net.Http.ByteArrayContent(request.KnowledgeBaseFiles[__iKnowledgeBaseFiles]);
__contentKnowledgeBaseFiles.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue("application/octet-stream");
__httpRequestContent.Add(
content: __contentKnowledgeBaseFiles,
name: "\"knowledge_base_files\"",
Expand Down Expand Up @@ -169,7 +170,7 @@ partial void ProcessAddKnowledgeBaseSourcesResponseContent(
PrepareAddKnowledgeBaseSourcesRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
knowledgeBaseId: knowledgeBaseId,
knowledgeBaseId: knowledgeBaseId!,
request: request);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ partial void ProcessAgentPlaygroundCompletionResponseContent(
PrepareAgentPlaygroundCompletionRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
version: version,
request: request);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ partial void ProcessCloneVoiceResponseContent(
for (var __iFiles = 0; __iFiles < request.Files.Count; __iFiles++)
{
var __contentFiles = new global::System.Net.Http.ByteArrayContent(request.Files[__iFiles]);
__contentFiles.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue("application/octet-stream");
__httpRequestContent.Add(
content: __contentFiles,
name: "\"files\"",
Expand All @@ -130,10 +131,10 @@ partial void ProcessCloneVoiceResponseContent(
}
}
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.VoiceName}"),
content: new global::System.Net.Http.StringContent(request.VoiceName ?? string.Empty),
name: "\"voice_name\"");
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.VoiceProvider.ToValueString()}"),
content: new global::System.Net.Http.StringContent(request.VoiceProvider.ToValueString()),
name: "\"voice_provider\"");
__httpRequest.Content = __httpRequestContent;
global::RetellAI.AutoSDKRequestOptionsSupport.ApplyHeaders(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ partial void ProcessCreateKnowledgeBaseResponseContent(
}
var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.KnowledgeBaseName}"),
content: new global::System.Net.Http.StringContent(request.KnowledgeBaseName ?? string.Empty),
name: "\"knowledge_base_name\"");
if (request.KnowledgeBaseTexts != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.KnowledgeBaseTexts, x => x))}]"),
content: new global::System.Net.Http.StringContent($"[{string.Join(",", global::System.Linq.Enumerable.Select(request.KnowledgeBaseTexts, x => x.ToJson(JsonSerializerContext)))}]"),
name: "\"knowledge_base_texts\"");
}
if (request.KnowledgeBaseFiles != default)
Expand All @@ -133,6 +133,7 @@ partial void ProcessCreateKnowledgeBaseResponseContent(
for (var __iKnowledgeBaseFiles = 0; __iKnowledgeBaseFiles < request.KnowledgeBaseFiles.Count; __iKnowledgeBaseFiles++)
{
var __contentKnowledgeBaseFiles = new global::System.Net.Http.ByteArrayContent(request.KnowledgeBaseFiles[__iKnowledgeBaseFiles]);
__contentKnowledgeBaseFiles.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue("application/octet-stream");
__httpRequestContent.Add(
content: __contentKnowledgeBaseFiles,
name: "\"knowledge_base_files\"",
Expand All @@ -154,21 +155,21 @@ partial void ProcessCreateKnowledgeBaseResponseContent(
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.EnableAutoRefresh}"),
content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.EnableAutoRefresh, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()),
name: "\"enable_auto_refresh\"");
}
if (request.MaxChunkSize != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.MaxChunkSize}"),
content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.MaxChunkSize, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty),
name: "\"max_chunk_size\"");
}
if (request.MinChunkSize != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.MinChunkSize}"),
content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.MinChunkSize, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty),
name: "\"min_chunk_size\"");
}
__httpRequest.Content = __httpRequestContent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ partial void ProcessDeleteAgentResponse(
PrepareDeleteAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId);
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ partial void ProcessDeleteCallResponse(
PrepareDeleteCallRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
callId: callId);
callId: callId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ partial void ProcessDeleteChatAgentResponse(
PrepareDeleteChatAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId);
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ partial void ProcessDeleteConversationFlowResponse(
PrepareDeleteConversationFlowRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
conversationFlowId: conversationFlowId);
conversationFlowId: conversationFlowId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ partial void ProcessDeleteConversationFlowComponentResponse(
PrepareDeleteConversationFlowComponentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
conversationFlowComponentId: conversationFlowComponentId);
conversationFlowComponentId: conversationFlowComponentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ partial void ProcessDeleteKnowledgeBaseResponse(
PrepareDeleteKnowledgeBaseRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
knowledgeBaseId: knowledgeBaseId);
knowledgeBaseId: knowledgeBaseId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ partial void ProcessDeleteKnowledgeBaseSourceResponseContent(
PrepareDeleteKnowledgeBaseSourceRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
knowledgeBaseId: knowledgeBaseId,
sourceId: sourceId);
knowledgeBaseId: knowledgeBaseId!,
sourceId: sourceId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ partial void ProcessDeletePhoneNumberResponse(
PrepareDeletePhoneNumberRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
phoneNumber: phoneNumber);
phoneNumber: phoneNumber!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ partial void ProcessDeleteRetellLLMResponse(
PrepareDeleteRetellLLMRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
llmId: llmId);
llmId: llmId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ partial void ProcessDeleteTestCaseDefinitionResponse(
PrepareDeleteTestCaseDefinitionRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
testCaseDefinitionId: testCaseDefinitionId);
testCaseDefinitionId: testCaseDefinitionId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ partial void ProcessEndChatResponse(
PrepareEndChatRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
chatId: chatId);
chatId: chatId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ partial void ProcessGetAgentResponseContent(
PrepareGetAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
version: version);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ partial void ProcessGetAgentVersionsResponseContent(
PrepareGetAgentVersionsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId);
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessGetBatchTestResponseContent(
PrepareGetBatchTestRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
testCaseBatchJobId: testCaseBatchJobId);
testCaseBatchJobId: testCaseBatchJobId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ partial void ProcessGetCallResponseContent(
PrepareGetCallRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
callId: callId);
callId: callId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ partial void ProcessGetChatResponseContent(
PrepareGetChatRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
chatId: chatId);
chatId: chatId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ partial void ProcessGetChatAgentResponseContent(
PrepareGetChatAgentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
version: version);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ partial void ProcessGetChatAgentVersionsResponseContent(
PrepareGetChatAgentVersionsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId);
agentId: agentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ partial void ProcessGetConversationFlowResponseContent(
PrepareGetConversationFlowRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
conversationFlowId: conversationFlowId,
conversationFlowId: conversationFlowId!,
version: version);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessGetConversationFlowComponentResponseContent(
PrepareGetConversationFlowComponentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
conversationFlowComponentId: conversationFlowComponentId);
conversationFlowComponentId: conversationFlowComponentId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ partial void ProcessGetKnowledgeBaseResponseContent(
PrepareGetKnowledgeBaseRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
knowledgeBaseId: knowledgeBaseId);
knowledgeBaseId: knowledgeBaseId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ partial void ProcessGetMCPToolsResponseContent(
PrepareGetMCPToolsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
agentId: agentId!,
version: version,
mcpId: mcpId,
mcpId: mcpId!,
componentId: componentId);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ partial void ProcessGetPhoneNumberResponseContent(
PrepareGetPhoneNumberRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
phoneNumber: phoneNumber);
phoneNumber: phoneNumber!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ partial void ProcessGetRetellLLMResponseContent(
PrepareGetRetellLLMRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
llmId: llmId,
llmId: llmId!,
version: version);

return __httpRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessGetTestCaseDefinitionResponseContent(
PrepareGetTestCaseDefinitionRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
testCaseDefinitionId: testCaseDefinitionId);
testCaseDefinitionId: testCaseDefinitionId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessGetTestRunResponseContent(
PrepareGetTestRunRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
testCaseJobId: testCaseJobId);
testCaseJobId: testCaseJobId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ partial void ProcessGetVoiceResponseContent(
PrepareGetVoiceRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
voiceId: voiceId);
voiceId: voiceId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ partial void ProcessListBatchTestsResponseContent(
PrepareListBatchTestsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
type: type,
type: type!,
llmId: llmId,
conversationFlowId: conversationFlowId,
version: version);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ partial void ProcessListBatchTestsV2ResponseContent(
PrepareListBatchTestsV2Request(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
type: type,
type: type!,
llmId: llmId,
conversationFlowId: conversationFlowId,
version: version,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessListTestCaseDefinitionsResponseContent(
PrepareListTestCaseDefinitionsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
type: type,
type: type!,
llmId: llmId,
conversationFlowId: conversationFlowId);

Expand Down
Loading
Loading