Skip to content

Commit

Permalink
Added tool_resources support
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhantolga committed Jul 11, 2024
1 parent 4b72578 commit 5e65f37
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OpenAI.SDK/ObjectModels/SharedModels/AssistantResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,10 @@ public record AssistantResponse : BaseResponse, IOpenAiModels.IId, IOpenAiModels
/// </summary>
[JsonPropertyName("tools")]
public List<ToolDefinition> Tools { get; set; }

/// <summary>
/// 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.
/// </summary>
[JsonPropertyName("tool_resources")]
public ToolResources? ToolResources { get; set; }
}

0 comments on commit 5e65f37

Please sign in to comment.