Skip to content

Commit

Permalink
Regenerate code and add sample for additional messages (#47272)
Browse files Browse the repository at this point in the history
* Reenerate code and add sample for additional messages

* Generate code

* Fix
  • Loading branch information
nick863 authored Nov 21, 2024
1 parent cee0a67 commit 42a6b1f
Show file tree
Hide file tree
Showing 24 changed files with 253 additions and 122 deletions.
53 changes: 28 additions & 25 deletions sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.net8.0.cs

Large diffs are not rendered by default.

53 changes: 28 additions & 25 deletions sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.netstandard2.0.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public static ThreadMessage ThreadMessage(string id = null, DateTimeOffset creat
attachments ??= new List<MessageAttachment>();
metadata ??= new Dictionary<string, string>();

return new ThreadMessage(id, @object: null, createdAt, threadId, status, incompleteDetails, completedAt, incompleteAt, role, contentItems?.ToList(), agentId, runId, attachments?.ToList(), metadata, serializedAdditionalRawData: null);
return new ThreadMessage(id, @object: null, createdAt, threadId, status, incompleteDetails, completedAt, incompleteAt, role, contentItems?.ToList(), agentId, runId, attachments?.ToList(), (IReadOnlyDictionary<string, string>)metadata, serializedAdditionalRawData: null);
}

public static RequiredFunctionToolCall RequiredFunctionToolCall(string toolCallId, string functionName, string functionArguments)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public virtual AsyncCollectionResult<StreamingUpdate> CreateRunStreamingAsync(st
overrideModelName,
overrideInstructions,
additionalInstructions,
additionalMessages?.ToList() as IReadOnlyList<ThreadMessage> ?? new ChangeTrackingList<ThreadMessage>(),
additionalMessages?.ToList() as IReadOnlyList<ThreadMessageOptions> ?? new ChangeTrackingList<ThreadMessageOptions>(),
overrideTools?.ToList() as IReadOnlyList<ToolDefinition> ?? new ChangeTrackingList<ToolDefinition>(),
stream: true,
temperature,
Expand Down Expand Up @@ -142,7 +142,7 @@ public virtual CollectionResult<StreamingUpdate> CreateRunStreaming(string threa
overrideModelName,
overrideInstructions,
additionalInstructions,
additionalMessages?.ToList() as IReadOnlyList<ThreadMessage> ?? new ChangeTrackingList<ThreadMessage>(),
additionalMessages?.ToList() as IReadOnlyList<ThreadMessageOptions> ?? new ChangeTrackingList<ThreadMessageOptions>(),
overrideTools?.ToList() as IReadOnlyList<ToolDefinition> ?? new ChangeTrackingList<ToolDefinition>(),
stream: true,
temperature,
Expand Down
25 changes: 22 additions & 3 deletions sdk/ai/Azure.AI.Projects/src/Generated/AIProjectsModelFactory.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions sdk/ai/Azure.AI.Projects/src/Generated/AgentsClient.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions sdk/ai/Azure.AI.Projects/src/Generated/CreateRunRequest.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 42a6b1f

Please sign in to comment.