Skip to content

Commit 68f46b3

Browse files
Naming improvements via codegen changes (#1043)
1 parent 16f0ba2 commit 68f46b3

Some content is hidden

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

48 files changed

+4401
-4433
lines changed

docs/features/image-input.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ public static class ImageInputExample
178178
await session.SendAsync(new MessageOptions
179179
{
180180
Prompt = "Describe what you see in this image",
181-
Attachments = new List<UserMessageDataAttachmentsItem>
181+
Attachments = new List<UserMessageAttachment>
182182
{
183-
new UserMessageDataAttachmentsItemFile
183+
new UserMessageAttachmentFile
184184
{
185185
Path = "/absolute/path/to/screenshot.png",
186186
DisplayName = "screenshot.png",
@@ -206,9 +206,9 @@ await using var session = await client.CreateSessionAsync(new SessionConfig
206206
await session.SendAsync(new MessageOptions
207207
{
208208
Prompt = "Describe what you see in this image",
209-
Attachments = new List<UserMessageDataAttachmentsItem>
209+
Attachments = new List<UserMessageAttachment>
210210
{
211-
new UserMessageDataAttachmentsItemFile
211+
new UserMessageAttachmentFile
212212
{
213213
Path = "/absolute/path/to/screenshot.png",
214214
DisplayName = "screenshot.png",
@@ -396,9 +396,9 @@ public static class BlobAttachmentExample
396396
await session.SendAsync(new MessageOptions
397397
{
398398
Prompt = "Describe what you see in this image",
399-
Attachments = new List<UserMessageDataAttachmentsItem>
399+
Attachments = new List<UserMessageAttachment>
400400
{
401-
new UserMessageDataAttachmentsItemBlob
401+
new UserMessageAttachmentBlob
402402
{
403403
Data = base64ImageData,
404404
MimeType = "image/png",
@@ -415,9 +415,9 @@ public static class BlobAttachmentExample
415415
await session.SendAsync(new MessageOptions
416416
{
417417
Prompt = "Describe what you see in this image",
418-
Attachments = new List<UserMessageDataAttachmentsItem>
418+
Attachments = new List<UserMessageAttachment>
419419
{
420-
new UserMessageDataAttachmentsItemBlob
420+
new UserMessageAttachmentBlob
421421
{
422422
Data = base64ImageData,
423423
MimeType = "image/png",

dotnet/src/Client.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,11 @@ internal static async Task<T> InvokeRpcAsync<T>(JsonRpc rpc, string method, obje
10431043
return await InvokeRpcAsync<T>(rpc, method, args, null, cancellationToken);
10441044
}
10451045

1046+
internal static async Task InvokeRpcAsync(JsonRpc rpc, string method, object?[]? args, CancellationToken cancellationToken)
1047+
{
1048+
await InvokeRpcAsync<object>(rpc, method, args, null, cancellationToken);
1049+
}
1050+
10461051
internal static async Task<T> InvokeRpcAsync<T>(JsonRpc rpc, string method, object?[]? args, StringBuilder? stderrBuffer, CancellationToken cancellationToken)
10471052
{
10481053
try

0 commit comments

Comments
 (0)