AiAgentExtensionsSendArtiChatRequestAsync - метод
Отправить чат-запрос в Arti.
Пространство имён: Tessa.Ai.AgentСборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
public static Task<string[]?> SendArtiChatRequestAsync(
this IArtiService artiService,
AiAgentContext context,
string? instructions,
JsonSchema? jsonSchema,
string? defaultModel = null,
string? jsonSchemaDescription = null,
CancellationToken cancellationToken = default
)
<ExtensionAttribute>
Public Shared Function SendArtiChatRequestAsync (
artiService As IArtiService,
context As AiAgentContext,
instructions As String,
jsonSchema As JsonSchema,
Optional defaultModel As String = Nothing,
Optional jsonSchemaDescription As String = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of String())
public:
[ExtensionAttribute]
static Task<array<String^>^>^ SendArtiChatRequestAsync(
IArtiService^ artiService,
AiAgentContext^ context,
String^ instructions,
JsonSchema^ jsonSchema,
String^ defaultModel = nullptr,
String^ jsonSchemaDescription = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
[<ExtensionAttribute>]
static member SendArtiChatRequestAsync :
artiService : IArtiService *
context : AiAgentContext *
instructions : string *
jsonSchema : JsonSchema *
?defaultModel : string *
?jsonSchemaDescription : string *
?cancellationToken : CancellationToken
(* Defaults:
let _defaultModel = defaultArg defaultModel null
let _jsonSchemaDescription = defaultArg jsonSchemaDescription null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<string[]>
- artiService IArtiService
Сервис для взаимодействия с веб-клиентом Arti
- context AiAgentContext
Контекст процесса ИИ-агента.
- instructions String
- Промпт сообщения.
- jsonSchema JsonSchema
- Схема сообщения.
- defaultModel String (Optional)
- Идентификатор языковой модели по умолчанию. Будет использована, если в запросе отсутствует идентификатор модели.
- jsonSchemaDescription String (Optional)
- Описание схемы.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskStringСписок ответных сообщений от ИИ.В Visual Basic и C# этот метод можно вызывать как метод экземпляра для любого объекта типа
IArtiService. При вызове метода для экземпляра следует опускать первый параметр. Дополнительные сведения см. в разделе
Методы расширения (Visual Basic) или
Методы расширения (Руководство по программированию в C#).