in src/Custom/Assistants/AssistantClient.Protocol.cs [301:382]
public virtual Task<ClientResult> GetMessageAsync(string threadId, string messageId, RequestOptions options)
=> _messageSubClient.GetMessageAsync(threadId, messageId, options);
/// <inheritdoc cref="InternalAssistantMessageClient.GetMessage"/>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual ClientResult GetMessage(string threadId, string messageId, RequestOptions options)
=> _messageSubClient.GetMessage(threadId, messageId, options);
/// <inheritdoc cref="InternalAssistantMessageClient.ModifyMessageAsync"/>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Task<ClientResult> ModifyMessageAsync(string threadId, string messageId, BinaryContent content, RequestOptions options = null)
=> _messageSubClient.ModifyMessageAsync(threadId, messageId, content, options);
/// <inheritdoc cref="InternalAssistantMessageClient.ModifyMessage"/>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual ClientResult ModifyMessage(string threadId, string messageId, BinaryContent content, RequestOptions options = null)
=> _messageSubClient.ModifyMessage(threadId, messageId, content, options);
/// <inheritdoc cref="InternalAssistantMessageClient.DeleteMessageAsync"/>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Task<ClientResult> DeleteMessageAsync(string threadId, string messageId, RequestOptions options)
=> _messageSubClient.DeleteMessageAsync(threadId, messageId, options);
/// <inheritdoc cref="InternalAssistantMessageClient.DeleteMessage"/>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual ClientResult DeleteMessage(string threadId, string messageId, RequestOptions options)
=> _messageSubClient.DeleteMessage(threadId, messageId, options);
/// <inheritdoc cref="InternalAssistantRunClient.CreateThreadAndRunAsync"/>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Task<ClientResult> CreateThreadAndRunAsync(BinaryContent content, RequestOptions options = null)
=> _runSubClient.CreateThreadAndRunAsync(content, options);
/// <inheritdoc cref="InternalAssistantRunClient.CreateThreadAndRun"/>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual ClientResult CreateThreadAndRun(BinaryContent content, RequestOptions options = null)
=> _runSubClient.CreateThreadAndRun(content, options = null);
/// <inheritdoc cref="InternalAssistantRunClient.CreateRunAsync"/>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual Task<ClientResult> CreateRunAsync(string threadId, BinaryContent content, RequestOptions options = null)
=> _runSubClient.CreateRunAsync(threadId, content, options);
/// <inheritdoc cref="InternalAssistantRunClient.CreateRun"/>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual ClientResult CreateRun(string threadId, BinaryContent content, RequestOptions options = null)
=> _runSubClient.CreateRun(threadId, content, options);
/// <summary>
/// [Protocol Method] Returns a paginated collection of runs belonging to a thread.
/// </summary>
/// <param name="threadId"> The ID of the thread the run belongs to. </param>
/// <param name="limit">
/// A limit on the number of objects to be returned. Limit can range between 1 and 100, and the
/// default is 20.
/// </param>
/// <param name="order">
/// Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`
/// for descending order. Allowed values: "asc" | "desc"
/// </param>
/// <param name="after">
/// A cursor for use in pagination. `after` is an object ID that defines your place in the list.
/// For instance, if you make a list request and receive 100 objects, ending with obj_foo, your
/// subsequent call can include after=obj_foo in order to fetch the next page of the list.
/// </param>
/// <param name="before">
/// A cursor for use in pagination. `before` is an object ID that defines your place in the list.
/// For instance, if you make a list request and receive 100 objects, ending with obj_foo, your
/// subsequent call can include before=obj_foo in order to fetch the previous page of the list.
/// </param>
/// <param name="options"> The request options, which can override default behaviors of the client pipeline on a per-call basis. </param>
/// <exception cref="ArgumentNullException"> <paramref name="threadId"/> is null. </exception>
/// <exception cref="ArgumentException"> <paramref name="threadId"/> is an empty string, and was expected to be non-empty. </exception>
/// <exception cref="ClientResultException"> Service returned a non-success status code. </exception>
/// <returns> A collection of service responses, each holding a page of values. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual AsyncCollectionResult GetRunsAsync(string threadId, int? limit, string order, string after, string before, RequestOptions options)
{
Argument.AssertNotNullOrEmpty(threadId, nameof(threadId));
return new AsyncRunCollectionResult(_runSubClient, options, threadId, limit, order, after, before);
}