次の方法で共有


AssistantsModelFactory.Assistant Method

Definition

Initializes a new instance of Assistant.

public static Azure.AI.OpenAI.Assistants.Assistant Assistant (string id = default, DateTimeOffset createdAt = default, string name = default, string description = default, string model = default, string instructions = default, System.Collections.Generic.IEnumerable<Azure.AI.OpenAI.Assistants.ToolDefinition> tools = default, System.Collections.Generic.IEnumerable<string> fileIds = default, System.Collections.Generic.IReadOnlyDictionary<string,string> metadata = default);
static member Assistant : string * DateTimeOffset * string * string * string * string * seq<Azure.AI.OpenAI.Assistants.ToolDefinition> * seq<string> * System.Collections.Generic.IReadOnlyDictionary<string, string> -> Azure.AI.OpenAI.Assistants.Assistant
Public Shared Function Assistant (Optional id As String = Nothing, Optional createdAt As DateTimeOffset = Nothing, Optional name As String = Nothing, Optional description As String = Nothing, Optional model As String = Nothing, Optional instructions As String = Nothing, Optional tools As IEnumerable(Of ToolDefinition) = Nothing, Optional fileIds As IEnumerable(Of String) = Nothing, Optional metadata As IReadOnlyDictionary(Of String, String) = Nothing) As Assistant

Parameters

id
String

The identifier, which can be referenced in API endpoints.

createdAt
DateTimeOffset

The Unix timestamp, in seconds, representing when this object was created.

name
String

The name of the assistant.

description
String

The description of the assistant.

model
String

The ID of the model to use.

instructions
String

The system instructions for the assistant to use.

tools
IEnumerable<ToolDefinition>

The collection of tools enabled for the assistant.

fileIds
IEnumerable<String>

A list of attached file IDs, ordered by creation date in ascending order.

metadata
IReadOnlyDictionary<String,String>

A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.

Returns

A new Assistant instance for mocking.

Applies to