@llamaindex/llama-cloud 2.4.1 → 2.9.0
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/CHANGELOG.md +115 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- package/client.d.ts.map +1 -1
- package/client.js +14 -0
- package/client.js.map +1 -1
- package/client.mjs +14 -0
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +10 -10
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +10 -10
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +2 -2
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/batches.d.mts +491 -0
- package/resources/batches.d.mts.map +1 -0
- package/resources/batches.d.ts +491 -0
- package/resources/batches.d.ts.map +1 -0
- package/resources/batches.js +60 -0
- package/resources/batches.js.map +1 -0
- package/resources/batches.mjs +56 -0
- package/resources/batches.mjs.map +1 -0
- package/resources/beta/agent-data.d.mts.map +1 -1
- package/resources/beta/agent-data.d.ts.map +1 -1
- package/resources/beta/agent-data.mjs.map +1 -1
- package/resources/beta/batch/batch.d.mts +1 -1
- package/resources/beta/batch/batch.d.mts.map +1 -1
- package/resources/beta/batch/batch.d.ts +1 -1
- package/resources/beta/batch/batch.d.ts.map +1 -1
- package/resources/beta/batch/batch.js.map +1 -1
- package/resources/beta/batch/batch.mjs.map +1 -1
- package/resources/beta/batch/index.d.mts.map +1 -1
- package/resources/beta/batch/index.d.ts.map +1 -1
- package/resources/beta/batch/index.mjs.map +1 -1
- package/resources/beta/batch/job-items.d.mts +1 -1
- package/resources/beta/batch/job-items.d.mts.map +1 -1
- package/resources/beta/batch/job-items.d.ts +1 -1
- package/resources/beta/batch/job-items.d.ts.map +1 -1
- package/resources/beta/batch/job-items.mjs.map +1 -1
- package/resources/beta/batch.d.mts.map +1 -1
- package/resources/beta/batch.d.ts.map +1 -1
- package/resources/beta/batch.mjs.map +1 -1
- package/resources/beta/beta.d.mts +12 -0
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +12 -0
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +12 -0
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +12 -0
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/chat.d.mts +357 -0
- package/resources/beta/chat.d.mts.map +1 -0
- package/resources/beta/chat.d.ts +357 -0
- package/resources/beta/chat.d.ts.map +1 -0
- package/resources/beta/chat.js +101 -0
- package/resources/beta/chat.js.map +1 -0
- package/resources/beta/chat.mjs +97 -0
- package/resources/beta/chat.mjs.map +1 -0
- package/resources/beta/directories/directories.d.mts +72 -24
- package/resources/beta/directories/directories.d.mts.map +1 -1
- package/resources/beta/directories/directories.d.ts +72 -24
- package/resources/beta/directories/directories.d.ts.map +1 -1
- package/resources/beta/directories/directories.js +0 -3
- package/resources/beta/directories/directories.js.map +1 -1
- package/resources/beta/directories/directories.mjs +0 -3
- package/resources/beta/directories/directories.mjs.map +1 -1
- package/resources/beta/directories/files.d.mts +65 -57
- package/resources/beta/directories/files.d.mts.map +1 -1
- package/resources/beta/directories/files.d.ts +65 -57
- package/resources/beta/directories/files.d.ts.map +1 -1
- package/resources/beta/directories/files.js +14 -27
- package/resources/beta/directories/files.js.map +1 -1
- package/resources/beta/directories/files.mjs +14 -27
- package/resources/beta/directories/files.mjs.map +1 -1
- package/resources/beta/directories/index.d.mts.map +1 -1
- package/resources/beta/directories/index.d.ts.map +1 -1
- package/resources/beta/directories/index.mjs.map +1 -1
- package/resources/beta/directories.d.mts.map +1 -1
- package/resources/beta/directories.d.ts.map +1 -1
- package/resources/beta/directories.mjs.map +1 -1
- package/resources/beta/index.d.mts +3 -0
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +3 -0
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js +7 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +3 -0
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/indexes.d.mts +311 -0
- package/resources/beta/indexes.d.mts.map +1 -0
- package/resources/beta/indexes.d.ts +311 -0
- package/resources/beta/indexes.d.ts.map +1 -0
- package/resources/beta/indexes.js +86 -0
- package/resources/beta/indexes.js.map +1 -0
- package/resources/beta/indexes.mjs +82 -0
- package/resources/beta/indexes.mjs.map +1 -0
- package/resources/beta/retrieval.d.mts +368 -0
- package/resources/beta/retrieval.d.mts.map +1 -0
- package/resources/beta/retrieval.d.ts +368 -0
- package/resources/beta/retrieval.d.ts.map +1 -0
- package/resources/beta/retrieval.js +87 -0
- package/resources/beta/retrieval.js.map +1 -0
- package/resources/beta/retrieval.mjs +83 -0
- package/resources/beta/retrieval.mjs.map +1 -0
- package/resources/beta/sheets.d.mts +125 -25
- package/resources/beta/sheets.d.mts.map +1 -1
- package/resources/beta/sheets.d.ts +125 -25
- package/resources/beta/sheets.d.ts.map +1 -1
- package/resources/beta/sheets.js +16 -17
- package/resources/beta/sheets.js.map +1 -1
- package/resources/beta/sheets.mjs +16 -17
- package/resources/beta/sheets.mjs.map +1 -1
- package/resources/beta/split.d.mts.map +1 -1
- package/resources/beta/split.d.ts.map +1 -1
- package/resources/beta/split.mjs.map +1 -1
- package/resources/beta.d.mts.map +1 -1
- package/resources/beta.d.ts.map +1 -1
- package/resources/beta.mjs.map +1 -1
- package/resources/classifier/classifier.d.mts.map +1 -1
- package/resources/classifier/classifier.d.ts.map +1 -1
- package/resources/classifier/classifier.mjs.map +1 -1
- package/resources/classifier/index.d.mts.map +1 -1
- package/resources/classifier/index.d.ts.map +1 -1
- package/resources/classifier/index.mjs.map +1 -1
- package/resources/classifier/jobs.d.mts +13 -10
- package/resources/classifier/jobs.d.mts.map +1 -1
- package/resources/classifier/jobs.d.ts +13 -10
- package/resources/classifier/jobs.d.ts.map +1 -1
- package/resources/classifier/jobs.js +5 -8
- package/resources/classifier/jobs.js.map +1 -1
- package/resources/classifier/jobs.mjs +5 -8
- package/resources/classifier/jobs.mjs.map +1 -1
- package/resources/classifier.d.mts.map +1 -1
- package/resources/classifier.d.ts.map +1 -1
- package/resources/classifier.mjs.map +1 -1
- package/resources/classify.d.mts +60 -0
- package/resources/classify.d.mts.map +1 -1
- package/resources/classify.d.ts +60 -0
- package/resources/classify.d.ts.map +1 -1
- package/resources/classify.mjs.map +1 -1
- package/resources/configurations.d.mts +69 -16
- package/resources/configurations.d.mts.map +1 -1
- package/resources/configurations.d.ts +69 -16
- package/resources/configurations.d.ts.map +1 -1
- package/resources/configurations.js +2 -4
- package/resources/configurations.js.map +1 -1
- package/resources/configurations.mjs +2 -4
- package/resources/configurations.mjs.map +1 -1
- package/resources/data-sinks.d.mts.map +1 -1
- package/resources/data-sinks.d.ts.map +1 -1
- package/resources/data-sinks.mjs.map +1 -1
- package/resources/data-sources.d.mts.map +1 -1
- package/resources/data-sources.d.ts.map +1 -1
- package/resources/data-sources.mjs.map +1 -1
- package/resources/extract.d.mts +7 -14
- package/resources/extract.d.mts.map +1 -1
- package/resources/extract.d.ts +7 -14
- package/resources/extract.d.ts.map +1 -1
- package/resources/extract.mjs.map +1 -1
- package/resources/files.d.mts +19 -56
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +19 -56
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +1 -8
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +1 -8
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/parsing.d.mts +70 -11
- package/resources/parsing.d.mts.map +1 -1
- package/resources/parsing.d.ts +70 -11
- package/resources/parsing.d.ts.map +1 -1
- package/resources/parsing.mjs.map +1 -1
- package/resources/pipelines/data-sources.d.mts +2 -2
- package/resources/pipelines/data-sources.d.mts.map +1 -1
- package/resources/pipelines/data-sources.d.ts +2 -2
- package/resources/pipelines/data-sources.d.ts.map +1 -1
- package/resources/pipelines/data-sources.js +2 -2
- package/resources/pipelines/data-sources.mjs +2 -2
- package/resources/pipelines/data-sources.mjs.map +1 -1
- package/resources/pipelines/documents.d.mts +2 -4
- package/resources/pipelines/documents.d.mts.map +1 -1
- package/resources/pipelines/documents.d.ts +2 -4
- package/resources/pipelines/documents.d.ts.map +1 -1
- package/resources/pipelines/documents.js +2 -4
- package/resources/pipelines/documents.js.map +1 -1
- package/resources/pipelines/documents.mjs +2 -4
- package/resources/pipelines/documents.mjs.map +1 -1
- package/resources/pipelines/files.d.mts.map +1 -1
- package/resources/pipelines/files.d.ts.map +1 -1
- package/resources/pipelines/files.mjs.map +1 -1
- package/resources/pipelines/images.d.mts.map +1 -1
- package/resources/pipelines/images.d.ts.map +1 -1
- package/resources/pipelines/images.mjs.map +1 -1
- package/resources/pipelines/index.d.mts.map +1 -1
- package/resources/pipelines/index.d.ts.map +1 -1
- package/resources/pipelines/index.mjs.map +1 -1
- package/resources/pipelines/metadata.d.mts.map +1 -1
- package/resources/pipelines/metadata.d.ts.map +1 -1
- package/resources/pipelines/metadata.mjs.map +1 -1
- package/resources/pipelines/pipelines.d.mts +1 -1
- package/resources/pipelines/pipelines.d.mts.map +1 -1
- package/resources/pipelines/pipelines.d.ts +1 -1
- package/resources/pipelines/pipelines.d.ts.map +1 -1
- package/resources/pipelines/pipelines.js.map +1 -1
- package/resources/pipelines/pipelines.mjs.map +1 -1
- package/resources/pipelines/sync.d.mts.map +1 -1
- package/resources/pipelines/sync.d.ts.map +1 -1
- package/resources/pipelines/sync.mjs.map +1 -1
- package/resources/pipelines.d.mts.map +1 -1
- package/resources/pipelines.d.ts.map +1 -1
- package/resources/pipelines.mjs.map +1 -1
- package/resources/projects.d.mts +0 -1
- package/resources/projects.d.mts.map +1 -1
- package/resources/projects.d.ts +0 -1
- package/resources/projects.d.ts.map +1 -1
- package/resources/projects.mjs.map +1 -1
- package/resources/retrievers/index.d.mts.map +1 -1
- package/resources/retrievers/index.d.ts.map +1 -1
- package/resources/retrievers/index.mjs.map +1 -1
- package/resources/retrievers/retriever.d.mts.map +1 -1
- package/resources/retrievers/retriever.d.ts.map +1 -1
- package/resources/retrievers/retriever.mjs.map +1 -1
- package/resources/retrievers/retrievers.d.mts.map +1 -1
- package/resources/retrievers/retrievers.d.ts.map +1 -1
- package/resources/retrievers/retrievers.mjs.map +1 -1
- package/resources/retrievers.d.mts.map +1 -1
- package/resources/retrievers.d.ts.map +1 -1
- package/resources/retrievers.mjs.map +1 -1
- package/resources/shared.d.mts +1 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +35 -2
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/batches.ts +587 -0
- package/src/resources/beta/batch/batch.ts +6 -0
- package/src/resources/beta/batch/job-items.ts +6 -0
- package/src/resources/beta/beta.ts +94 -0
- package/src/resources/beta/chat.ts +523 -0
- package/src/resources/beta/directories/directories.ts +77 -29
- package/src/resources/beta/directories/files.ts +73 -60
- package/src/resources/beta/index.ts +41 -0
- package/src/resources/beta/indexes.ts +421 -0
- package/src/resources/beta/retrieval.ts +483 -0
- package/src/resources/beta/sheets.ts +185 -25
- package/src/resources/classifier/jobs.ts +14 -10
- package/src/resources/classify.ts +114 -0
- package/src/resources/configurations.ts +74 -99
- package/src/resources/extract.ts +18 -15
- package/src/resources/files.ts +22 -60
- package/src/resources/index.ts +10 -1
- package/src/resources/parsing.ts +78 -93
- package/src/resources/pipelines/data-sources.ts +2 -2
- package/src/resources/pipelines/documents.ts +2 -4
- package/src/resources/pipelines/pipelines.ts +6 -0
- package/src/resources/projects.ts +0 -2
- package/src/resources/shared.ts +1 -1
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -17,6 +17,50 @@ import {
|
|
|
17
17
|
AgentDataSearchParams,
|
|
18
18
|
AgentDataUpdateParams,
|
|
19
19
|
} from './agent-data';
|
|
20
|
+
import * as ChatAPI from './chat';
|
|
21
|
+
import {
|
|
22
|
+
Chat,
|
|
23
|
+
ChatCreateParams,
|
|
24
|
+
ChatCreateResponse,
|
|
25
|
+
ChatDeleteParams,
|
|
26
|
+
ChatGetSummaryParams,
|
|
27
|
+
ChatGetSummaryResponse,
|
|
28
|
+
ChatListParams,
|
|
29
|
+
ChatListResponse,
|
|
30
|
+
ChatListResponsesPaginatedCursor,
|
|
31
|
+
ChatRetrieveParams,
|
|
32
|
+
ChatRetrieveResponse,
|
|
33
|
+
ChatStreamParams,
|
|
34
|
+
ChatStreamResponse,
|
|
35
|
+
} from './chat';
|
|
36
|
+
import * as IndexesAPI from './indexes';
|
|
37
|
+
import {
|
|
38
|
+
IndexCreateParams,
|
|
39
|
+
IndexCreateResponse,
|
|
40
|
+
IndexDeleteParams,
|
|
41
|
+
IndexGetParams,
|
|
42
|
+
IndexGetResponse,
|
|
43
|
+
IndexListParams,
|
|
44
|
+
IndexListResponse,
|
|
45
|
+
IndexListResponsesPaginatedCursor,
|
|
46
|
+
IndexSyncParams,
|
|
47
|
+
IndexSyncResponse,
|
|
48
|
+
Indexes,
|
|
49
|
+
} from './indexes';
|
|
50
|
+
import * as RetrievalAPI from './retrieval';
|
|
51
|
+
import {
|
|
52
|
+
Retrieval,
|
|
53
|
+
RetrievalFindParams,
|
|
54
|
+
RetrievalFindResponse,
|
|
55
|
+
RetrievalFindResponsesPaginatedCursorPost,
|
|
56
|
+
RetrievalGrepParams,
|
|
57
|
+
RetrievalGrepResponse,
|
|
58
|
+
RetrievalGrepResponsesPaginatedCursorPost,
|
|
59
|
+
RetrievalReadParams,
|
|
60
|
+
RetrievalReadResponse,
|
|
61
|
+
RetrievalRetrieveParams,
|
|
62
|
+
RetrievalRetrieveResponse,
|
|
63
|
+
} from './retrieval';
|
|
20
64
|
import * as SheetsAPI from './sheets';
|
|
21
65
|
import {
|
|
22
66
|
SheetCreateParams,
|
|
@@ -74,6 +118,9 @@ import {
|
|
|
74
118
|
} from './directories/directories';
|
|
75
119
|
|
|
76
120
|
export class Beta extends APIResource {
|
|
121
|
+
indexes: IndexesAPI.Indexes = new IndexesAPI.Indexes(this._client);
|
|
122
|
+
retrieval: RetrievalAPI.Retrieval = new RetrievalAPI.Retrieval(this._client);
|
|
123
|
+
chat: ChatAPI.Chat = new ChatAPI.Chat(this._client);
|
|
77
124
|
agentData: AgentDataAPI.AgentData = new AgentDataAPI.AgentData(this._client);
|
|
78
125
|
sheets: SheetsAPI.Sheets = new SheetsAPI.Sheets(this._client);
|
|
79
126
|
directories: DirectoriesAPI.Directories = new DirectoriesAPI.Directories(this._client);
|
|
@@ -81,12 +128,59 @@ export class Beta extends APIResource {
|
|
|
81
128
|
split: SplitAPI.Split = new SplitAPI.Split(this._client);
|
|
82
129
|
}
|
|
83
130
|
|
|
131
|
+
Beta.Indexes = Indexes;
|
|
132
|
+
Beta.Retrieval = Retrieval;
|
|
133
|
+
Beta.Chat = Chat;
|
|
84
134
|
Beta.Sheets = Sheets;
|
|
85
135
|
Beta.Directories = Directories;
|
|
86
136
|
Beta.Batch = Batch;
|
|
87
137
|
Beta.Split = Split;
|
|
88
138
|
|
|
89
139
|
export declare namespace Beta {
|
|
140
|
+
export {
|
|
141
|
+
Indexes as Indexes,
|
|
142
|
+
type IndexCreateResponse as IndexCreateResponse,
|
|
143
|
+
type IndexListResponse as IndexListResponse,
|
|
144
|
+
type IndexGetResponse as IndexGetResponse,
|
|
145
|
+
type IndexSyncResponse as IndexSyncResponse,
|
|
146
|
+
type IndexListResponsesPaginatedCursor as IndexListResponsesPaginatedCursor,
|
|
147
|
+
type IndexCreateParams as IndexCreateParams,
|
|
148
|
+
type IndexListParams as IndexListParams,
|
|
149
|
+
type IndexDeleteParams as IndexDeleteParams,
|
|
150
|
+
type IndexGetParams as IndexGetParams,
|
|
151
|
+
type IndexSyncParams as IndexSyncParams,
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
export {
|
|
155
|
+
Retrieval as Retrieval,
|
|
156
|
+
type RetrievalRetrieveResponse as RetrievalRetrieveResponse,
|
|
157
|
+
type RetrievalFindResponse as RetrievalFindResponse,
|
|
158
|
+
type RetrievalGrepResponse as RetrievalGrepResponse,
|
|
159
|
+
type RetrievalReadResponse as RetrievalReadResponse,
|
|
160
|
+
type RetrievalFindResponsesPaginatedCursorPost as RetrievalFindResponsesPaginatedCursorPost,
|
|
161
|
+
type RetrievalGrepResponsesPaginatedCursorPost as RetrievalGrepResponsesPaginatedCursorPost,
|
|
162
|
+
type RetrievalRetrieveParams as RetrievalRetrieveParams,
|
|
163
|
+
type RetrievalFindParams as RetrievalFindParams,
|
|
164
|
+
type RetrievalGrepParams as RetrievalGrepParams,
|
|
165
|
+
type RetrievalReadParams as RetrievalReadParams,
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export {
|
|
169
|
+
Chat as Chat,
|
|
170
|
+
type ChatCreateResponse as ChatCreateResponse,
|
|
171
|
+
type ChatRetrieveResponse as ChatRetrieveResponse,
|
|
172
|
+
type ChatListResponse as ChatListResponse,
|
|
173
|
+
type ChatGetSummaryResponse as ChatGetSummaryResponse,
|
|
174
|
+
type ChatStreamResponse as ChatStreamResponse,
|
|
175
|
+
type ChatListResponsesPaginatedCursor as ChatListResponsesPaginatedCursor,
|
|
176
|
+
type ChatCreateParams as ChatCreateParams,
|
|
177
|
+
type ChatRetrieveParams as ChatRetrieveParams,
|
|
178
|
+
type ChatListParams as ChatListParams,
|
|
179
|
+
type ChatDeleteParams as ChatDeleteParams,
|
|
180
|
+
type ChatGetSummaryParams as ChatGetSummaryParams,
|
|
181
|
+
type ChatStreamParams as ChatStreamParams,
|
|
182
|
+
};
|
|
183
|
+
|
|
90
184
|
export {
|
|
91
185
|
type AgentData as AgentData,
|
|
92
186
|
type AgentDataDeleteResponse as AgentDataDeleteResponse,
|
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { PagePromise, PaginatedCursor, type PaginatedCursorParams } from '../../core/pagination';
|
|
6
|
+
import { buildHeaders } from '../../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
import { path } from '../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Chat extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Create a chat session, optionally bound to indexes (locked after the first
|
|
13
|
+
* message).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const chat = await client.beta.chat.create();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(
|
|
21
|
+
params: ChatCreateParams | null | undefined = {},
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): APIPromise<ChatCreateResponse> {
|
|
24
|
+
const { organization_id, project_id, ...body } = params ?? {};
|
|
25
|
+
return this._client.post('/api/v1/chat', { query: { organization_id, project_id }, body, ...options });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a full session by ID, including its event history.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const chat = await client.beta.chat.retrieve('session_id');
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
retrieve(
|
|
37
|
+
sessionID: string,
|
|
38
|
+
query: ChatRetrieveParams | null | undefined = {},
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<ChatRetrieveResponse> {
|
|
41
|
+
return this._client.get(path`/api/v1/chat/${sessionID}`, { query, ...options });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* List all chat sessions for the current project.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* // Automatically fetches more pages as needed.
|
|
50
|
+
* for await (const chatListResponse of client.beta.chat.list()) {
|
|
51
|
+
* // ...
|
|
52
|
+
* }
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
list(
|
|
56
|
+
query: ChatListParams | null | undefined = {},
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): PagePromise<ChatListResponsesPaginatedCursor, ChatListResponse> {
|
|
59
|
+
return this._client.getAPIList('/api/v1/chat', PaginatedCursor<ChatListResponse>, { query, ...options });
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Delete a session.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* await client.beta.chat.delete('session_id');
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
delete(
|
|
71
|
+
sessionID: string,
|
|
72
|
+
params: ChatDeleteParams | null | undefined = {},
|
|
73
|
+
options?: RequestOptions,
|
|
74
|
+
): APIPromise<void> {
|
|
75
|
+
const { organization_id, project_id } = params ?? {};
|
|
76
|
+
return this._client.delete(path`/api/v1/chat/${sessionID}`, {
|
|
77
|
+
query: { organization_id, project_id },
|
|
78
|
+
...options,
|
|
79
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Retrieve a session summary by ID.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* const response = await client.beta.chat.getSummary(
|
|
89
|
+
* 'session_id',
|
|
90
|
+
* );
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
getSummary(
|
|
94
|
+
sessionID: string,
|
|
95
|
+
query: ChatGetSummaryParams | null | undefined = {},
|
|
96
|
+
options?: RequestOptions,
|
|
97
|
+
): APIPromise<ChatGetSummaryResponse> {
|
|
98
|
+
return this._client.get(path`/api/v1/chat/${sessionID}/summary`, { query, ...options });
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Stream agent events for a chat turn as Server-Sent Events.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* const response = await client.beta.chat.stream(
|
|
107
|
+
* 'session_id',
|
|
108
|
+
* {
|
|
109
|
+
* index_ids: ['idx-abc123', 'idx-def456'],
|
|
110
|
+
* prompt: 'What were the main findings in Q3?',
|
|
111
|
+
* },
|
|
112
|
+
* );
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
stream(sessionID: string, params: ChatStreamParams, options?: RequestOptions): APIPromise<unknown> {
|
|
116
|
+
const { organization_id, project_id, ...body } = params;
|
|
117
|
+
return this._client.post(path`/api/v1/chat/${sessionID}/messages/stream`, {
|
|
118
|
+
query: { organization_id, project_id },
|
|
119
|
+
body,
|
|
120
|
+
...options,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export type ChatListResponsesPaginatedCursor = PaginatedCursor<ChatListResponse>;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Summary of a chat session, including its title and last run metadata.
|
|
129
|
+
*/
|
|
130
|
+
export interface ChatCreateResponse {
|
|
131
|
+
/**
|
|
132
|
+
* ISO-format timestamp showing when the session was last updated.
|
|
133
|
+
*/
|
|
134
|
+
last_updated_at: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Unique session identifier.
|
|
138
|
+
*/
|
|
139
|
+
session_id: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Auto-generated title derived from the first user message.
|
|
143
|
+
*/
|
|
144
|
+
generated_title?: string | null;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Indexes this session is bound to. Null on unbound sessions.
|
|
148
|
+
*/
|
|
149
|
+
index_ids?: Array<string> | null;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
153
|
+
* been run yet.
|
|
154
|
+
*/
|
|
155
|
+
job_metadata?: ChatCreateResponse.JobMetadata | null;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export namespace ChatCreateResponse {
|
|
159
|
+
/**
|
|
160
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
161
|
+
* been run yet.
|
|
162
|
+
*/
|
|
163
|
+
export interface JobMetadata {
|
|
164
|
+
duration_ms?: number;
|
|
165
|
+
|
|
166
|
+
error?: string | null;
|
|
167
|
+
|
|
168
|
+
export_config_ids?: Array<string> | null;
|
|
169
|
+
|
|
170
|
+
is_error?: boolean;
|
|
171
|
+
|
|
172
|
+
total_input_tokens?: number | null;
|
|
173
|
+
|
|
174
|
+
total_output_tokens?: number | null;
|
|
175
|
+
|
|
176
|
+
turns?: number;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Full chat session including its complete event history.
|
|
182
|
+
*/
|
|
183
|
+
export interface ChatRetrieveResponse {
|
|
184
|
+
/**
|
|
185
|
+
* Ordered list of events that make up the conversation history.
|
|
186
|
+
*/
|
|
187
|
+
events: Array<
|
|
188
|
+
| ChatRetrieveResponse.ThinkingDeltaEvent
|
|
189
|
+
| ChatRetrieveResponse.TextDeltaEvent
|
|
190
|
+
| ChatRetrieveResponse.ThinkingEvent
|
|
191
|
+
| ChatRetrieveResponse.TextEvent
|
|
192
|
+
| ChatRetrieveResponse.ToolCallEvent
|
|
193
|
+
| ChatRetrieveResponse.ToolResultEvent
|
|
194
|
+
| ChatRetrieveResponse.StopEvent
|
|
195
|
+
| ChatRetrieveResponse.UserInputEvent
|
|
196
|
+
>;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* ISO-format timestamp showing when the session was last updated.
|
|
200
|
+
*/
|
|
201
|
+
last_updated_at: string;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Unique session identifier.
|
|
205
|
+
*/
|
|
206
|
+
session_id: string;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Auto-generated title derived from the first user message.
|
|
210
|
+
*/
|
|
211
|
+
generated_title?: string | null;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Indexes this session is bound to. Null on unbound sessions.
|
|
215
|
+
*/
|
|
216
|
+
index_ids?: Array<string> | null;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
220
|
+
* been run yet.
|
|
221
|
+
*/
|
|
222
|
+
job_metadata?: ChatRetrieveResponse.JobMetadata | null;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export namespace ChatRetrieveResponse {
|
|
226
|
+
export interface ThinkingDeltaEvent {
|
|
227
|
+
content: string;
|
|
228
|
+
|
|
229
|
+
type?: 'thinking_delta';
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface TextDeltaEvent {
|
|
233
|
+
content: string;
|
|
234
|
+
|
|
235
|
+
type?: 'text_delta';
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface ThinkingEvent {
|
|
239
|
+
content: string;
|
|
240
|
+
|
|
241
|
+
type?: 'thinking';
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export interface TextEvent {
|
|
245
|
+
content: string;
|
|
246
|
+
|
|
247
|
+
type?: 'text';
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface ToolCallEvent {
|
|
251
|
+
arguments: { [key: string]: unknown };
|
|
252
|
+
|
|
253
|
+
call_id: string;
|
|
254
|
+
|
|
255
|
+
name: string;
|
|
256
|
+
|
|
257
|
+
type?: 'tool_call';
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export interface ToolResultEvent {
|
|
261
|
+
call_id: string;
|
|
262
|
+
|
|
263
|
+
name: string;
|
|
264
|
+
|
|
265
|
+
result: unknown;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Coordinates for lazily resolving a page screenshot presigned URL.
|
|
269
|
+
*/
|
|
270
|
+
image_attachment?: ToolResultEvent.ImageAttachment | null;
|
|
271
|
+
|
|
272
|
+
type?: 'tool_result';
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export namespace ToolResultEvent {
|
|
276
|
+
/**
|
|
277
|
+
* Coordinates for lazily resolving a page screenshot presigned URL.
|
|
278
|
+
*/
|
|
279
|
+
export interface ImageAttachment {
|
|
280
|
+
attachment_name: string;
|
|
281
|
+
|
|
282
|
+
source_id: string;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface StopEvent {
|
|
287
|
+
error: string | null;
|
|
288
|
+
|
|
289
|
+
is_error: boolean;
|
|
290
|
+
|
|
291
|
+
usage: StopEvent.Usage;
|
|
292
|
+
|
|
293
|
+
type?: 'stop';
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export namespace StopEvent {
|
|
297
|
+
export interface Usage {
|
|
298
|
+
duration_ms?: number;
|
|
299
|
+
|
|
300
|
+
total_input_tokens?: number | null;
|
|
301
|
+
|
|
302
|
+
total_output_tokens?: number | null;
|
|
303
|
+
|
|
304
|
+
turns?: number;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export interface UserInputEvent {
|
|
309
|
+
content: string;
|
|
310
|
+
|
|
311
|
+
type?: 'user_input';
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
316
|
+
* been run yet.
|
|
317
|
+
*/
|
|
318
|
+
export interface JobMetadata {
|
|
319
|
+
duration_ms?: number;
|
|
320
|
+
|
|
321
|
+
error?: string | null;
|
|
322
|
+
|
|
323
|
+
export_config_ids?: Array<string> | null;
|
|
324
|
+
|
|
325
|
+
is_error?: boolean;
|
|
326
|
+
|
|
327
|
+
total_input_tokens?: number | null;
|
|
328
|
+
|
|
329
|
+
total_output_tokens?: number | null;
|
|
330
|
+
|
|
331
|
+
turns?: number;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Summary of a chat session, including its title and last run metadata.
|
|
337
|
+
*/
|
|
338
|
+
export interface ChatListResponse {
|
|
339
|
+
/**
|
|
340
|
+
* ISO-format timestamp showing when the session was last updated.
|
|
341
|
+
*/
|
|
342
|
+
last_updated_at: string;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Unique session identifier.
|
|
346
|
+
*/
|
|
347
|
+
session_id: string;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Auto-generated title derived from the first user message.
|
|
351
|
+
*/
|
|
352
|
+
generated_title?: string | null;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Indexes this session is bound to. Null on unbound sessions.
|
|
356
|
+
*/
|
|
357
|
+
index_ids?: Array<string> | null;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
361
|
+
* been run yet.
|
|
362
|
+
*/
|
|
363
|
+
job_metadata?: ChatListResponse.JobMetadata | null;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export namespace ChatListResponse {
|
|
367
|
+
/**
|
|
368
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
369
|
+
* been run yet.
|
|
370
|
+
*/
|
|
371
|
+
export interface JobMetadata {
|
|
372
|
+
duration_ms?: number;
|
|
373
|
+
|
|
374
|
+
error?: string | null;
|
|
375
|
+
|
|
376
|
+
export_config_ids?: Array<string> | null;
|
|
377
|
+
|
|
378
|
+
is_error?: boolean;
|
|
379
|
+
|
|
380
|
+
total_input_tokens?: number | null;
|
|
381
|
+
|
|
382
|
+
total_output_tokens?: number | null;
|
|
383
|
+
|
|
384
|
+
turns?: number;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Summary of a chat session, including its title and last run metadata.
|
|
390
|
+
*/
|
|
391
|
+
export interface ChatGetSummaryResponse {
|
|
392
|
+
/**
|
|
393
|
+
* ISO-format timestamp showing when the session was last updated.
|
|
394
|
+
*/
|
|
395
|
+
last_updated_at: string;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Unique session identifier.
|
|
399
|
+
*/
|
|
400
|
+
session_id: string;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Auto-generated title derived from the first user message.
|
|
404
|
+
*/
|
|
405
|
+
generated_title?: string | null;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Indexes this session is bound to. Null on unbound sessions.
|
|
409
|
+
*/
|
|
410
|
+
index_ids?: Array<string> | null;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
414
|
+
* been run yet.
|
|
415
|
+
*/
|
|
416
|
+
job_metadata?: ChatGetSummaryResponse.JobMetadata | null;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export namespace ChatGetSummaryResponse {
|
|
420
|
+
/**
|
|
421
|
+
* Token usage and status from the most recent run. Null if the session has not
|
|
422
|
+
* been run yet.
|
|
423
|
+
*/
|
|
424
|
+
export interface JobMetadata {
|
|
425
|
+
duration_ms?: number;
|
|
426
|
+
|
|
427
|
+
error?: string | null;
|
|
428
|
+
|
|
429
|
+
export_config_ids?: Array<string> | null;
|
|
430
|
+
|
|
431
|
+
is_error?: boolean;
|
|
432
|
+
|
|
433
|
+
total_input_tokens?: number | null;
|
|
434
|
+
|
|
435
|
+
total_output_tokens?: number | null;
|
|
436
|
+
|
|
437
|
+
turns?: number;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export type ChatStreamResponse = unknown;
|
|
442
|
+
|
|
443
|
+
export interface ChatCreateParams {
|
|
444
|
+
/**
|
|
445
|
+
* Query param
|
|
446
|
+
*/
|
|
447
|
+
organization_id?: string | null;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Query param
|
|
451
|
+
*/
|
|
452
|
+
project_id?: string | null;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Body param: Indexes this session will retrieve from. Once set and the first
|
|
456
|
+
* message has been sent, the source set is locked for the session's lifetime.
|
|
457
|
+
* Leave null to create an unbound session.
|
|
458
|
+
*/
|
|
459
|
+
index_ids?: Array<string> | null;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export interface ChatRetrieveParams {
|
|
463
|
+
organization_id?: string | null;
|
|
464
|
+
|
|
465
|
+
project_id?: string | null;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export interface ChatListParams extends PaginatedCursorParams {
|
|
469
|
+
organization_id?: string | null;
|
|
470
|
+
|
|
471
|
+
project_id?: string | null;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
export interface ChatDeleteParams {
|
|
475
|
+
organization_id?: string | null;
|
|
476
|
+
|
|
477
|
+
project_id?: string | null;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
export interface ChatGetSummaryParams {
|
|
481
|
+
organization_id?: string | null;
|
|
482
|
+
|
|
483
|
+
project_id?: string | null;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
export interface ChatStreamParams {
|
|
487
|
+
/**
|
|
488
|
+
* Body param: Indexes to retrieve data from.
|
|
489
|
+
*/
|
|
490
|
+
index_ids: Array<string>;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Body param: User message for this chat turn.
|
|
494
|
+
*/
|
|
495
|
+
prompt: string;
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Query param
|
|
499
|
+
*/
|
|
500
|
+
organization_id?: string | null;
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Query param
|
|
504
|
+
*/
|
|
505
|
+
project_id?: string | null;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export declare namespace Chat {
|
|
509
|
+
export {
|
|
510
|
+
type ChatCreateResponse as ChatCreateResponse,
|
|
511
|
+
type ChatRetrieveResponse as ChatRetrieveResponse,
|
|
512
|
+
type ChatListResponse as ChatListResponse,
|
|
513
|
+
type ChatGetSummaryResponse as ChatGetSummaryResponse,
|
|
514
|
+
type ChatStreamResponse as ChatStreamResponse,
|
|
515
|
+
type ChatListResponsesPaginatedCursor as ChatListResponsesPaginatedCursor,
|
|
516
|
+
type ChatCreateParams as ChatCreateParams,
|
|
517
|
+
type ChatRetrieveParams as ChatRetrieveParams,
|
|
518
|
+
type ChatListParams as ChatListParams,
|
|
519
|
+
type ChatDeleteParams as ChatDeleteParams,
|
|
520
|
+
type ChatGetSummaryParams as ChatGetSummaryParams,
|
|
521
|
+
type ChatStreamParams as ChatStreamParams,
|
|
522
|
+
};
|
|
523
|
+
}
|