@fencyai/js 0.1.111 → 0.1.112
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/lib/api/createAgentTask.js +2 -5
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -2
- package/lib/openapi/ct/index.d.ts +0 -1
- package/lib/openapi/ct/index.js +0 -1
- package/lib/openapi/ct/models/AgentTaskProgressItemUpdatedEventDto.d.ts +1 -4
- package/lib/openapi/ct-st/index.d.ts +2 -1
- package/lib/openapi/ct-st/index.js +0 -1
- package/lib/openapi/ct-st/models/PubAgentTaskDto.d.ts +0 -3
- package/lib/openapi/ct-st/models/PubCreateAgentTaskRequest.d.ts +4 -3
- package/lib/openapi/ct-st/models/PubCreateAgentTaskRequestGenericTask.d.ts +4 -0
- package/lib/openapi/ct-st/models/PubCreateAgentTaskRequestGenericTask.js +1 -0
- package/lib/openapi/ct-st/models/PubCreateAgentTaskRequestStreamingChatCompletionTask.d.ts +3 -0
- package/lib/openapi/ct-st/models/PubCreateAgentTaskRequestStreamingChatCompletionTask.js +1 -0
- package/lib/types/AgentTask.d.ts +0 -2
- package/lib/types/CreateAgentTaskRequest.d.ts +7 -4
- package/lib/utils/version.js +1 -1
- package/package.json +2 -2
- package/lib/openapi/ct/models/AgentTaskProgressItemType.d.ts +0 -5
- package/lib/openapi/ct/models/AgentTaskProgressItemType.js +0 -10
- package/lib/openapi/ct-st/models/AgentTaskStatusDto.d.ts +0 -5
- package/lib/openapi/ct-st/models/AgentTaskStatusDto.js +0 -10
|
@@ -11,17 +11,14 @@ export async function createAgentTask(params) {
|
|
|
11
11
|
'X-Fency-Stream-Token': params.streamToken,
|
|
12
12
|
};
|
|
13
13
|
const response = await PubService.createAgentTask({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
todos: params.request.todos ?? [],
|
|
14
|
+
genericTask: params.request.genericTask,
|
|
15
|
+
streamingChatCompletionTask: params.request.streamingChatCompletionTask,
|
|
17
16
|
});
|
|
18
17
|
return {
|
|
19
18
|
type: 'success',
|
|
20
19
|
agentTask: {
|
|
21
20
|
id: response.id,
|
|
22
21
|
createdAt: response.createdAt,
|
|
23
|
-
status: response.status,
|
|
24
|
-
response: response.response ?? undefined,
|
|
25
22
|
},
|
|
26
23
|
};
|
|
27
24
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export { loadFency } from './loadFency';
|
|
|
2
2
|
export type { FencyInstance } from './types/FencyInstance';
|
|
3
3
|
export type { FencyOptions } from './types/FencyOptions';
|
|
4
4
|
export * from './types/index';
|
|
5
|
-
export { AgentTaskProgressItemType } from './openapi/ct/models/AgentTaskProgressItemType';
|
|
6
5
|
export type { AgentTaskProgressItemUpdatedEventDto } from './openapi/ct/models/AgentTaskProgressItemUpdatedEventDto';
|
|
7
6
|
export type { StreamNotFoundEventDto } from './openapi/ct/models/StreamNotFoundEventDto';
|
|
8
7
|
export type { StreamTimeoutEventDto } from './openapi/ct/models/StreamTimeoutEventDto';
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export { loadFency } from './loadFency';
|
|
2
2
|
export * from './types/index';
|
|
3
|
-
// stream event types
|
|
4
|
-
export { AgentTaskProgressItemType } from './openapi/ct/models/AgentTaskProgressItemType';
|
|
5
3
|
// api
|
|
6
4
|
export { createAgentTask } from './api/createAgentTask';
|
|
7
5
|
export { createStream } from './api/createStream';
|
|
@@ -2,7 +2,6 @@ export { ApiError } from './core/ApiError';
|
|
|
2
2
|
export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
3
3
|
export { OpenAPI } from './core/OpenAPI';
|
|
4
4
|
export type { OpenAPIConfig } from './core/OpenAPI';
|
|
5
|
-
export { AgentTaskProgressItemType } from './models/AgentTaskProgressItemType';
|
|
6
5
|
export type { AgentTaskProgressItemUpdatedEventDto } from './models/AgentTaskProgressItemUpdatedEventDto';
|
|
7
6
|
export { ApiDtoType } from './models/ApiDtoType';
|
|
8
7
|
export type { StreamDto } from './models/StreamDto';
|
package/lib/openapi/ct/index.js
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
export { ApiError } from './core/ApiError';
|
|
6
6
|
export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
7
7
|
export { OpenAPI } from './core/OpenAPI';
|
|
8
|
-
export { AgentTaskProgressItemType } from './models/AgentTaskProgressItemType';
|
|
9
8
|
export { ApiDtoType } from './models/ApiDtoType';
|
|
10
9
|
export { StreamEventType } from './models/StreamEventType';
|
|
11
10
|
export { PubService } from './services/PubService';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { AgentTaskProgressItemType } from './AgentTaskProgressItemType';
|
|
2
1
|
import type { StreamEventType } from './StreamEventType';
|
|
3
2
|
export type AgentTaskProgressItemUpdatedEventDto = {
|
|
4
3
|
type: StreamEventType;
|
|
@@ -7,7 +6,5 @@ export type AgentTaskProgressItemUpdatedEventDto = {
|
|
|
7
6
|
createdAt: string;
|
|
8
7
|
agentTaskId: string;
|
|
9
8
|
progressItemId: string;
|
|
10
|
-
|
|
11
|
-
progressItemType: AgentTaskProgressItemType;
|
|
12
|
-
response: string;
|
|
9
|
+
data: string;
|
|
13
10
|
};
|
|
@@ -2,8 +2,9 @@ export { ApiError } from './core/ApiError';
|
|
|
2
2
|
export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
3
3
|
export { OpenAPI } from './core/OpenAPI';
|
|
4
4
|
export type { OpenAPIConfig } from './core/OpenAPI';
|
|
5
|
-
export { AgentTaskStatusDto } from './models/AgentTaskStatusDto';
|
|
6
5
|
export type { PubAgentTaskDto } from './models/PubAgentTaskDto';
|
|
7
6
|
export type { PubCreateAgentTaskRequest } from './models/PubCreateAgentTaskRequest';
|
|
7
|
+
export type { PubCreateAgentTaskRequestGenericTask } from './models/PubCreateAgentTaskRequestGenericTask';
|
|
8
|
+
export type { PubCreateAgentTaskRequestStreamingChatCompletionTask } from './models/PubCreateAgentTaskRequestStreamingChatCompletionTask';
|
|
8
9
|
export type { PubCreateFileDownloadLinkResponse } from './models/PubCreateFileDownloadLinkResponse';
|
|
9
10
|
export { PubService } from './services/PubService';
|
|
@@ -5,5 +5,4 @@
|
|
|
5
5
|
export { ApiError } from './core/ApiError';
|
|
6
6
|
export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
7
7
|
export { OpenAPI } from './core/OpenAPI';
|
|
8
|
-
export { AgentTaskStatusDto } from './models/AgentTaskStatusDto';
|
|
9
8
|
export { PubService } from './services/PubService';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { PubCreateAgentTaskRequestGenericTask } from './PubCreateAgentTaskRequestGenericTask';
|
|
2
|
+
import type { PubCreateAgentTaskRequestStreamingChatCompletionTask } from './PubCreateAgentTaskRequestStreamingChatCompletionTask';
|
|
1
3
|
export type PubCreateAgentTaskRequest = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
todos: Array<string>;
|
|
4
|
+
genericTask?: PubCreateAgentTaskRequestGenericTask;
|
|
5
|
+
streamingChatCompletionTask?: PubCreateAgentTaskRequestStreamingChatCompletionTask;
|
|
5
6
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/types/AgentTask.d.ts
CHANGED
package/lib/utils/version.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Browser-compatible version utility
|
|
2
2
|
// The version is set at build time and can be overridden if needed
|
|
3
3
|
// Build-time version constant - this should be updated during the build process
|
|
4
|
-
const SDK_VERSION = '0.1.
|
|
4
|
+
const SDK_VERSION = '0.1.111';
|
|
5
5
|
// Allow runtime override if needed
|
|
6
6
|
let versionOverride = null;
|
|
7
7
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fencyai/js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.112",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "staklau <steinaageklaussen@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"ts-jest": "^29.1.1",
|
|
43
43
|
"typescript": "^5.3.3"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "ec810f984fd9010de0c81701cfb60547ab7584b8"
|
|
46
46
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
export var AgentTaskProgressItemType;
|
|
6
|
-
(function (AgentTaskProgressItemType) {
|
|
7
|
-
AgentTaskProgressItemType["REASONING"] = "REASONING";
|
|
8
|
-
AgentTaskProgressItemType["EXECUTION"] = "EXECUTION";
|
|
9
|
-
AgentTaskProgressItemType["FINAL_RESPONSE"] = "FINAL_RESPONSE";
|
|
10
|
-
})(AgentTaskProgressItemType || (AgentTaskProgressItemType = {}));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
export var AgentTaskStatusDto;
|
|
6
|
-
(function (AgentTaskStatusDto) {
|
|
7
|
-
AgentTaskStatusDto["IN_PROGRESS"] = "InProgress";
|
|
8
|
-
AgentTaskStatusDto["FAILED"] = "Failed";
|
|
9
|
-
AgentTaskStatusDto["COMPLETED"] = "Completed";
|
|
10
|
-
})(AgentTaskStatusDto || (AgentTaskStatusDto = {}));
|