@iblai/iblai-api 4.476.4-ai → 4.477.0-ai
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +5 -5
- package/dist/index.esm.js +5 -5
- package/dist/index.umd.js +5 -5
- package/dist/types/index.d.ts +2 -0
- package/dist/types/models/ClassifierTestRequest.d.ts +8 -0
- package/dist/types/models/ClassifierTestResponse.d.ts +9 -0
- package/dist/types/models/PatchedWorkflow.d.ts +5 -0
- package/dist/types/models/Workflow.d.ts +5 -0
- package/dist/types/services/AiMentorService.d.ts +8 -11
- package/package.json +1 -1
- package/sdk_schema.yml +97 -14
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +2 -0
- package/src/models/ClassifierTestRequest.ts +13 -0
- package/src/models/ClassifierTestResponse.ts +14 -0
- package/src/models/PatchedWorkflow.ts +5 -0
- package/src/models/Workflow.ts +5 -0
- package/src/services/AiMentorService.ts +14 -13
package/dist/index.cjs.js
CHANGED
|
@@ -110,7 +110,7 @@ class CancelablePromise {
|
|
|
110
110
|
|
|
111
111
|
const OpenAPI = {
|
|
112
112
|
BASE: 'https://base.manager.iblai.app',
|
|
113
|
-
VERSION: '4.
|
|
113
|
+
VERSION: '4.477.0-ai-plus',
|
|
114
114
|
WITH_CREDENTIALS: false,
|
|
115
115
|
CREDENTIALS: 'include',
|
|
116
116
|
TOKEN: undefined,
|
|
@@ -22423,11 +22423,11 @@ class AiMentorService{/**
|
|
|
22423
22423
|
* @returns any Workflow activated
|
|
22424
22424
|
* @throws ApiError
|
|
22425
22425
|
*/static aiMentorOrgsWorkflowsActivateCreate({org,uniqueId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/workflows/{unique_id}/activate/',path:{'org':org,'unique_id':uniqueId},body:requestBody,mediaType:'application/json',errors:{400:`Validation failed`}});}/**
|
|
22426
|
-
*
|
|
22427
|
-
*
|
|
22428
|
-
* @returns
|
|
22426
|
+
* Try a classifier node
|
|
22427
|
+
* Run one saved classifier node on a sample message and return its answer and route, without running the workflow. Calls the decision model, which is billed like any other model call. `variables` fill {{variables.<name>}} placeholders; {{steps.<node_id>}} placeholders render empty because no earlier step has run.
|
|
22428
|
+
* @returns ClassifierTestResponse
|
|
22429
22429
|
* @throws ApiError
|
|
22430
|
-
*/static
|
|
22430
|
+
*/static aiMentorOrgsWorkflowsClassifierTestCreate({org,uniqueId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/workflows/{unique_id}/classifier-test/',path:{'org':org,'unique_id':uniqueId},body:requestBody,mediaType:'application/json',errors:{400:`Not a classifier, or invalid settings`,402:`Insufficient credits`,403:`Permission denied`,429:`A spend cap is reached`,502:`The decision model failed`}});}/**
|
|
22431
22431
|
* Deactivate a workflow
|
|
22432
22432
|
* Take a workflow offline while preserving its saved state.
|
|
22433
22433
|
* @returns any Workflow deactivated
|
package/dist/index.esm.js
CHANGED
|
@@ -108,7 +108,7 @@ class CancelablePromise {
|
|
|
108
108
|
|
|
109
109
|
const OpenAPI = {
|
|
110
110
|
BASE: 'https://base.manager.iblai.app',
|
|
111
|
-
VERSION: '4.
|
|
111
|
+
VERSION: '4.477.0-ai-plus',
|
|
112
112
|
WITH_CREDENTIALS: false,
|
|
113
113
|
CREDENTIALS: 'include',
|
|
114
114
|
TOKEN: undefined,
|
|
@@ -22421,11 +22421,11 @@ class AiMentorService{/**
|
|
|
22421
22421
|
* @returns any Workflow activated
|
|
22422
22422
|
* @throws ApiError
|
|
22423
22423
|
*/static aiMentorOrgsWorkflowsActivateCreate({org,uniqueId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/workflows/{unique_id}/activate/',path:{'org':org,'unique_id':uniqueId},body:requestBody,mediaType:'application/json',errors:{400:`Validation failed`}});}/**
|
|
22424
|
-
*
|
|
22425
|
-
*
|
|
22426
|
-
* @returns
|
|
22424
|
+
* Try a classifier node
|
|
22425
|
+
* Run one saved classifier node on a sample message and return its answer and route, without running the workflow. Calls the decision model, which is billed like any other model call. `variables` fill {{variables.<name>}} placeholders; {{steps.<node_id>}} placeholders render empty because no earlier step has run.
|
|
22426
|
+
* @returns ClassifierTestResponse
|
|
22427
22427
|
* @throws ApiError
|
|
22428
|
-
*/static
|
|
22428
|
+
*/static aiMentorOrgsWorkflowsClassifierTestCreate({org,uniqueId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/workflows/{unique_id}/classifier-test/',path:{'org':org,'unique_id':uniqueId},body:requestBody,mediaType:'application/json',errors:{400:`Not a classifier, or invalid settings`,402:`Insufficient credits`,403:`Permission denied`,429:`A spend cap is reached`,502:`The decision model failed`}});}/**
|
|
22429
22429
|
* Deactivate a workflow
|
|
22430
22430
|
* Take a workflow offline while preserving its saved state.
|
|
22431
22431
|
* @returns any Workflow deactivated
|
package/dist/index.umd.js
CHANGED
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
|
|
115
115
|
const OpenAPI = {
|
|
116
116
|
BASE: 'https://base.manager.iblai.app',
|
|
117
|
-
VERSION: '4.
|
|
117
|
+
VERSION: '4.477.0-ai-plus',
|
|
118
118
|
WITH_CREDENTIALS: false,
|
|
119
119
|
CREDENTIALS: 'include',
|
|
120
120
|
TOKEN: undefined,
|
|
@@ -22427,11 +22427,11 @@
|
|
|
22427
22427
|
* @returns any Workflow activated
|
|
22428
22428
|
* @throws ApiError
|
|
22429
22429
|
*/static aiMentorOrgsWorkflowsActivateCreate({org,uniqueId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/workflows/{unique_id}/activate/',path:{'org':org,'unique_id':uniqueId},body:requestBody,mediaType:'application/json',errors:{400:`Validation failed`}});}/**
|
|
22430
|
-
*
|
|
22431
|
-
*
|
|
22432
|
-
* @returns
|
|
22430
|
+
* Try a classifier node
|
|
22431
|
+
* Run one saved classifier node on a sample message and return its answer and route, without running the workflow. Calls the decision model, which is billed like any other model call. `variables` fill {{variables.<name>}} placeholders; {{steps.<node_id>}} placeholders render empty because no earlier step has run.
|
|
22432
|
+
* @returns ClassifierTestResponse
|
|
22433
22433
|
* @throws ApiError
|
|
22434
|
-
*/static
|
|
22434
|
+
*/static aiMentorOrgsWorkflowsClassifierTestCreate({org,uniqueId,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/workflows/{unique_id}/classifier-test/',path:{'org':org,'unique_id':uniqueId},body:requestBody,mediaType:'application/json',errors:{400:`Not a classifier, or invalid settings`,402:`Insufficient credits`,403:`Permission denied`,429:`A spend cap is reached`,502:`The decision model failed`}});}/**
|
|
22435
22435
|
* Deactivate a workflow
|
|
22436
22436
|
* Take a workflow offline while preserving its saved state.
|
|
22437
22437
|
* @returns any Workflow deactivated
|
package/dist/types/index.d.ts
CHANGED
|
@@ -121,6 +121,8 @@ export type { ChatSessionResponse } from './models/ChatSessionResponse';
|
|
|
121
121
|
export type { CheckDocumentTrainingStatus } from './models/CheckDocumentTrainingStatus';
|
|
122
122
|
export type { CheckoutSessionCreate } from './models/CheckoutSessionCreate';
|
|
123
123
|
export type { CheckoutSessionResponse } from './models/CheckoutSessionResponse';
|
|
124
|
+
export type { ClassifierTestRequest } from './models/ClassifierTestRequest';
|
|
125
|
+
export type { ClassifierTestResponse } from './models/ClassifierTestResponse';
|
|
124
126
|
export type { ClawConfigGetResponse } from './models/ClawConfigGetResponse';
|
|
125
127
|
export type { ClawInstance } from './models/ClawInstance';
|
|
126
128
|
export { ClawInstanceStatusEnum } from './models/ClawInstanceStatusEnum';
|
|
@@ -48,6 +48,11 @@ export type PatchedWorkflow = {
|
|
|
48
48
|
* Get the number of edges in the workflow definition.
|
|
49
49
|
*/
|
|
50
50
|
readonly edge_count?: number;
|
|
51
|
+
readonly published_at?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the saved draft differs from the published copy.
|
|
54
|
+
*/
|
|
55
|
+
readonly has_unpublished_changes?: boolean;
|
|
51
56
|
readonly entry_mentor_id?: string;
|
|
52
57
|
/**
|
|
53
58
|
* Display name for chat (updates entry_mentor.name)
|
|
@@ -48,6 +48,11 @@ export type Workflow = {
|
|
|
48
48
|
* Get the number of edges in the workflow definition.
|
|
49
49
|
*/
|
|
50
50
|
readonly edge_count: number;
|
|
51
|
+
readonly published_at: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the saved draft differs from the published copy.
|
|
54
|
+
*/
|
|
55
|
+
readonly has_unpublished_changes: boolean;
|
|
51
56
|
readonly entry_mentor_id: string;
|
|
52
57
|
/**
|
|
53
58
|
* Display name for chat (updates entry_mentor.name)
|
|
@@ -20,6 +20,8 @@ import type { ChatHistorySessionId } from '../models/ChatHistorySessionId';
|
|
|
20
20
|
import type { ChatRunTracker } from '../models/ChatRunTracker';
|
|
21
21
|
import type { ChatSessionRequest } from '../models/ChatSessionRequest';
|
|
22
22
|
import type { ChatSessionResponse } from '../models/ChatSessionResponse';
|
|
23
|
+
import type { ClassifierTestRequest } from '../models/ClassifierTestRequest';
|
|
24
|
+
import type { ClassifierTestResponse } from '../models/ClassifierTestResponse';
|
|
23
25
|
import type { ClawConfigGetResponse } from '../models/ClawConfigGetResponse';
|
|
24
26
|
import type { ClawInstance } from '../models/ClawInstance';
|
|
25
27
|
import type { ClawMentorConfig } from '../models/ClawMentorConfig';
|
|
@@ -11913,21 +11915,16 @@ export declare class AiMentorService {
|
|
|
11913
11915
|
requestBody: Workflow;
|
|
11914
11916
|
}): CancelablePromise<any>;
|
|
11915
11917
|
/**
|
|
11916
|
-
*
|
|
11917
|
-
*
|
|
11918
|
-
* @returns
|
|
11918
|
+
* Try a classifier node
|
|
11919
|
+
* Run one saved classifier node on a sample message and return its answer and route, without running the workflow. Calls the decision model, which is billed like any other model call. `variables` fill {{variables.<name>}} placeholders; {{steps.<node_id>}} placeholders render empty because no earlier step has run.
|
|
11920
|
+
* @returns ClassifierTestResponse
|
|
11919
11921
|
* @throws ApiError
|
|
11920
11922
|
*/
|
|
11921
|
-
static
|
|
11923
|
+
static aiMentorOrgsWorkflowsClassifierTestCreate({ org, uniqueId, requestBody, }: {
|
|
11922
11924
|
org: string;
|
|
11923
11925
|
uniqueId: string;
|
|
11924
|
-
requestBody
|
|
11925
|
-
|
|
11926
|
-
* The message to send
|
|
11927
|
-
*/
|
|
11928
|
-
message: string;
|
|
11929
|
-
};
|
|
11930
|
-
}): CancelablePromise<any>;
|
|
11926
|
+
requestBody: ClassifierTestRequest;
|
|
11927
|
+
}): CancelablePromise<ClassifierTestResponse>;
|
|
11931
11928
|
/**
|
|
11932
11929
|
* Deactivate a workflow
|
|
11933
11930
|
* Take a workflow offline while preserving its saved state.
|
package/package.json
CHANGED
package/sdk_schema.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ibl-data-manager
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.477.0-ai-plus
|
|
5
5
|
description: API for iblai
|
|
6
6
|
paths:
|
|
7
7
|
/api/ai-account/connected-services/callback/:
|
|
@@ -40212,11 +40212,11 @@ paths:
|
|
|
40212
40212
|
description: Workflow activated
|
|
40213
40213
|
'400':
|
|
40214
40214
|
description: Validation failed
|
|
40215
|
-
/api/ai-mentor/orgs/{org}/workflows/{unique_id}/
|
|
40215
|
+
/api/ai-mentor/orgs/{org}/workflows/{unique_id}/classifier-test/:
|
|
40216
40216
|
post:
|
|
40217
|
-
operationId:
|
|
40218
|
-
description:
|
|
40219
|
-
summary:
|
|
40217
|
+
operationId: ai_mentor_orgs_workflows_classifier_test_create
|
|
40218
|
+
description: Run one saved classifier node on a sample message and return its answer and route, without running the workflow. Calls the decision model, which is billed like any other model call. `variables` fill {{variables.<name>}} placeholders; {{steps.<node_id>}} placeholders render empty because no earlier step has run.
|
|
40219
|
+
summary: Try a classifier node
|
|
40220
40220
|
parameters:
|
|
40221
40221
|
- in: path
|
|
40222
40222
|
name: org
|
|
@@ -40235,20 +40235,39 @@ paths:
|
|
|
40235
40235
|
content:
|
|
40236
40236
|
application/json:
|
|
40237
40237
|
schema:
|
|
40238
|
-
|
|
40239
|
-
|
|
40240
|
-
|
|
40241
|
-
|
|
40242
|
-
|
|
40243
|
-
|
|
40244
|
-
|
|
40238
|
+
$ref: '#/components/schemas/ClassifierTestRequest'
|
|
40239
|
+
application/scim+json:
|
|
40240
|
+
schema:
|
|
40241
|
+
$ref: '#/components/schemas/ClassifierTestRequest'
|
|
40242
|
+
application/x-www-form-urlencoded:
|
|
40243
|
+
schema:
|
|
40244
|
+
$ref: '#/components/schemas/ClassifierTestRequest'
|
|
40245
|
+
multipart/form-data:
|
|
40246
|
+
schema:
|
|
40247
|
+
$ref: '#/components/schemas/ClassifierTestRequest'
|
|
40248
|
+
'*/*':
|
|
40249
|
+
schema:
|
|
40250
|
+
$ref: '#/components/schemas/ClassifierTestRequest'
|
|
40251
|
+
required: true
|
|
40245
40252
|
security:
|
|
40246
40253
|
- PlatformApiKeyAuthentication: []
|
|
40247
40254
|
responses:
|
|
40248
40255
|
'200':
|
|
40249
|
-
|
|
40256
|
+
content:
|
|
40257
|
+
application/json:
|
|
40258
|
+
schema:
|
|
40259
|
+
$ref: '#/components/schemas/ClassifierTestResponse'
|
|
40260
|
+
description: ''
|
|
40250
40261
|
'400':
|
|
40251
|
-
description:
|
|
40262
|
+
description: Not a classifier, or invalid settings
|
|
40263
|
+
'402':
|
|
40264
|
+
description: Insufficient credits
|
|
40265
|
+
'403':
|
|
40266
|
+
description: Permission denied
|
|
40267
|
+
'429':
|
|
40268
|
+
description: A spend cap is reached
|
|
40269
|
+
'502':
|
|
40270
|
+
description: The decision model failed
|
|
40252
40271
|
/api/ai-mentor/orgs/{org}/workflows/{unique_id}/deactivate/:
|
|
40253
40272
|
post:
|
|
40254
40273
|
operationId: ai_mentor_orgs_workflows_deactivate_create
|
|
@@ -95349,6 +95368,52 @@ components:
|
|
|
95349
95368
|
- checkout_url
|
|
95350
95369
|
- platform_key
|
|
95351
95370
|
- session_id
|
|
95371
|
+
ClassifierTestRequest:
|
|
95372
|
+
type: object
|
|
95373
|
+
description: One trial run of a saved classifier node.
|
|
95374
|
+
properties:
|
|
95375
|
+
node_id:
|
|
95376
|
+
type: string
|
|
95377
|
+
maxLength: 255
|
|
95378
|
+
input:
|
|
95379
|
+
type: string
|
|
95380
|
+
maxLength: 20000
|
|
95381
|
+
variables:
|
|
95382
|
+
type: object
|
|
95383
|
+
additionalProperties: {}
|
|
95384
|
+
required:
|
|
95385
|
+
- input
|
|
95386
|
+
- node_id
|
|
95387
|
+
ClassifierTestResponse:
|
|
95388
|
+
type: object
|
|
95389
|
+
properties:
|
|
95390
|
+
answer:
|
|
95391
|
+
type: string
|
|
95392
|
+
nullable: true
|
|
95393
|
+
confidence:
|
|
95394
|
+
type: number
|
|
95395
|
+
format: double
|
|
95396
|
+
nullable: true
|
|
95397
|
+
probabilities:
|
|
95398
|
+
type: object
|
|
95399
|
+
additionalProperties: {}
|
|
95400
|
+
nullable: true
|
|
95401
|
+
route:
|
|
95402
|
+
type: string
|
|
95403
|
+
uncertain:
|
|
95404
|
+
type: boolean
|
|
95405
|
+
output:
|
|
95406
|
+
type: string
|
|
95407
|
+
model:
|
|
95408
|
+
type: string
|
|
95409
|
+
required:
|
|
95410
|
+
- answer
|
|
95411
|
+
- confidence
|
|
95412
|
+
- model
|
|
95413
|
+
- output
|
|
95414
|
+
- probabilities
|
|
95415
|
+
- route
|
|
95416
|
+
- uncertain
|
|
95352
95417
|
ClawConfigGetResponse:
|
|
95353
95418
|
type: object
|
|
95354
95419
|
description: 'Documents the ``config.get`` payload shape.
|
|
@@ -116634,6 +116699,14 @@ components:
|
|
|
116634
116699
|
type: integer
|
|
116635
116700
|
description: Get the number of edges in the workflow definition.
|
|
116636
116701
|
readOnly: true
|
|
116702
|
+
published_at:
|
|
116703
|
+
type: string
|
|
116704
|
+
format: date-time
|
|
116705
|
+
readOnly: true
|
|
116706
|
+
has_unpublished_changes:
|
|
116707
|
+
type: boolean
|
|
116708
|
+
readOnly: true
|
|
116709
|
+
description: Whether the saved draft differs from the published copy.
|
|
116637
116710
|
entry_mentor_id:
|
|
116638
116711
|
type: string
|
|
116639
116712
|
format: uuid
|
|
@@ -133523,6 +133596,14 @@ components:
|
|
|
133523
133596
|
type: integer
|
|
133524
133597
|
description: Get the number of edges in the workflow definition.
|
|
133525
133598
|
readOnly: true
|
|
133599
|
+
published_at:
|
|
133600
|
+
type: string
|
|
133601
|
+
format: date-time
|
|
133602
|
+
readOnly: true
|
|
133603
|
+
has_unpublished_changes:
|
|
133604
|
+
type: boolean
|
|
133605
|
+
readOnly: true
|
|
133606
|
+
description: Whether the saved draft differs from the published copy.
|
|
133526
133607
|
entry_mentor_id:
|
|
133527
133608
|
type: string
|
|
133528
133609
|
format: uuid
|
|
@@ -133542,12 +133623,14 @@ components:
|
|
|
133542
133623
|
- definition
|
|
133543
133624
|
- edge_count
|
|
133544
133625
|
- entry_mentor_id
|
|
133626
|
+
- has_unpublished_changes
|
|
133545
133627
|
- id
|
|
133546
133628
|
- name
|
|
133547
133629
|
- node_count
|
|
133548
133630
|
- platform
|
|
133549
133631
|
- platform_key
|
|
133550
133632
|
- platform_name
|
|
133633
|
+
- published_at
|
|
133551
133634
|
- unique_id
|
|
133552
133635
|
- updated_at
|
|
133553
133636
|
XblockResult:
|
package/src/core/OpenAPI.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -126,6 +126,8 @@ export type { ChatSessionResponse } from './models/ChatSessionResponse';
|
|
|
126
126
|
export type { CheckDocumentTrainingStatus } from './models/CheckDocumentTrainingStatus';
|
|
127
127
|
export type { CheckoutSessionCreate } from './models/CheckoutSessionCreate';
|
|
128
128
|
export type { CheckoutSessionResponse } from './models/CheckoutSessionResponse';
|
|
129
|
+
export type { ClassifierTestRequest } from './models/ClassifierTestRequest';
|
|
130
|
+
export type { ClassifierTestResponse } from './models/ClassifierTestResponse';
|
|
129
131
|
export type { ClawConfigGetResponse } from './models/ClawConfigGetResponse';
|
|
130
132
|
export type { ClawInstance } from './models/ClawInstance';
|
|
131
133
|
export { ClawInstanceStatusEnum } from './models/ClawInstanceStatusEnum';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* One trial run of a saved classifier node.
|
|
7
|
+
*/
|
|
8
|
+
export type ClassifierTestRequest = {
|
|
9
|
+
node_id: string;
|
|
10
|
+
input: string;
|
|
11
|
+
variables?: Record<string, any>;
|
|
12
|
+
};
|
|
13
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type ClassifierTestResponse = {
|
|
6
|
+
answer: string | null;
|
|
7
|
+
confidence: number | null;
|
|
8
|
+
probabilities: Record<string, any> | null;
|
|
9
|
+
route: string;
|
|
10
|
+
uncertain: boolean;
|
|
11
|
+
output: string;
|
|
12
|
+
model: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
@@ -52,6 +52,11 @@ export type PatchedWorkflow = {
|
|
|
52
52
|
* Get the number of edges in the workflow definition.
|
|
53
53
|
*/
|
|
54
54
|
readonly edge_count?: number;
|
|
55
|
+
readonly published_at?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the saved draft differs from the published copy.
|
|
58
|
+
*/
|
|
59
|
+
readonly has_unpublished_changes?: boolean;
|
|
55
60
|
readonly entry_mentor_id?: string;
|
|
56
61
|
/**
|
|
57
62
|
* Display name for chat (updates entry_mentor.name)
|
package/src/models/Workflow.ts
CHANGED
|
@@ -52,6 +52,11 @@ export type Workflow = {
|
|
|
52
52
|
* Get the number of edges in the workflow definition.
|
|
53
53
|
*/
|
|
54
54
|
readonly edge_count: number;
|
|
55
|
+
readonly published_at: string;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the saved draft differs from the published copy.
|
|
58
|
+
*/
|
|
59
|
+
readonly has_unpublished_changes: boolean;
|
|
55
60
|
readonly entry_mentor_id: string;
|
|
56
61
|
/**
|
|
57
62
|
* Display name for chat (updates entry_mentor.name)
|
|
@@ -24,6 +24,8 @@ import type { ChatHistorySessionId } from '../models/ChatHistorySessionId';
|
|
|
24
24
|
import type { ChatRunTracker } from '../models/ChatRunTracker';
|
|
25
25
|
import type { ChatSessionRequest } from '../models/ChatSessionRequest';
|
|
26
26
|
import type { ChatSessionResponse } from '../models/ChatSessionResponse';
|
|
27
|
+
import type { ClassifierTestRequest } from '../models/ClassifierTestRequest';
|
|
28
|
+
import type { ClassifierTestResponse } from '../models/ClassifierTestResponse';
|
|
27
29
|
import type { ClawConfigGetResponse } from '../models/ClawConfigGetResponse';
|
|
28
30
|
import type { ClawInstance } from '../models/ClawInstance';
|
|
29
31
|
import type { ClawMentorConfig } from '../models/ClawMentorConfig';
|
|
@@ -23645,28 +23647,23 @@ export class AiMentorService {
|
|
|
23645
23647
|
});
|
|
23646
23648
|
}
|
|
23647
23649
|
/**
|
|
23648
|
-
*
|
|
23649
|
-
*
|
|
23650
|
-
* @returns
|
|
23650
|
+
* Try a classifier node
|
|
23651
|
+
* Run one saved classifier node on a sample message and return its answer and route, without running the workflow. Calls the decision model, which is billed like any other model call. `variables` fill {{variables.<name>}} placeholders; {{steps.<node_id>}} placeholders render empty because no earlier step has run.
|
|
23652
|
+
* @returns ClassifierTestResponse
|
|
23651
23653
|
* @throws ApiError
|
|
23652
23654
|
*/
|
|
23653
|
-
public static
|
|
23655
|
+
public static aiMentorOrgsWorkflowsClassifierTestCreate({
|
|
23654
23656
|
org,
|
|
23655
23657
|
uniqueId,
|
|
23656
23658
|
requestBody,
|
|
23657
23659
|
}: {
|
|
23658
23660
|
org: string,
|
|
23659
23661
|
uniqueId: string,
|
|
23660
|
-
requestBody
|
|
23661
|
-
|
|
23662
|
-
* The message to send
|
|
23663
|
-
*/
|
|
23664
|
-
message: string;
|
|
23665
|
-
},
|
|
23666
|
-
}): CancelablePromise<any> {
|
|
23662
|
+
requestBody: ClassifierTestRequest,
|
|
23663
|
+
}): CancelablePromise<ClassifierTestResponse> {
|
|
23667
23664
|
return __request(OpenAPI, {
|
|
23668
23665
|
method: 'POST',
|
|
23669
|
-
url: '/api/ai-mentor/orgs/{org}/workflows/{unique_id}/
|
|
23666
|
+
url: '/api/ai-mentor/orgs/{org}/workflows/{unique_id}/classifier-test/',
|
|
23670
23667
|
path: {
|
|
23671
23668
|
'org': org,
|
|
23672
23669
|
'unique_id': uniqueId,
|
|
@@ -23674,7 +23671,11 @@ export class AiMentorService {
|
|
|
23674
23671
|
body: requestBody,
|
|
23675
23672
|
mediaType: 'application/json',
|
|
23676
23673
|
errors: {
|
|
23677
|
-
400: `
|
|
23674
|
+
400: `Not a classifier, or invalid settings`,
|
|
23675
|
+
402: `Insufficient credits`,
|
|
23676
|
+
403: `Permission denied`,
|
|
23677
|
+
429: `A spend cap is reached`,
|
|
23678
|
+
502: `The decision model failed`,
|
|
23678
23679
|
},
|
|
23679
23680
|
});
|
|
23680
23681
|
}
|