From 5e65f37919f99852202fc75bb48c480f09a43c82 Mon Sep 17 00:00:00 2001 From: Tolga Kayhan Date: Thu, 11 Jul 2024 20:24:30 +0100 Subject: [PATCH] Added tool_resources support --- OpenAI.SDK/ObjectModels/SharedModels/AssistantResponse.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OpenAI.SDK/ObjectModels/SharedModels/AssistantResponse.cs b/OpenAI.SDK/ObjectModels/SharedModels/AssistantResponse.cs index a861a005..98ca7968 100644 --- a/OpenAI.SDK/ObjectModels/SharedModels/AssistantResponse.cs +++ b/OpenAI.SDK/ObjectModels/SharedModels/AssistantResponse.cs @@ -63,4 +63,10 @@ public record AssistantResponse : BaseResponse, IOpenAiModels.IId, IOpenAiModels /// [JsonPropertyName("tools")] public List Tools { get; set; } + + /// + /// A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the code_interpreter tool requires a list of file IDs, while the file_search tool requires a list of vector store IDs. + /// + [JsonPropertyName("tool_resources")] + public ToolResources? ToolResources { get; set; } } \ No newline at end of file