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