Skip to content

Commit 5b0e835

Browse files
committed
Release 0.0.0-alpha2
1 parent 2903c52 commit 5b0e835

File tree

144 files changed

+1608
-221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+1608
-221
lines changed

reference.md

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ await client.Assistants.UpdateAsync("id", new UpdateAssistantDto());
418418
</details>
419419

420420
## PhoneNumbers
421-
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">ListAsync</a>(PhoneNumbersListRequest { ... }) -> IEnumerable<object></code></summary>
421+
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">ListAsync</a>(PhoneNumbersListRequest { ... }) -> IEnumerable<OneOf<ByoPhoneNumber, TwilioPhoneNumber, VonagePhoneNumber, VapiPhoneNumber>></code></summary>
422422
<dl>
423423
<dd>
424424

@@ -458,7 +458,7 @@ await client.PhoneNumbers.ListAsync(new PhoneNumbersListRequest());
458458
</dl>
459459
</details>
460460

461-
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">CreateAsync</a>(object { ... }) -> object</code></summary>
461+
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">CreateAsync</a>(OneOf<CreateByoPhoneNumberDto, CreateTwilioPhoneNumberDto, CreateVonagePhoneNumberDto, CreateVapiPhoneNumberDto> { ... }) -> OneOf<ByoPhoneNumber, TwilioPhoneNumber, VonagePhoneNumber, VapiPhoneNumber></code></summary>
462462
<dl>
463463
<dd>
464464

@@ -471,7 +471,9 @@ await client.PhoneNumbers.ListAsync(new PhoneNumbersListRequest());
471471
<dd>
472472

