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
16 changes: 8 additions & 8 deletions docs/features/image-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ public static class ImageInputExample
await session.SendAsync(new MessageOptions
{
Prompt = "Describe what you see in this image",
Attachments = new List<UserMessageDataAttachmentsItem>
Attachments = new List<UserMessageAttachment>
{
new UserMessageDataAttachmentsItemFile
new UserMessageAttachmentFile
{
Path = "/absolute/path/to/screenshot.png",
DisplayName = "screenshot.png",
Expand All @@ -206,9 +206,9 @@ await using var session = await client.CreateSessionAsync(new SessionConfig
await session.SendAsync(new MessageOptions
{
Prompt = "Describe what you see in this image",
Attachments = new List<UserMessageDataAttachmentsItem>
Attachments = new List<UserMessageAttachment>
{
new UserMessageDataAttachmentsItemFile
new UserMessageAttachmentFile
{
Path = "/absolute/path/to/screenshot.png",
DisplayName = "screenshot.png",
Expand Down Expand Up @@ -396,9 +396,9 @@ public static class BlobAttachmentExample
await session.SendAsync(new MessageOptions
{
Prompt = "Describe what you see in this image",
Attachments = new List<UserMessageDataAttachmentsItem>
Attachments = new List<UserMessageAttachment>
{
new UserMessageDataAttachmentsItemBlob
new UserMessageAttachmentBlob
{
Data = base64ImageData,
MimeType = "image/png",
Expand All @@ -415,9 +415,9 @@ public static class BlobAttachmentExample
await session.SendAsync(new MessageOptions
{
Prompt = "Describe what you see in this image",
Attachments = new List<UserMessageDataAttachmentsItem>
Attachments = new List<UserMessageAttachment>
{
new UserMessageDataAttachmentsItemBlob
new UserMessageAttachmentBlob
{
Data = base64ImageData,
MimeType = "image/png",
Expand Down
5 changes: 5 additions & 0 deletions dotnet/src/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,11 @@ internal static async Task<T> InvokeRpcAsync<T>(JsonRpc rpc, string method, obje
return await InvokeRpcAsync<T>(rpc, method, args, null, cancellationToken);
}

internal static async Task InvokeRpcAsync(JsonRpc rpc, string method, object?[]? args, CancellationToken cancellationToken)
{
await InvokeRpcAsync<object>(rpc, method, args, null, cancellationToken);
}

internal static async Task<T> InvokeRpcAsync<T>(JsonRpc rpc, string method, object?[]? args, StringBuilder? stderrBuffer, CancellationToken cancellationToken)
{
try
Expand Down
Loading
Loading