Skip to content

Commit

Permalink
use date time tool
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Jun 21, 2024
1 parent b9f4a99 commit 24420f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion OpenAI-DotNet-Tests/TestFixture_03_Threads.cs
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,11 @@ public async Task Test_04_02_CreateThreadAndRun_Streaming()
public async Task Test_04_03_CreateThreadAndRun_Streaming_ToolCalls()
{
Assert.NotNull(OpenAIClient.ThreadsEndpoint);
var tools = Tool.GetAllAvailableTools();

var tools = new List<Tool>
{
Tool.GetOrCreateTool(typeof(DateTimeUtility), nameof(DateTimeUtility.GetDateTime))
};
var assistantRequest = new CreateAssistantRequest(
instructions: "You are a helpful assistant.",
tools: tools);
Expand Down

0 comments on commit 24420f9

Please sign in to comment.