473473
```csharp
474-
await client.PhoneNumbers.CreateAsync(new CreateVapiPhoneNumberDto { SipUri = "string" });
474+
await client.PhoneNumbers.CreateAsync(
475+
new CreateByoPhoneNumberDto { Provider = "byo-phone-number", CredentialId = "credentialId" }
476+
);
475477
```
476478
</dd>
477479
</dl>
@@ -486,7 +488,7 @@ await client.PhoneNumbers.CreateAsync(new CreateVapiPhoneNumberDto { SipUri = "s
486488
<dl>
487489
<dd>
488490

489-
**request:** `object`
491+
**request:** `OneOf<CreateByoPhoneNumberDto, CreateTwilioPhoneNumberDto, CreateVonagePhoneNumberDto, CreateVapiPhoneNumberDto>`
490492

491493
</dd>
492494
</dl>
@@ -498,7 +500,7 @@ await client.PhoneNumbers.CreateAsync(new CreateVapiPhoneNumberDto { SipUri = "s
498500
</dl>
499501
</details>
500502

501-
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">GetAsync</a>(id) -> object</code></summary>
503+
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">GetAsync</a>(id) -> OneOf<ByoPhoneNumber, TwilioPhoneNumber, VonagePhoneNumber, VapiPhoneNumber></code></summary>
502504
<dl>
503505
<dd>
504506

@@ -538,7 +540,7 @@ await client.PhoneNumbers.GetAsync("id");
538540
</dl>
539541
</details>
540542

541-
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">DeleteAsync</a>(id) -> object</code></summary>
543+
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">DeleteAsync</a>(id) -> OneOf<ByoPhoneNumber, TwilioPhoneNumber, VonagePhoneNumber, VapiPhoneNumber></code></summary>
542544
<dl>
543545
<dd>
544546

@@ -578,7 +580,7 @@ await client.PhoneNumbers.DeleteAsync("id");
578580
</dl>
579581
</details>
580582

581-
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">UpdateAsync</a>(id, UpdatePhoneNumberDto { ... }) -> object</code></summary>
583+
<details><summary><code>client.PhoneNumbers.<a href="/src/Vapi.Net/PhoneNumbers/PhoneNumbersClient.cs">UpdateAsync</a>(id, UpdatePhoneNumberDto { ... }) -> OneOf<ByoPhoneNumber, TwilioPhoneNumber, VonagePhoneNumber, VapiPhoneNumber></code></summary>
582584
<dl>
583585
<dd>
584586

@@ -841,7 +843,7 @@ await client.Squads.UpdateAsync(
841843
</details>
842844

843845
## Blocks
844-
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">ListAsync</a>(BlocksListRequest { ... }) -> IEnumerable<object></code></summary>
846+
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">ListAsync</a>(BlocksListRequest { ... }) -> IEnumerable<OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock>></code></summary>
845847
<dl>
846848
<dd>
847849

@@ -881,7 +883,7 @@ await client.Blocks.ListAsync(new BlocksListRequest());
881883
</dl>
882884
</details>
883885

884-
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">CreateAsync</a>(object { ... }) -> object</code></summary>
886+
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">CreateAsync</a>(OneOf<CreateConversationBlockDto, CreateToolCallBlockDto, CreateWorkflowBlockDto> { ... }) -> OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock></code></summary>
885887
<dl>
886888
<dd>
887889

@@ -894,7 +896,9 @@ await client.Blocks.ListAsync(new BlocksListRequest());
894896
<dd>
895897

896898
```csharp
897-
await client.Blocks.CreateAsync(new CreateWorkflowBlockDto());
899+
await client.Blocks.CreateAsync(
900+
new CreateConversationBlockDto { Type = "conversation", Instruction = "instruction" }
901+
);
898902
```
899903
</dd>
900904
</dl>
@@ -909,7 +913,7 @@ await client.Blocks.CreateAsync(new CreateWorkflowBlockDto());
909913
<dl>
910914
<dd>
911915

912-
**request:** `object`
916+
**request:** `OneOf<CreateConversationBlockDto, CreateToolCallBlockDto, CreateWorkflowBlockDto>`
913917

914918
</dd>
915919
</dl>
@@ -921,7 +925,7 @@ await client.Blocks.CreateAsync(new CreateWorkflowBlockDto());
921925
</dl>
922926
</details>
923927

924-
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">GetAsync</a>(id) -> object</code></summary>
928+
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">GetAsync</a>(id) -> OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock></code></summary>
925929
<dl>
926930
<dd>
927931

@@ -961,7 +965,7 @@ await client.Blocks.GetAsync("id");
961965
</dl>
962966
</details>
963967

964-
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">DeleteAsync</a>(id) -> object</code></summary>
968+
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">DeleteAsync</a>(id) -> OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock></code></summary>
965969
<dl>
966970
<dd>
967971

@@ -1001,7 +1005,7 @@ await client.Blocks.DeleteAsync("id");
10011005
</dl>
10021006
</details>
10031007

1004-
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">UpdateAsync</a>(id, UpdateBlockDto { ... }) -> object</code></summary>
1008+
<details><summary><code>client.Blocks.<a href="/src/Vapi.Net/Blocks/BlocksClient.cs">UpdateAsync</a>(id, UpdateBlockDto { ... }) -> OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock></code></summary>
10051009
<dl>
10061010
<dd>
10071011

@@ -1050,7 +1054,7 @@ await client.Blocks.UpdateAsync("id", new UpdateBlockDto());
10501054
</details>
10511055

10521056
## Tools
1053-
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">ListAsync</a>(ToolsListRequest { ... }) -> IEnumerable<object></code></summary>
1057+
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">ListAsync</a>(ToolsListRequest { ... }) -> IEnumerable<OneOf<DtmfTool, EndCallTool, FunctionTool, GhlTool, MakeTool, TransferCallTool, OutputTool>></code></summary>
10541058
<dl>
10551059
<dd>
10561060

@@ -1090,7 +1094,7 @@ await client.Tools.ListAsync(new ToolsListRequest());
10901094
</dl>
10911095
</details>
10921096

1093-
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">CreateAsync</a>(object { ... }) -> object</code></summary>
1097+
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">CreateAsync</a>(OneOf<CreateDtmfToolDto, CreateEndCallToolDto, CreateFunctionToolDto, CreateGhlToolDto, CreateMakeToolDto, CreateTransferCallToolDto, CreateOutputToolDto> { ... }) -> OneOf<DtmfTool, EndCallTool, FunctionTool, GhlTool, MakeTool, TransferCallTool, OutputTool></code></summary>
10941098
<dl>
10951099
<dd>
10961100

@@ -1103,7 +1107,7 @@ await client.Tools.ListAsync(new ToolsListRequest());
11031107
<dd>
11041108

11051109
```csharp
1106-
await client.Tools.CreateAsync(new CreateOutputToolDto { Async = false });
1110+
await client.Tools.CreateAsync(new CreateDtmfToolDto { Type = "dtmf" });
11071111
```
11081112
</dd>
11091113
</dl>
@@ -1118,7 +1122,7 @@ await client.Tools.CreateAsync(new CreateOutputToolDto { Async = false });
11181122
<dl>
11191123
<dd>
11201124

1121-
**request:** `object`
1125+
**request:** `OneOf<CreateDtmfToolDto, CreateEndCallToolDto, CreateFunctionToolDto, CreateGhlToolDto, CreateMakeToolDto, CreateTransferCallToolDto, CreateOutputToolDto>`
11221126

11231127
</dd>
11241128
</dl>
@@ -1130,7 +1134,7 @@ await client.Tools.CreateAsync(new CreateOutputToolDto { Async = false });
11301134
</dl>
11311135
</details>
11321136

1133-
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">GetAsync</a>(id) -> object</code></summary>
1137+
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">GetAsync</a>(id) -> OneOf<DtmfTool, EndCallTool, FunctionTool, GhlTool, MakeTool, TransferCallTool, OutputTool></code></summary>
11341138
<dl>
11351139
<dd>
11361140

@@ -1170,7 +1174,7 @@ await client.Tools.GetAsync("id");
11701174
</dl>
11711175
</details>
11721176

1173-
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">DeleteAsync</a>(id) -> object</code></summary>
1177+
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">DeleteAsync</a>(id) -> OneOf<DtmfTool, EndCallTool, FunctionTool, GhlTool, MakeTool, TransferCallTool, OutputTool></code></summary>
11741178
<dl>
11751179
<dd>
11761180

@@ -1210,7 +1214,7 @@ await client.Tools.DeleteAsync("id");
12101214
</dl>
12111215
</details>
12121216

1213-
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">UpdateAsync</a>(id, UpdateToolDto { ... }) -> object</code></summary>
1217+
<details><summary><code>client.Tools.<a href="/src/Vapi.Net/Tools/ToolsClient.cs">UpdateAsync</a>(id, UpdateToolDto { ... }) -> OneOf<DtmfTool, EndCallTool, FunctionTool, GhlTool, MakeTool, TransferCallTool, OutputTool></code></summary>
12141218
<dl>
12151219
<dd>
12161220

src/Vapi.Net.sln

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vapi.Net", "Vapi.Net\Vapi.Net.csproj", "{808BDCC4-DA8A-4D9F-B255-1E853448C2A1}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vapi.Net", "Vapi.Net\Vapi.Net.csproj", "{974E760D-3311-4BD0-9CC1-FD916DDFC2AD}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vapi.Net.Test", "Vapi.Net.Test\Vapi.Net.Test.csproj", "{B080BF6C-2E7D-4921-AACA-4921741B0C6D}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vapi.Net.Test", "Vapi.Net.Test\Vapi.Net.Test.csproj", "{CD5CCAF9-6A70-47E8-B689-A267D181CC1D}"
99
EndProject
1010
Global
1111
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -16,13 +16,13 @@ Global
1616
HideSolutionNode = FALSE
1717
EndGlobalSection
1818
GlobalSection(ProjectConfigurationPlatforms) = postSolution
19-
{808BDCC4-DA8A-4D9F-B255-1E853448C2A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20-
{808BDCC4-DA8A-4D9F-B255-1E853448C2A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
21-
{808BDCC4-DA8A-4D9F-B255-1E853448C2A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
22-
{808BDCC4-DA8A-4D9F-B255-1E853448C2A1}.Release|Any CPU.Build.0 = Release|Any CPU
23-
{B080BF6C-2E7D-4921-AACA-4921741B0C6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24-
{B080BF6C-2E7D-4921-AACA-4921741B0C6D}.Debug|Any CPU.Build.0 = Debug|Any CPU
25-
{B080BF6C-2E7D-4921-AACA-4921741B0C6D}.Release|Any CPU.ActiveCfg = Release|Any CPU
26-
{B080BF6C-2E7D-4921-AACA-4921741B0C6D}.Release|Any CPU.Build.0 = Release|Any CPU
19+
{974E760D-3311-4BD0-9CC1-FD916DDFC2AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20+
{974E760D-3311-4BD0-9CC1-FD916DDFC2AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
21+
{974E760D-3311-4BD0-9CC1-FD916DDFC2AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
22+
{974E760D-3311-4BD0-9CC1-FD916DDFC2AD}.Release|Any CPU.Build.0 = Release|Any CPU
23+
{CD5CCAF9-6A70-47E8-B689-A267D181CC1D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24+
{CD5CCAF9-6A70-47E8-B689-A267D181CC1D}.Debug|Any CPU.Build.0 = Debug|Any CPU
25+
{CD5CCAF9-6A70-47E8-B689-A267D181CC1D}.Release|Any CPU.ActiveCfg = Release|Any CPU
26+
{CD5CCAF9-6A70-47E8-B689-A267D181CC1D}.Release|Any CPU.Build.0 = Release|Any CPU
2727
EndGlobalSection
2828
EndGlobal

src/Vapi.Net/Assistants/Requests/UpdateAssistantDto.cs

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Text.Json.Serialization;
2+
using OneOf;
23
using Vapi.Net.Core;
34

45
#nullable enable
@@ -11,19 +12,44 @@ public record UpdateAssistantDto
1112
/// These are the options for the assistant's transcriber.
1213
/// </summary>
1314
[JsonPropertyName("transcriber")]
14-
public object? Transcriber { get; set; }
15+
public OneOf<
16+
DeepgramTranscriber,
17+
GladiaTranscriber,
18+
TalkscriberTranscriber
19+
>? Transcriber { get; set; }
1520

1621
/// <summary>
1722
/// These are the options for the assistant's LLM.
1823
/// </summary>
1924
[JsonPropertyName("model")]
20-
public object? Model { get; set; }
25+
public OneOf<
26+
AnyscaleModel,
27+
AnthropicModel,
28+
CustomLlmModel,
29+
DeepInfraModel,
30+
GroqModel,
31+
OpenAiModel,
32+
OpenRouterModel,
33+
PerplexityAiModel,
34+
TogetherAiModel,
35+
VapiModel
36+
>? Model { get; set; }
2137

2238
/// <summary>
2339
/// These are the options for the assistant's voice.
2440
/// </summary>
2541
[JsonPropertyName("voice")]
26-
public object? Voice { get; set; }
42+
public OneOf<
43+
AzureVoice,
44+
CartesiaVoice,
45+
DeepgramVoice,
46+
ElevenLabsVoice,
47+
LmntVoice,
48+
NeetsVoice,
49+
OpenAiVoice,
50+
PlayHtVoice,
51+
RimeAiVoice
52+
>? Voice { get; set; }
2753

2854
/// <summary>
2955
/// This is the mode for the first message. Default is 'assistant-speaks-first'.

src/Vapi.Net/Blocks/BlocksClient.cs

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Net.Http;
22
using System.Text.Json;
33
using System.Threading;
4+
using OneOf;
45
using Vapi.Net.Core;
56

67
#nullable enable
@@ -21,7 +22,9 @@ internal BlocksClient(RawClient client)
2122
/// await client.Blocks.ListAsync(new BlocksListRequest());
2223
/// </code>
2324
/// </example>
24-
public async Task<IEnumerable<object>> ListAsync(
25+
public async Task<
26+
IEnumerable<OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock>>
27+
> ListAsync(
2528
BlocksListRequest request,
2629
RequestOptions? options = null,
2730
CancellationToken cancellationToken = default
@@ -80,7 +83,9 @@ public async Task<IEnumerable<object>> ListAsync(
8083
{
8184
try
8285
{
83-
return JsonUtils.Deserialize<IEnumerable<object>>(responseBody)!;
86+
return JsonUtils.Deserialize<
87+
IEnumerable<OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock>>
88+
>(responseBody)!;
8489
}
8590
catch (JsonException e)
8691
{
@@ -97,11 +102,13 @@ public async Task<IEnumerable<object>> ListAsync(
97102

98103
/// <example>
99104
/// <code>
100-
/// await client.Blocks.CreateAsync(new CreateWorkflowBlockDto());
105+
/// await client.Blocks.CreateAsync(
106+
/// new CreateConversationBlockDto { Type = "conversation", Instruction = "instruction" }
107+
/// );
101108
/// </code>
102109
/// </example>
103-
public async Task<object> CreateAsync(
104-
object request,
110+
public async Task<OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock>> CreateAsync(
111+
OneOf<CreateConversationBlockDto, CreateToolCallBlockDto, CreateWorkflowBlockDto> request,
105112
RequestOptions? options = null,
106113
CancellationToken cancellationToken = default
107114
)
@@ -122,7 +129,9 @@ public async Task<object> CreateAsync(
122129
{
123130
try
124131
{
125-
return JsonUtils.Deserialize<object>(responseBody)!;
132+
return JsonUtils.Deserialize<
133+
OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock>
134+
>(responseBody)!;
126135
}
127136
catch (JsonException e)
128137
{
@@ -142,7 +151,7 @@ public async Task<object> CreateAsync(
142151
/// await client.Blocks.GetAsync("id");
143152
/// </code>
144153
/// </example>
145-
public async Task<object> GetAsync(
154+
public async Task<OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock>> GetAsync(
146155
string id,
147156
RequestOptions? options = null,
148157
CancellationToken cancellationToken = default
@@ -163,7 +172,9 @@ public async Task<object> GetAsync(
163172
{
164173
try
165174
{
166-
return JsonUtils.Deserialize<object>(responseBody)!;
175+
return JsonUtils.Deserialize<
176+
OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock>
177+
>(responseBody)!;
167178
}
168179
catch (JsonException e)
169180
{
@@ -183,7 +194,7 @@ public async Task<object> GetAsync(
183194
/// await client.Blocks.DeleteAsync("id");
184195
/// </code>
185196
/// </example>
186-
public async Task<object> DeleteAsync(
197+
public async Task<OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock>> DeleteAsync(
187198
string id,
188199
RequestOptions? options = null,
189200
CancellationToken cancellationToken = default
@@ -204,7 +215,9 @@ public async Task<object> DeleteAsync(
204215
{
205216
try
206217
{
207-
return JsonUtils.Deserialize<object>(responseBody)!;
218+
return JsonUtils.Deserialize<
219+
OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock>
220+
>(responseBody)!;
208221
}
209222
catch (JsonException e)
210223
{
@@ -224,7 +237,7 @@ public async Task<object> DeleteAsync(
224237
/// await client.Blocks.UpdateAsync("id", new UpdateBlockDto());
225238
/// </code>
226239
/// </example>
227-
public async Task<object> UpdateAsync(
240+
public async Task<OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock>> UpdateAsync(
228241
string id,
229242
UpdateBlockDto request,
230243
RequestOptions? options = null,
@@ -247,7 +260,9 @@ public async Task<object> UpdateAsync(
247260
{
248261
try
249262
{
250-
return JsonUtils.Deserialize<object>(responseBody)!;
263+
return JsonUtils.Deserialize<
264+
OneOf<ConversationBlock, ToolCallBlock, WorkflowBlock>
265+
>(responseBody)!;
251266
}
252267
catch (JsonException e)
253268
{

0 commit comments

Comments
 (0)