Skip to content

Commit

Permalink
fix incomplete run details (#47343)
Browse files Browse the repository at this point in the history
Fix incomplete run details
  • Loading branch information
M-Hietala authored Dec 3, 2024
1 parent d5ffdf2 commit 1b895fc
Show file tree
Hide file tree
Showing 37 changed files with 454 additions and 167 deletions.
57 changes: 42 additions & 15 deletions sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.net8.0.cs

Large diffs are not rendered by default.

57 changes: 42 additions & 15 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 @@ -128,7 +128,7 @@ public static AgentThread AgentThread(string id = null, DateTimeOffset createdAt
/// <param name="toolResources"> Override the tools the agent can use for this run. This is useful for modifying the behavior on a per-run basis. </param>
/// <param name="parallelToolCalls"> Determines if tools can be executed in parallel within the run. </param>
/// <returns> A new <see cref="Azure.AI.Projects.ThreadRun"/> instance for mocking. </returns>
public static ThreadRun ThreadRun(string id = null, string threadId = null, string agentId = null, RunStatus status = default, RequiredAction requiredAction = null, RunError lastError = null, string model = null, string instructions = null, IEnumerable<ToolDefinition> tools = null, DateTimeOffset createdAt = default, DateTimeOffset? expiresAt = null, DateTimeOffset? startedAt = null, DateTimeOffset? completedAt = null, DateTimeOffset? cancelledAt = null, DateTimeOffset? failedAt = null, IncompleteRunDetails? incompleteDetails = null, RunCompletionUsage usage = default, float? temperature = null, float? topP = null, int? maxPromptTokens = null, int? maxCompletionTokens = null, TruncationObject truncationStrategy = null, BinaryData toolChoice = null, BinaryData responseFormat = null, IReadOnlyDictionary<string, string> metadata = null, UpdateToolResourcesOptions toolResources = null, bool? parallelToolCalls = null)
public static ThreadRun ThreadRun(string id = null, string threadId = null, string agentId = null, RunStatus status = default, RequiredAction requiredAction = null, RunError lastError = null, string model = null, string instructions = null, IEnumerable<ToolDefinition> tools = null, DateTimeOffset createdAt = default, DateTimeOffset? expiresAt = null, DateTimeOffset? startedAt = null, DateTimeOffset? completedAt = null, DateTimeOffset? cancelledAt = null, DateTimeOffset? failedAt = null, IncompleteRunDetails incompleteDetails = default, RunCompletionUsage usage = default, float? temperature = null, float? topP = null, int? maxPromptTokens = null, int? maxCompletionTokens = null, TruncationObject truncationStrategy = null, BinaryData toolChoice = null, BinaryData responseFormat = null, IReadOnlyDictionary<string, string> metadata = null, UpdateToolResourcesOptions toolResources = null, bool? parallelToolCalls = null)
{
tools ??= new List<ToolDefinition>();
metadata ??= new Dictionary<string, string>();
Expand Down
12 changes: 10 additions & 2 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.

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

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

3 changes: 3 additions & 0 deletions sdk/ai/Azure.AI.Projects/src/Generated/AgentStreamEvent.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.

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

4 changes: 2 additions & 2 deletions sdk/ai/Azure.AI.Projects/src/Generated/CreateAgentRequest.cs

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

4 changes: 2 additions & 2 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 1b895fc

Please sign in to comment.