Skip to content

How to do a file search #355

Answered by StephenHodgson
tydinj asked this question in Q&A
Discussion options

You must be logged in to vote

You can either add Tool.FileSearch to your list of tools:

var tools = new List<Tool>
{
    Tool.FileSearch, // or
    new Tool(new FileSearchOptions(20))
};

then do something like this:

message = await thread.CreateMessageAsync(new(
    content: "Test create message",
    attachments: new[] { new Attachment(file.Id, Tool.FileSearch) }
));

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by StephenHodgson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #354 on August 19, 2024 21:19.