@botpress/cognitive 0.1.30 → 0.1.31
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/.turbo/turbo-build.log +5 -5
- package/dist/index.d.ts +35 -2
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/cognitive@0.1.
|
|
2
|
+
> @botpress/cognitive@0.1.31 build /home/runner/work/botpress/botpress/packages/cognitive
|
|
3
3
|
> pnpm build:type && pnpm build:neutral && size-limit
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @botpress/cognitive@0.1.
|
|
6
|
+
> @botpress/cognitive@0.1.31 build:type /home/runner/work/botpress/botpress/packages/cognitive
|
|
7
7
|
> tsup --tsconfig tsconfig.build.json ./src/index.ts --dts-resolve --dts-only --clean
|
|
8
8
|
|
|
9
9
|
CLI Building entry: ./src/index.ts
|
|
10
10
|
CLI Using tsconfig: tsconfig.build.json
|
|
11
11
|
CLI tsup v8.0.2
|
|
12
12
|
DTS Build start
|
|
13
|
-
DTS ⚡️ Build success in
|
|
14
|
-
DTS dist/index.d.ts
|
|
13
|
+
DTS ⚡️ Build success in 3669ms
|
|
14
|
+
DTS dist/index.d.ts 604.87 KB
|
|
15
15
|
|
|
16
|
-
> @botpress/cognitive@0.1.
|
|
16
|
+
> @botpress/cognitive@0.1.31 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
|
|
17
17
|
> ts-node -T ./build.ts --neutral
|
|
18
18
|
|
|
19
19
|
Done
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,11 @@ import { Unsubscribe } from 'nanoevents';
|
|
|
3
3
|
type GenerateContentInput = {
|
|
4
4
|
/** Model to use for content generation */
|
|
5
5
|
model?: any;
|
|
6
|
-
/**
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Reasoning effort level to use for models that support reasoning. Specifying "none" will indicate the LLM to not use reasoning (for models that support optional reasoning). A "dynamic" effort will indicate the provider to automatically determine the reasoning effort (if supported by the provider). If not provided the model will not use reasoning for models with optional reasoning or use the default reasoning effort specified by the provider for reasoning-only models.
|
|
8
|
+
* Note: A higher reasoning effort will incur in higher output token charges from the LLM provider.
|
|
9
|
+
*/
|
|
10
|
+
reasoningEffort?: 'low' | 'medium' | 'high' | 'dynamic' | 'none';
|
|
8
11
|
/** Optional system prompt to guide the model */
|
|
9
12
|
systemPrompt?: string;
|
|
10
13
|
/** Array of messages for the model to process */
|
|
@@ -8929,6 +8932,34 @@ interface GetAuditRecordsResponse {
|
|
|
8929
8932
|
};
|
|
8930
8933
|
}
|
|
8931
8934
|
|
|
8935
|
+
interface SetWorkspacePreferenceRequestHeaders {
|
|
8936
|
+
}
|
|
8937
|
+
interface SetWorkspacePreferenceRequestQuery {
|
|
8938
|
+
}
|
|
8939
|
+
interface SetWorkspacePreferenceRequestParams {
|
|
8940
|
+
key: string;
|
|
8941
|
+
}
|
|
8942
|
+
interface SetWorkspacePreferenceRequestBody {
|
|
8943
|
+
value?: any;
|
|
8944
|
+
}
|
|
8945
|
+
type SetWorkspacePreferenceInput = SetWorkspacePreferenceRequestBody & SetWorkspacePreferenceRequestHeaders & SetWorkspacePreferenceRequestQuery & SetWorkspacePreferenceRequestParams;
|
|
8946
|
+
interface SetWorkspacePreferenceResponse {
|
|
8947
|
+
}
|
|
8948
|
+
|
|
8949
|
+
interface GetWorkspacePreferenceRequestHeaders {
|
|
8950
|
+
}
|
|
8951
|
+
interface GetWorkspacePreferenceRequestQuery {
|
|
8952
|
+
}
|
|
8953
|
+
interface GetWorkspacePreferenceRequestParams {
|
|
8954
|
+
key: string;
|
|
8955
|
+
}
|
|
8956
|
+
interface GetWorkspacePreferenceRequestBody {
|
|
8957
|
+
}
|
|
8958
|
+
type GetWorkspacePreferenceInput = GetWorkspacePreferenceRequestBody & GetWorkspacePreferenceRequestHeaders & GetWorkspacePreferenceRequestQuery & GetWorkspacePreferenceRequestParams;
|
|
8959
|
+
interface GetWorkspacePreferenceResponse {
|
|
8960
|
+
value?: any;
|
|
8961
|
+
}
|
|
8962
|
+
|
|
8932
8963
|
interface ListWorkspaceMembersRequestHeaders {
|
|
8933
8964
|
}
|
|
8934
8965
|
interface ListWorkspaceMembersRequestQuery {
|
|
@@ -17652,6 +17683,8 @@ declare class Client$1 {
|
|
|
17652
17683
|
readonly listPublicWorkspaces: (input: ListPublicWorkspacesInput) => Promise<ListPublicWorkspacesResponse>;
|
|
17653
17684
|
readonly deleteWorkspace: (input: DeleteWorkspaceInput) => Promise<DeleteWorkspaceResponse>;
|
|
17654
17685
|
readonly getAuditRecords: (input: GetAuditRecordsInput) => Promise<GetAuditRecordsResponse>;
|
|
17686
|
+
readonly setWorkspacePreference: (input: SetWorkspacePreferenceInput) => Promise<SetWorkspacePreferenceResponse>;
|
|
17687
|
+
readonly getWorkspacePreference: (input: GetWorkspacePreferenceInput) => Promise<GetWorkspacePreferenceResponse>;
|
|
17655
17688
|
readonly listWorkspaceMembers: (input: ListWorkspaceMembersInput) => Promise<ListWorkspaceMembersResponse>;
|
|
17656
17689
|
readonly getWorkspaceMember: (input: GetWorkspaceMemberInput) => Promise<GetWorkspaceMemberResponse>;
|
|
17657
17690
|
readonly deleteWorkspaceMember: (input: DeleteWorkspaceMemberInput) => Promise<DeleteWorkspaceMemberResponse>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/cognitive",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"description": "Wrapper around the Botpress Client to call LLMs",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@botpress/client": "workspace:*",
|
|
32
32
|
"@botpress/common": "workspace:*",
|
|
33
|
-
"@bpinternal/zui": "^1.0.
|
|
33
|
+
"@bpinternal/zui": "^1.0.1",
|
|
34
34
|
"@size-limit/file": "^11.1.6",
|
|
35
35
|
"@types/axios": "^0.14.4",
|
|
36
36
|
"@types/debug": "^4.1.12",
|