AiAgentControllerExecuteAgentAsync - метод
Call actions on the AI agent.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
[HttpPostAttribute("agent")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[TypedJsonBodyAttribute]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<AiResponse>> ExecuteAgentAsync(
[FromBodyAttribute] AiRequest request,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("agent")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<TypedJsonBodyAttribute>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function ExecuteAgentAsync (
<FromBodyAttribute> request As AiRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of AiResponse))
public:
[HttpPostAttribute(L"agent")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[TypedJsonBodyAttribute]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<AiResponse^>^>^ ExecuteAgentAsync(
[FromBodyAttribute] AiRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("agent")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<TypedJsonBodyAttribute>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member ExecuteAgentAsync :
[<FromBodyAttribute>] request : AiRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<AiResponse>>
- request AiRequest
Запрос, отправляемый ИИ-агенту из клиента (чат-компонента).
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskActionResultAiResponse
Ответ от ИИ-агента, отправляемый клиенту (чат-компоненту).