@inconvoai/node 0.4.0 → 0.5.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 +24 -0
- package/README.md +36 -19
- package/client.d.mts +0 -9
- package/client.d.mts.map +1 -1
- package/client.d.ts +0 -9
- package/client.d.ts.map +1 -1
- package/client.js +0 -9
- package/client.js.map +1 -1
- package/client.mjs +0 -9
- package/client.mjs.map +1 -1
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +12 -0
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +12 -0
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +12 -0
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +12 -0
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/{conversations → agents/conversations}/conversations.d.mts +24 -13
- package/resources/agents/conversations/conversations.d.mts.map +1 -0
- package/resources/{conversations → agents/conversations}/conversations.d.ts +24 -13
- package/resources/agents/conversations/conversations.d.ts.map +1 -0
- package/resources/agents/conversations/conversations.js +64 -0
- package/resources/agents/conversations/conversations.js.map +1 -0
- package/resources/agents/conversations/conversations.mjs +59 -0
- package/resources/agents/conversations/conversations.mjs.map +1 -0
- package/resources/{conversations → agents/conversations}/index.d.mts +1 -1
- package/resources/agents/conversations/index.d.mts.map +1 -0
- package/resources/{conversations → agents/conversations}/index.d.ts +1 -1
- package/resources/agents/conversations/index.d.ts.map +1 -0
- package/resources/agents/conversations/index.js.map +1 -0
- package/resources/agents/conversations/index.mjs.map +1 -0
- package/resources/{conversations → agents/conversations}/response/feedback.d.mts +25 -9
- package/resources/agents/conversations/response/feedback.d.mts.map +1 -0
- package/resources/{conversations → agents/conversations}/response/feedback.d.ts +25 -9
- package/resources/agents/conversations/response/feedback.d.ts.map +1 -0
- package/resources/agents/conversations/response/feedback.js +50 -0
- package/resources/agents/conversations/response/feedback.js.map +1 -0
- package/resources/agents/conversations/response/feedback.mjs +46 -0
- package/resources/agents/conversations/response/feedback.mjs.map +1 -0
- package/resources/agents/conversations/response/index.d.mts.map +1 -0
- package/resources/agents/conversations/response/index.d.ts.map +1 -0
- package/resources/agents/conversations/response/index.js.map +1 -0
- package/resources/agents/conversations/response/index.mjs.map +1 -0
- package/resources/{conversations → agents/conversations}/response/response.d.mts +30 -15
- package/resources/agents/conversations/response/response.d.mts.map +1 -0
- package/resources/{conversations → agents/conversations}/response/response.d.ts +30 -15
- package/resources/agents/conversations/response/response.d.ts.map +1 -0
- package/resources/{conversations → agents/conversations}/response/response.js +17 -13
- package/resources/agents/conversations/response/response.js.map +1 -0
- package/resources/{conversations → agents/conversations}/response/response.mjs +16 -12
- package/resources/agents/conversations/response/response.mjs.map +1 -0
- package/resources/agents/conversations/response.d.mts.map +1 -0
- package/resources/agents/conversations/response.d.ts.map +1 -0
- package/resources/{conversations → agents/conversations}/response.js +1 -1
- package/resources/agents/conversations/response.js.map +1 -0
- package/resources/agents/conversations/response.mjs.map +1 -0
- package/resources/agents/conversations.d.mts.map +1 -0
- package/resources/agents/conversations.d.ts.map +1 -0
- package/resources/{conversations.js → agents/conversations.js} +1 -1
- package/resources/agents/conversations.js.map +1 -0
- package/resources/agents/conversations.mjs.map +1 -0
- package/resources/agents/data-summary.d.mts +7 -1
- package/resources/agents/data-summary.d.mts.map +1 -1
- package/resources/agents/data-summary.d.ts +7 -1
- package/resources/agents/data-summary.d.ts.map +1 -1
- package/resources/agents/data-summary.js +9 -2
- package/resources/agents/data-summary.js.map +1 -1
- package/resources/agents/data-summary.mjs +9 -2
- package/resources/agents/data-summary.mjs.map +1 -1
- package/resources/{datasets → agents/datasets}/context.d.mts +28 -13
- package/resources/agents/datasets/context.d.mts.map +1 -0
- package/resources/{datasets → agents/datasets}/context.d.ts +28 -13
- package/resources/agents/datasets/context.d.ts.map +1 -0
- package/resources/agents/datasets/context.js +64 -0
- package/resources/agents/datasets/context.js.map +1 -0
- package/resources/agents/datasets/context.mjs +60 -0
- package/resources/agents/datasets/context.mjs.map +1 -0
- package/resources/{datasets → agents/datasets}/datasets.d.mts +3 -3
- package/resources/agents/datasets/datasets.d.mts.map +1 -0
- package/resources/{datasets → agents/datasets}/datasets.d.ts +3 -3
- package/resources/agents/datasets/datasets.d.ts.map +1 -0
- package/resources/{datasets → agents/datasets}/datasets.js +2 -2
- package/resources/agents/datasets/datasets.js.map +1 -0
- package/resources/{datasets → agents/datasets}/datasets.mjs +1 -1
- package/resources/agents/datasets/datasets.mjs.map +1 -0
- package/resources/{datasets → agents/datasets}/index.d.mts +1 -1
- package/resources/agents/datasets/index.d.mts.map +1 -0
- package/resources/{datasets → agents/datasets}/index.d.ts +1 -1
- package/resources/agents/datasets/index.d.ts.map +1 -0
- package/resources/agents/datasets/index.js.map +1 -0
- package/resources/agents/datasets/index.mjs.map +1 -0
- package/resources/agents/datasets/user.d.mts +98 -0
- package/resources/agents/datasets/user.d.mts.map +1 -0
- package/resources/agents/datasets/user.d.ts +98 -0
- package/resources/agents/datasets/user.d.ts.map +1 -0
- package/resources/agents/datasets/user.js +59 -0
- package/resources/agents/datasets/user.js.map +1 -0
- package/resources/agents/datasets/user.mjs +55 -0
- package/resources/agents/datasets/user.mjs.map +1 -0
- package/resources/agents/datasets.d.mts.map +1 -0
- package/resources/agents/datasets.d.ts.map +1 -0
- package/resources/{datasets.js → agents/datasets.js} +1 -1
- package/resources/agents/datasets.js.map +1 -0
- package/resources/agents/datasets.mjs.map +1 -0
- package/resources/agents/index.d.mts +3 -0
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +3 -0
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js +7 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +3 -0
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/mcp-servers/index.d.mts +3 -0
- package/resources/agents/mcp-servers/index.d.mts.map +1 -0
- package/resources/agents/mcp-servers/index.d.ts +3 -0
- package/resources/agents/mcp-servers/index.d.ts.map +1 -0
- package/resources/agents/mcp-servers/index.js.map +1 -0
- package/resources/agents/mcp-servers/index.mjs.map +1 -0
- package/resources/agents/mcp-servers/mcp-servers.d.mts +10 -0
- package/resources/agents/mcp-servers/mcp-servers.d.mts.map +1 -0
- package/resources/agents/mcp-servers/mcp-servers.d.ts +10 -0
- package/resources/agents/mcp-servers/mcp-servers.d.ts.map +1 -0
- package/resources/{mcp-servers → agents/mcp-servers}/mcp-servers.js +2 -2
- package/resources/agents/mcp-servers/mcp-servers.js.map +1 -0
- package/resources/{mcp-servers → agents/mcp-servers}/mcp-servers.mjs +2 -2
- package/resources/agents/mcp-servers/mcp-servers.mjs.map +1 -0
- package/resources/agents/mcp-servers/tenants.d.mts +79 -0
- package/resources/agents/mcp-servers/tenants.d.mts.map +1 -0
- package/resources/agents/mcp-servers/tenants.d.ts +79 -0
- package/resources/agents/mcp-servers/tenants.d.ts.map +1 -0
- package/resources/agents/mcp-servers/tenants.js +50 -0
- package/resources/agents/mcp-servers/tenants.js.map +1 -0
- package/resources/agents/mcp-servers/tenants.mjs +46 -0
- package/resources/agents/mcp-servers/tenants.mjs.map +1 -0
- package/resources/agents/mcp-servers.d.mts.map +1 -0
- package/resources/agents/mcp-servers.d.ts.map +1 -0
- package/resources/{mcp-servers.js → agents/mcp-servers.js} +1 -1
- package/resources/agents/mcp-servers.js.map +1 -0
- package/resources/agents/mcp-servers.mjs.map +1 -0
- package/resources/index.d.mts +0 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +0 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -7
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -3
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +0 -31
- package/src/index.ts +1 -1
- package/src/resources/agents/agents.ts +36 -0
- package/src/resources/{conversations → agents/conversations}/conversations.ts +42 -18
- package/src/resources/{conversations → agents/conversations}/index.ts +1 -0
- package/src/resources/{conversations → agents/conversations}/response/feedback.ts +38 -20
- package/src/resources/{conversations → agents/conversations}/response/response.ts +45 -23
- package/src/resources/agents/data-summary.ts +9 -2
- package/src/resources/{datasets → agents/datasets}/context.ts +42 -21
- package/src/resources/{datasets → agents/datasets}/datasets.ts +3 -1
- package/src/resources/{datasets → agents/datasets}/index.ts +1 -0
- package/src/resources/agents/datasets/user.ts +151 -0
- package/src/resources/agents/index.ts +12 -0
- package/src/resources/{mcp-servers → agents/mcp-servers}/index.ts +1 -0
- package/src/resources/{mcp-servers → agents/mcp-servers}/mcp-servers.ts +9 -2
- package/src/resources/agents/mcp-servers/tenants.ts +108 -0
- package/src/resources/index.ts +0 -11
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/conversations/conversations.d.mts.map +0 -1
- package/resources/conversations/conversations.d.ts.map +0 -1
- package/resources/conversations/conversations.js +0 -61
- package/resources/conversations/conversations.js.map +0 -1
- package/resources/conversations/conversations.mjs +0 -56
- package/resources/conversations/conversations.mjs.map +0 -1
- package/resources/conversations/index.d.mts.map +0 -1
- package/resources/conversations/index.d.ts.map +0 -1
- package/resources/conversations/index.js.map +0 -1
- package/resources/conversations/index.mjs.map +0 -1
- package/resources/conversations/response/feedback.d.mts.map +0 -1
- package/resources/conversations/response/feedback.d.ts.map +0 -1
- package/resources/conversations/response/feedback.js +0 -48
- package/resources/conversations/response/feedback.js.map +0 -1
- package/resources/conversations/response/feedback.mjs +0 -44
- package/resources/conversations/response/feedback.mjs.map +0 -1
- package/resources/conversations/response/index.d.mts.map +0 -1
- package/resources/conversations/response/index.d.ts.map +0 -1
- package/resources/conversations/response/index.js.map +0 -1
- package/resources/conversations/response/index.mjs.map +0 -1
- package/resources/conversations/response/response.d.mts.map +0 -1
- package/resources/conversations/response/response.d.ts.map +0 -1
- package/resources/conversations/response/response.js.map +0 -1
- package/resources/conversations/response/response.mjs.map +0 -1
- package/resources/conversations/response.d.mts.map +0 -1
- package/resources/conversations/response.d.ts.map +0 -1
- package/resources/conversations/response.js.map +0 -1
- package/resources/conversations/response.mjs.map +0 -1
- package/resources/conversations.d.mts.map +0 -1
- package/resources/conversations.d.ts.map +0 -1
- package/resources/conversations.js.map +0 -1
- package/resources/conversations.mjs.map +0 -1
- package/resources/datasets/context.d.mts.map +0 -1
- package/resources/datasets/context.d.ts.map +0 -1
- package/resources/datasets/context.js +0 -61
- package/resources/datasets/context.js.map +0 -1
- package/resources/datasets/context.mjs +0 -57
- package/resources/datasets/context.mjs.map +0 -1
- package/resources/datasets/datasets.d.mts.map +0 -1
- package/resources/datasets/datasets.d.ts.map +0 -1
- package/resources/datasets/datasets.js.map +0 -1
- package/resources/datasets/datasets.mjs.map +0 -1
- package/resources/datasets/index.d.mts.map +0 -1
- package/resources/datasets/index.d.ts.map +0 -1
- package/resources/datasets/index.js.map +0 -1
- package/resources/datasets/index.mjs.map +0 -1
- package/resources/datasets/user.d.mts +0 -77
- package/resources/datasets/user.d.mts.map +0 -1
- package/resources/datasets/user.d.ts +0 -77
- package/resources/datasets/user.d.ts.map +0 -1
- package/resources/datasets/user.js +0 -50
- package/resources/datasets/user.js.map +0 -1
- package/resources/datasets/user.mjs +0 -46
- package/resources/datasets/user.mjs.map +0 -1
- package/resources/datasets.d.mts.map +0 -1
- package/resources/datasets.d.ts.map +0 -1
- package/resources/datasets.js.map +0 -1
- package/resources/datasets.mjs.map +0 -1
- package/resources/mcp-servers/index.d.mts +0 -3
- package/resources/mcp-servers/index.d.mts.map +0 -1
- package/resources/mcp-servers/index.d.ts +0 -3
- package/resources/mcp-servers/index.d.ts.map +0 -1
- package/resources/mcp-servers/index.js.map +0 -1
- package/resources/mcp-servers/index.mjs.map +0 -1
- package/resources/mcp-servers/mcp-servers.d.mts +0 -10
- package/resources/mcp-servers/mcp-servers.d.mts.map +0 -1
- package/resources/mcp-servers/mcp-servers.d.ts +0 -10
- package/resources/mcp-servers/mcp-servers.d.ts.map +0 -1
- package/resources/mcp-servers/mcp-servers.js.map +0 -1
- package/resources/mcp-servers/mcp-servers.mjs.map +0 -1
- package/resources/mcp-servers/tenants.d.mts +0 -63
- package/resources/mcp-servers/tenants.d.mts.map +0 -1
- package/resources/mcp-servers/tenants.d.ts +0 -63
- package/resources/mcp-servers/tenants.d.ts.map +0 -1
- package/resources/mcp-servers/tenants.js +0 -47
- package/resources/mcp-servers/tenants.js.map +0 -1
- package/resources/mcp-servers/tenants.mjs +0 -43
- package/resources/mcp-servers/tenants.mjs.map +0 -1
- package/resources/mcp-servers.d.mts.map +0 -1
- package/resources/mcp-servers.d.ts.map +0 -1
- package/resources/mcp-servers.js.map +0 -1
- package/resources/mcp-servers.mjs.map +0 -1
- package/src/resources/datasets/user.ts +0 -120
- package/src/resources/mcp-servers/tenants.ts +0 -81
- /package/resources/{conversations → agents/conversations}/index.js +0 -0
- /package/resources/{conversations → agents/conversations}/index.mjs +0 -0
- /package/resources/{conversations → agents/conversations}/response/index.d.mts +0 -0
- /package/resources/{conversations → agents/conversations}/response/index.d.ts +0 -0
- /package/resources/{conversations → agents/conversations}/response/index.js +0 -0
- /package/resources/{conversations → agents/conversations}/response/index.mjs +0 -0
- /package/resources/{conversations → agents/conversations}/response.d.mts +0 -0
- /package/resources/{conversations → agents/conversations}/response.d.ts +0 -0
- /package/resources/{conversations → agents/conversations}/response.mjs +0 -0
- /package/resources/{conversations.d.mts → agents/conversations.d.mts} +0 -0
- /package/resources/{conversations.d.ts → agents/conversations.d.ts} +0 -0
- /package/resources/{conversations.mjs → agents/conversations.mjs} +0 -0
- /package/resources/{datasets → agents/datasets}/index.js +0 -0
- /package/resources/{datasets → agents/datasets}/index.mjs +0 -0
- /package/resources/{datasets.d.mts → agents/datasets.d.mts} +0 -0
- /package/resources/{datasets.d.ts → agents/datasets.d.ts} +0 -0
- /package/resources/{datasets.mjs → agents/datasets.mjs} +0 -0
- /package/resources/{mcp-servers → agents/mcp-servers}/index.js +0 -0
- /package/resources/{mcp-servers → agents/mcp-servers}/index.mjs +0 -0
- /package/resources/{mcp-servers.d.mts → agents/mcp-servers.d.mts} +0 -0
- /package/resources/{mcp-servers.d.ts → agents/mcp-servers.d.ts} +0 -0
- /package/resources/{mcp-servers.mjs → agents/mcp-servers.mjs} +0 -0
- /package/src/resources/{conversations → agents/conversations}/response/index.ts +0 -0
- /package/src/resources/{conversations → agents/conversations}/response.ts +0 -0
- /package/src/resources/{conversations.ts → agents/conversations.ts} +0 -0
- /package/src/resources/{datasets.ts → agents/datasets.ts} +0 -0
- /package/src/resources/{mcp-servers.ts → agents/mcp-servers.ts} +0 -0
package/resources/index.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.Agents = void 0;
|
|
5
5
|
var agents_1 = require("./agents/agents.js");
|
|
6
6
|
Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
|
|
7
|
-
var conversations_1 = require("./conversations/conversations.js");
|
|
8
|
-
Object.defineProperty(exports, "Conversations", { enumerable: true, get: function () { return conversations_1.Conversations; } });
|
|
9
|
-
var datasets_1 = require("./datasets/datasets.js");
|
|
10
|
-
Object.defineProperty(exports, "Datasets", { enumerable: true, get: function () { return datasets_1.Datasets; } });
|
|
11
|
-
var mcp_servers_1 = require("./mcp-servers/mcp-servers.js");
|
|
12
|
-
Object.defineProperty(exports, "McpServers", { enumerable: true, get: function () { return mcp_servers_1.McpServers; } });
|
|
13
7
|
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAAyC;AAAhC,gGAAA,MAAM,OAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAAyC;AAAhC,gGAAA,MAAM,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Agents } from "./agents/agents.mjs";
|
|
3
|
-
export { Conversations, } from "./conversations/conversations.mjs";
|
|
4
|
-
export { Datasets } from "./datasets/datasets.mjs";
|
|
5
|
-
export { McpServers } from "./mcp-servers/mcp-servers.mjs";
|
|
6
3
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAE"}
|
package/src/client.ts
CHANGED
|
@@ -20,17 +20,6 @@ import * as Uploads from './core/uploads';
|
|
|
20
20
|
import * as API from './resources/index';
|
|
21
21
|
import { APIPromise } from './core/api-promise';
|
|
22
22
|
import { Agents } from './resources/agents/agents';
|
|
23
|
-
import {
|
|
24
|
-
ConversationCreateParams,
|
|
25
|
-
ConversationCreateResponse,
|
|
26
|
-
ConversationListParams,
|
|
27
|
-
ConversationListResponse,
|
|
28
|
-
ConversationListResponsesConversationsCursor,
|
|
29
|
-
Conversations,
|
|
30
|
-
InconvoConversation,
|
|
31
|
-
} from './resources/conversations/conversations';
|
|
32
|
-
import { Datasets } from './resources/datasets/datasets';
|
|
33
|
-
import { McpServers } from './resources/mcp-servers/mcp-servers';
|
|
34
23
|
import { type Fetch } from './internal/builtin-types';
|
|
35
24
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
36
25
|
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
|
|
@@ -731,16 +720,10 @@ export class Inconvo {
|
|
|
731
720
|
|
|
732
721
|
static toFile = Uploads.toFile;
|
|
733
722
|
|
|
734
|
-
conversations: API.Conversations = new API.Conversations(this);
|
|
735
|
-
mcpServers: API.McpServers = new API.McpServers(this);
|
|
736
723
|
agents: API.Agents = new API.Agents(this);
|
|
737
|
-
datasets: API.Datasets = new API.Datasets(this);
|
|
738
724
|
}
|
|
739
725
|
|
|
740
|
-
Inconvo.Conversations = Conversations;
|
|
741
|
-
Inconvo.McpServers = McpServers;
|
|
742
726
|
Inconvo.Agents = Agents;
|
|
743
|
-
Inconvo.Datasets = Datasets;
|
|
744
727
|
|
|
745
728
|
export declare namespace Inconvo {
|
|
746
729
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -751,19 +734,5 @@ export declare namespace Inconvo {
|
|
|
751
734
|
type ConversationsCursorResponse as ConversationsCursorResponse,
|
|
752
735
|
};
|
|
753
736
|
|
|
754
|
-
export {
|
|
755
|
-
Conversations as Conversations,
|
|
756
|
-
type InconvoConversation as InconvoConversation,
|
|
757
|
-
type ConversationCreateResponse as ConversationCreateResponse,
|
|
758
|
-
type ConversationListResponse as ConversationListResponse,
|
|
759
|
-
type ConversationListResponsesConversationsCursor as ConversationListResponsesConversationsCursor,
|
|
760
|
-
type ConversationCreateParams as ConversationCreateParams,
|
|
761
|
-
type ConversationListParams as ConversationListParams,
|
|
762
|
-
};
|
|
763
|
-
|
|
764
|
-
export { McpServers as McpServers };
|
|
765
|
-
|
|
766
737
|
export { Agents as Agents };
|
|
767
|
-
|
|
768
|
-
export { Datasets as Datasets };
|
|
769
738
|
}
|
package/src/index.ts
CHANGED
|
@@ -3,13 +3,49 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as DataSummaryAPI from './data-summary';
|
|
5
5
|
import { DataSummary, DataSummaryRetrieveResponse } from './data-summary';
|
|
6
|
+
import * as ConversationsAPI from './conversations/conversations';
|
|
7
|
+
import {
|
|
8
|
+
ConversationCreateParams,
|
|
9
|
+
ConversationCreateResponse,
|
|
10
|
+
ConversationListParams,
|
|
11
|
+
ConversationListResponse,
|
|
12
|
+
ConversationListResponsesConversationsCursor,
|
|
13
|
+
ConversationRetrieveParams,
|
|
14
|
+
Conversations,
|
|
15
|
+
InconvoConversation,
|
|
16
|
+
} from './conversations/conversations';
|
|
17
|
+
import * as DatasetsAPI from './datasets/datasets';
|
|
18
|
+
import { Datasets } from './datasets/datasets';
|
|
19
|
+
import * as McpServersAPI from './mcp-servers/mcp-servers';
|
|
20
|
+
import { McpServers } from './mcp-servers/mcp-servers';
|
|
6
21
|
|
|
7
22
|
export class Agents extends APIResource {
|
|
8
23
|
dataSummary: DataSummaryAPI.DataSummary = new DataSummaryAPI.DataSummary(this._client);
|
|
24
|
+
conversations: ConversationsAPI.Conversations = new ConversationsAPI.Conversations(this._client);
|
|
25
|
+
datasets: DatasetsAPI.Datasets = new DatasetsAPI.Datasets(this._client);
|
|
26
|
+
mcpServers: McpServersAPI.McpServers = new McpServersAPI.McpServers(this._client);
|
|
9
27
|
}
|
|
10
28
|
|
|
11
29
|
Agents.DataSummary = DataSummary;
|
|
30
|
+
Agents.Conversations = Conversations;
|
|
31
|
+
Agents.Datasets = Datasets;
|
|
32
|
+
Agents.McpServers = McpServers;
|
|
12
33
|
|
|
13
34
|
export declare namespace Agents {
|
|
14
35
|
export { DataSummary as DataSummary, type DataSummaryRetrieveResponse as DataSummaryRetrieveResponse };
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
Conversations as Conversations,
|
|
39
|
+
type InconvoConversation as InconvoConversation,
|
|
40
|
+
type ConversationCreateResponse as ConversationCreateResponse,
|
|
41
|
+
type ConversationListResponse as ConversationListResponse,
|
|
42
|
+
type ConversationListResponsesConversationsCursor as ConversationListResponsesConversationsCursor,
|
|
43
|
+
type ConversationCreateParams as ConversationCreateParams,
|
|
44
|
+
type ConversationRetrieveParams as ConversationRetrieveParams,
|
|
45
|
+
type ConversationListParams as ConversationListParams,
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export { Datasets as Datasets };
|
|
49
|
+
|
|
50
|
+
export { McpServers as McpServers };
|
|
15
51
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as ResponseAPI from './response/response';
|
|
5
5
|
import {
|
|
6
6
|
Chart,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
ResponseRetrieveResponse,
|
|
12
12
|
Table,
|
|
13
13
|
} from './response/response';
|
|
14
|
-
import { APIPromise } from '
|
|
15
|
-
import { ConversationsCursor, type ConversationsCursorParams, PagePromise } from '
|
|
16
|
-
import { RequestOptions } from '
|
|
17
|
-
import { path } from '
|
|
14
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
15
|
+
import { ConversationsCursor, type ConversationsCursorParams, PagePromise } from '../../../core/pagination';
|
|
16
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
17
|
+
import { path } from '../../../internal/utils/path';
|
|
18
18
|
|
|
19
19
|
export class Conversations extends APIResource {
|
|
20
20
|
response: ResponseAPI.Response = new ResponseAPI.Response(this._client);
|
|
@@ -24,13 +24,18 @@ export class Conversations extends APIResource {
|
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* ```ts
|
|
27
|
-
* const conversation =
|
|
28
|
-
*
|
|
29
|
-
*
|
|
27
|
+
* const conversation =
|
|
28
|
+
* await client.agents.conversations.create('agentId', {
|
|
29
|
+
* userIdentifier: 'user_123',
|
|
30
|
+
* });
|
|
30
31
|
* ```
|
|
31
32
|
*/
|
|
32
|
-
create(
|
|
33
|
-
|
|
33
|
+
create(
|
|
34
|
+
agentID: string,
|
|
35
|
+
body: ConversationCreateParams,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<ConversationCreateResponse> {
|
|
38
|
+
return this._client.post(path`/agents/${agentID}/conversations`, { body, ...options });
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
/**
|
|
@@ -39,11 +44,18 @@ export class Conversations extends APIResource {
|
|
|
39
44
|
* @example
|
|
40
45
|
* ```ts
|
|
41
46
|
* const inconvoConversation =
|
|
42
|
-
* await client.conversations.retrieve('id'
|
|
47
|
+
* await client.agents.conversations.retrieve('id', {
|
|
48
|
+
* agentId: 'agentId',
|
|
49
|
+
* });
|
|
43
50
|
* ```
|
|
44
51
|
*/
|
|
45
|
-
retrieve(
|
|
46
|
-
|
|
52
|
+
retrieve(
|
|
53
|
+
id: string,
|
|
54
|
+
params: ConversationRetrieveParams,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): APIPromise<InconvoConversation> {
|
|
57
|
+
const { agentId } = params;
|
|
58
|
+
return this._client.get(path`/agents/${agentId}/conversations/${id}`, options);
|
|
47
59
|
}
|
|
48
60
|
|
|
49
61
|
/**
|
|
@@ -52,19 +64,23 @@ export class Conversations extends APIResource {
|
|
|
52
64
|
* @example
|
|
53
65
|
* ```ts
|
|
54
66
|
* // Automatically fetches more pages as needed.
|
|
55
|
-
* for await (const conversationListResponse of client.conversations.list(
|
|
67
|
+
* for await (const conversationListResponse of client.agents.conversations.list(
|
|
68
|
+
* 'agentId',
|
|
69
|
+
* )) {
|
|
56
70
|
* // ...
|
|
57
71
|
* }
|
|
58
72
|
* ```
|
|
59
73
|
*/
|
|
60
74
|
list(
|
|
75
|
+
agentID: string,
|
|
61
76
|
query: ConversationListParams | null | undefined = {},
|
|
62
77
|
options?: RequestOptions,
|
|
63
78
|
): PagePromise<ConversationListResponsesConversationsCursor, ConversationListResponse> {
|
|
64
|
-
return this._client.getAPIList(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
79
|
+
return this._client.getAPIList(
|
|
80
|
+
path`/agents/${agentID}/conversations`,
|
|
81
|
+
ConversationsCursor<ConversationListResponse>,
|
|
82
|
+
{ query, ...options },
|
|
83
|
+
);
|
|
68
84
|
}
|
|
69
85
|
}
|
|
70
86
|
|
|
@@ -135,6 +151,13 @@ export interface ConversationCreateParams {
|
|
|
135
151
|
userContext?: { [key: string]: unknown };
|
|
136
152
|
}
|
|
137
153
|
|
|
154
|
+
export interface ConversationRetrieveParams {
|
|
155
|
+
/**
|
|
156
|
+
* The unique identifier of the agent
|
|
157
|
+
*/
|
|
158
|
+
agentId: string;
|
|
159
|
+
}
|
|
160
|
+
|
|
138
161
|
export interface ConversationListParams extends ConversationsCursorParams {
|
|
139
162
|
/**
|
|
140
163
|
* Arbitrary userContext filters, encoded as a deep object. Example: GET
|
|
@@ -157,6 +180,7 @@ export declare namespace Conversations {
|
|
|
157
180
|
type ConversationListResponse as ConversationListResponse,
|
|
158
181
|
type ConversationListResponsesConversationsCursor as ConversationListResponsesConversationsCursor,
|
|
159
182
|
type ConversationCreateParams as ConversationCreateParams,
|
|
183
|
+
type ConversationRetrieveParams as ConversationRetrieveParams,
|
|
160
184
|
type ConversationListParams as ConversationListParams,
|
|
161
185
|
};
|
|
162
186
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
4
|
-
import { APIPromise } from '
|
|
5
|
-
import { RequestOptions } from '
|
|
6
|
-
import { path } from '
|
|
3
|
+
import { APIResource } from '../../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../../internal/utils/path';
|
|
7
7
|
|
|
8
8
|
export class FeedbackResource extends APIResource {
|
|
9
9
|
/**
|
|
@@ -12,18 +12,22 @@ export class FeedbackResource extends APIResource {
|
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
14
|
* const feedback =
|
|
15
|
-
* await client.conversations.response.feedback.create(
|
|
15
|
+
* await client.agents.conversations.response.feedback.create(
|
|
16
16
|
* 'response_id',
|
|
17
|
-
* {
|
|
17
|
+
* {
|
|
18
|
+
* agentId: 'agentId',
|
|
19
|
+
* convo_id: 'convo_id',
|
|
20
|
+
* rating: 'positive',
|
|
21
|
+
* },
|
|
18
22
|
* );
|
|
19
23
|
* ```
|
|
20
24
|
*/
|
|
21
25
|
create(responseID: string, params: FeedbackCreateParams, options?: RequestOptions): APIPromise<Feedback> {
|
|
22
|
-
const {
|
|
23
|
-
return this._client.post(
|
|
24
|
-
|
|
25
|
-
...options,
|
|
26
|
-
|
|
26
|
+
const { agentId, convo_id, ...body } = params;
|
|
27
|
+
return this._client.post(
|
|
28
|
+
path`/agents/${agentId}/conversations/${convo_id}/response/${responseID}/feedback`,
|
|
29
|
+
{ body, ...options },
|
|
30
|
+
);
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
/**
|
|
@@ -32,18 +36,22 @@ export class FeedbackResource extends APIResource {
|
|
|
32
36
|
* @example
|
|
33
37
|
* ```ts
|
|
34
38
|
* const feedback =
|
|
35
|
-
* await client.conversations.response.feedback.update(
|
|
39
|
+
* await client.agents.conversations.response.feedback.update(
|
|
36
40
|
* 'feedback_id',
|
|
37
|
-
* {
|
|
41
|
+
* {
|
|
42
|
+
* agentId: 'agentId',
|
|
43
|
+
* convo_id: 'convo_id',
|
|
44
|
+
* response_id: 'response_id',
|
|
45
|
+
* },
|
|
38
46
|
* );
|
|
39
47
|
* ```
|
|
40
48
|
*/
|
|
41
49
|
update(feedbackID: string, params: FeedbackUpdateParams, options?: RequestOptions): APIPromise<Feedback> {
|
|
42
|
-
const {
|
|
43
|
-
return this._client.patch(
|
|
44
|
-
|
|
45
|
-
...options,
|
|
46
|
-
|
|
50
|
+
const { agentId, convo_id, response_id, ...body } = params;
|
|
51
|
+
return this._client.patch(
|
|
52
|
+
path`/agents/${agentId}/conversations/${convo_id}/response/${response_id}/feedback/${feedbackID}`,
|
|
53
|
+
{ body, ...options },
|
|
54
|
+
);
|
|
47
55
|
}
|
|
48
56
|
}
|
|
49
57
|
|
|
@@ -56,10 +64,15 @@ export interface Feedback {
|
|
|
56
64
|
}
|
|
57
65
|
|
|
58
66
|
export interface FeedbackCreateParams {
|
|
67
|
+
/**
|
|
68
|
+
* Path param: The unique identifier of the agent
|
|
69
|
+
*/
|
|
70
|
+
agentId: string;
|
|
71
|
+
|
|
59
72
|
/**
|
|
60
73
|
* Path param
|
|
61
74
|
*/
|
|
62
|
-
|
|
75
|
+
convo_id: string;
|
|
63
76
|
|
|
64
77
|
/**
|
|
65
78
|
* Body param
|
|
@@ -73,10 +86,15 @@ export interface FeedbackCreateParams {
|
|
|
73
86
|
}
|
|
74
87
|
|
|
75
88
|
export interface FeedbackUpdateParams {
|
|
89
|
+
/**
|
|
90
|
+
* Path param: The unique identifier of the agent
|
|
91
|
+
*/
|
|
92
|
+
agentId: string;
|
|
93
|
+
|
|
76
94
|
/**
|
|
77
95
|
* Path param
|
|
78
96
|
*/
|
|
79
|
-
|
|
97
|
+
convo_id: string;
|
|
80
98
|
|
|
81
99
|
/**
|
|
82
100
|
* Path param
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
3
|
+
import { APIResource } from '../../../../core/resource';
|
|
4
4
|
import * as ResponseAPI from './response';
|
|
5
5
|
import * as FeedbackAPI from './feedback';
|
|
6
6
|
import { Feedback, FeedbackCreateParams, FeedbackResource, FeedbackUpdateParams } from './feedback';
|
|
7
|
-
import { APIPromise } from '
|
|
8
|
-
import { RequestOptions } from '
|
|
9
|
-
import { path } from '
|
|
10
|
-
import { SSEStream, createSSEStream } from '
|
|
7
|
+
import { APIPromise } from '../../../../core/api-promise';
|
|
8
|
+
import { RequestOptions } from '../../../../internal/request-options';
|
|
9
|
+
import { path } from '../../../../internal/utils/path';
|
|
10
|
+
import { SSEStream, createSSEStream } from '../../../../core/sse-stream';
|
|
11
11
|
|
|
12
12
|
export class Response extends APIResource {
|
|
13
13
|
feedback: FeedbackAPI.FeedbackResource = new FeedbackAPI.FeedbackResource(this._client);
|
|
@@ -17,36 +17,38 @@ export class Response extends APIResource {
|
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
20
|
-
* const response =
|
|
21
|
-
* 'id',
|
|
22
|
-
*
|
|
23
|
-
*
|
|
20
|
+
* const response =
|
|
21
|
+
* await client.agents.conversations.response.create('id', {
|
|
22
|
+
* agentId: 'agentId',
|
|
23
|
+
* message: 'message',
|
|
24
|
+
* });
|
|
24
25
|
* ```
|
|
25
26
|
*/
|
|
26
27
|
create(
|
|
27
28
|
id: string,
|
|
28
|
-
|
|
29
|
+
params: ResponseCreateParams & { stream: true },
|
|
29
30
|
options?: RequestOptions,
|
|
30
31
|
): SSEStream<ResponseStreamEvent>;
|
|
31
32
|
create(
|
|
32
33
|
id: string,
|
|
33
|
-
|
|
34
|
+
params: ResponseCreateParams & { stream?: false },
|
|
34
35
|
options?: RequestOptions,
|
|
35
36
|
): APIPromise<ResponseCreateResponse>;
|
|
36
37
|
create(
|
|
37
38
|
id: string,
|
|
38
|
-
|
|
39
|
+
params: ResponseCreateParams,
|
|
39
40
|
options?: RequestOptions,
|
|
40
41
|
): APIPromise<ResponseCreateResponse>;
|
|
41
42
|
create(
|
|
42
43
|
id: string,
|
|
43
|
-
|
|
44
|
+
params: ResponseCreateParams,
|
|
44
45
|
options?: RequestOptions,
|
|
45
46
|
): APIPromise<ResponseCreateResponse> | SSEStream<ResponseStreamEvent> {
|
|
47
|
+
const { agentId, ...body } = params;
|
|
46
48
|
if (body.stream === true) {
|
|
47
|
-
return this._createStreaming(id, body, options);
|
|
49
|
+
return this._createStreaming(id, agentId, body, options);
|
|
48
50
|
}
|
|
49
|
-
return this._client.post(path`/conversations/${id}/response`, { body, ...options });
|
|
51
|
+
return this._client.post(path`/agents/${agentId}/conversations/${id}/response`, { body, ...options });
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
/**
|
|
@@ -55,9 +57,12 @@ export class Response extends APIResource {
|
|
|
55
57
|
* @example
|
|
56
58
|
* ```ts
|
|
57
59
|
* const response =
|
|
58
|
-
* await client.conversations.response.retrieve(
|
|
60
|
+
* await client.agents.conversations.response.retrieve(
|
|
59
61
|
* 'response_id',
|
|
60
|
-
* {
|
|
62
|
+
* {
|
|
63
|
+
* agentId: 'agentId',
|
|
64
|
+
* conversation_id: 'conversation_id',
|
|
65
|
+
* },
|
|
61
66
|
* );
|
|
62
67
|
* ```
|
|
63
68
|
*/
|
|
@@ -66,13 +71,17 @@ export class Response extends APIResource {
|
|
|
66
71
|
params: ResponseRetrieveParams,
|
|
67
72
|
options?: RequestOptions,
|
|
68
73
|
): APIPromise<ResponseRetrieveResponse> {
|
|
69
|
-
const { conversation_id } = params;
|
|
70
|
-
return this._client.get(
|
|
74
|
+
const { agentId, conversation_id } = params;
|
|
75
|
+
return this._client.get(
|
|
76
|
+
path`/agents/${agentId}/conversations/${conversation_id}/response/${responseID}`,
|
|
77
|
+
options,
|
|
78
|
+
);
|
|
71
79
|
}
|
|
72
80
|
|
|
73
81
|
private _createStreaming(
|
|
74
82
|
id: string,
|
|
75
|
-
|
|
83
|
+
agentId: string,
|
|
84
|
+
body: Omit<ResponseCreateParams, 'agentId'>,
|
|
76
85
|
options?: RequestOptions,
|
|
77
86
|
): SSEStream<ResponseStreamEvent> {
|
|
78
87
|
// Create a controller for aborting the request if needed
|
|
@@ -90,7 +99,7 @@ export class Response extends APIResource {
|
|
|
90
99
|
};
|
|
91
100
|
|
|
92
101
|
// When __binaryResponse is true, post() returns the raw Response directly
|
|
93
|
-
const responsePromise = this._client.post(path`/conversations/${id}/response`, {
|
|
102
|
+
const responsePromise = this._client.post(path`/agents/${agentId}/conversations/${id}/response`, {
|
|
94
103
|
body,
|
|
95
104
|
...requestOptions,
|
|
96
105
|
}) as Promise<globalThis.Response>;
|
|
@@ -227,16 +236,29 @@ export type ResponseStreamEvent = ResponseCreatedEvent | ResponseProgressEvent |
|
|
|
227
236
|
export type ResponseCreateStreamResponse = SSEStream<ResponseStreamEvent>;
|
|
228
237
|
|
|
229
238
|
export interface ResponseCreateParams {
|
|
239
|
+
/**
|
|
240
|
+
* Path param: The unique identifier of the agent
|
|
241
|
+
*/
|
|
242
|
+
agentId: string;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Body param
|
|
246
|
+
*/
|
|
230
247
|
message: string;
|
|
231
248
|
|
|
232
249
|
/**
|
|
233
|
-
* If true and the client sets `Accept: text/event-stream`, the API
|
|
234
|
-
* stream instead of a single JSON body.
|
|
250
|
+
* Body param: If true and the client sets `Accept: text/event-stream`, the API
|
|
251
|
+
* returns an SSE stream instead of a single JSON body.
|
|
235
252
|
*/
|
|
236
253
|
stream?: boolean;
|
|
237
254
|
}
|
|
238
255
|
|
|
239
256
|
export interface ResponseRetrieveParams {
|
|
257
|
+
/**
|
|
258
|
+
* The unique identifier of the agent
|
|
259
|
+
*/
|
|
260
|
+
agentId: string;
|
|
261
|
+
|
|
240
262
|
conversation_id: string;
|
|
241
263
|
}
|
|
242
264
|
|
|
@@ -3,13 +3,20 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
5
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
6
7
|
|
|
7
8
|
export class DataSummary extends APIResource {
|
|
8
9
|
/**
|
|
9
10
|
* Retrieve a summary of data available to the agent
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const dataSummary =
|
|
15
|
+
* await client.agents.dataSummary.retrieve('agentId');
|
|
16
|
+
* ```
|
|
10
17
|
*/
|
|
11
|
-
retrieve(options?: RequestOptions): APIPromise<DataSummaryRetrieveResponse> {
|
|
12
|
-
return this._client.get(
|
|
18
|
+
retrieve(agentID: string, options?: RequestOptions): APIPromise<DataSummaryRetrieveResponse> {
|
|
19
|
+
return this._client.get(path`/agents/${agentID}/data-summary`, options);
|
|
13
20
|
}
|
|
14
21
|
}
|
|
15
22
|
|