AssistantsClient.GetMessageFileAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets information about a file attachment to a message within a thread.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.OpenAI.Assistants.MessageFile>> GetMessageFileAsync (string threadId, string messageId, string fileId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMessageFileAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.OpenAI.Assistants.MessageFile>>
override this.GetMessageFileAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.OpenAI.Assistants.MessageFile>>
Public Overridable Function GetMessageFileAsync (threadId As String, messageId As String, fileId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MessageFile))
Parameters
- threadId
- String
The ID of the thread containing the message to get information from.
- messageId
- String
The ID of the message to get information from.
- fileId
- String
The ID of the file to get information about.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
threadId
, messageId
or fileId
is null.
threadId
, messageId
or fileId
is an empty string, and was expected to be non-empty.
Applies to
Azure SDK for .NET