AiPromptTestEngineControllerPostGetTestFileTemplate - метод
Get a test templates.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.2+a8f0dd3c063817b2e3f05a923303d808e447c338
[HttpPostAttribute("test-template")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<List<AiTestFile>>> PostGetTestFileTemplate(
[FromBodyAttribute] AiPromptTestTemplateRequest request,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("test-template")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostGetTestFileTemplate (
<FromBodyAttribute> request As AiPromptTestTemplateRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of List(Of AiTestFile)))
public:
[HttpPostAttribute(L"test-template")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<List<AiTestFile^>^>^>^ PostGetTestFileTemplate(
[FromBodyAttribute] AiPromptTestTemplateRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("test-template")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostGetTestFileTemplate :
[<FromBodyAttribute>] request : AiPromptTestTemplateRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<List<AiTestFile>>>
- request AiPromptTestTemplateRequest
Запрос на получение шаблонов тестирования промптов.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskActionResultListAiTestFileTesting file templates.