@ideascol/agents-generator-sdk 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin/cli.js CHANGED
@@ -1973,6 +1973,7 @@ class AgentClient {
1973
1973
  this.root = RootService;
1974
1974
  this.fileLibrary = FileLibraryService;
1975
1975
  this.credentials = CredentialsService;
1976
+ this.conversationsStream = ConversationsServiceStream;
1976
1977
  this.admin = {
1977
1978
  agents: AdminAgentsService,
1978
1979
  conversations: AdminConversationsService,
@@ -1982,9 +1983,8 @@ class AgentClient {
1982
1983
  };
1983
1984
  this.public = {
1984
1985
  agents: PublicAgentsService,
1985
- conversations: PublicConversationsService
1986
+ conversations: PublicConversationsServiceExtended
1986
1987
  };
1987
- this.conversationsStream = ConversationsServiceStream;
1988
1988
  this.ApiError = ApiError;
1989
1989
  this.CancelError = CancelError;
1990
1990
  this.CancelablePromise = CancelablePromise;
@@ -1997,7 +1997,7 @@ class AgentClient {
1997
1997
  return ConversationsServiceStream.addMessage(conversationId, requestBody, "text/plain");
1998
1998
  }
1999
1999
  }
2000
- var ConversationsServiceStream, lib_default;
2000
+ var ConversationsServiceStream, PublicConversationsServiceExtended, lib_default;
2001
2001
  var init_lib = __esm(() => {
2002
2002
  init_agents_generator();
2003
2003
  init_agents_generator();
@@ -2177,6 +2177,10 @@ var init_lib = __esm(() => {
2177
2177
  return () => controller.abort();
2178
2178
  }
2179
2179
  };
2180
+ PublicConversationsServiceExtended = class PublicConversationsServiceExtended extends PublicConversationsService {
2181
+ static sendMessageWithStreaming;
2182
+ static sendMessage;
2183
+ };
2180
2184
  lib_default = AgentClient;
2181
2185
  });
2182
2186
 
@@ -2199,6 +2203,7 @@ var init_agentsCommand = __esm(() => {
2199
2203
  const agents = await client.agent.getAgents(0, 100);
2200
2204
  const agents2 = await client.admin.agents.getAgents(0, 100);
2201
2205
  const agent = await client.public.agents.getAgent("some-agent-id");
2206
+ const conversation = await client.public.conversations.sendMessageWithStreaming;
2202
2207
  console.log(agents);
2203
2208
  console.log(agents2);
2204
2209
  }
package/dist/index.js CHANGED
@@ -1541,6 +1541,7 @@ class AgentClient {
1541
1541
  this.root = RootService;
1542
1542
  this.fileLibrary = FileLibraryService;
1543
1543
  this.credentials = CredentialsService;
1544
+ this.conversationsStream = ConversationsServiceStream;
1544
1545
  this.admin = {
1545
1546
  agents: AdminAgentsService,
1546
1547
  conversations: AdminConversationsService,
@@ -1550,9 +1551,8 @@ class AgentClient {
1550
1551
  };
1551
1552
  this.public = {
1552
1553
  agents: PublicAgentsService,
1553
- conversations: PublicConversationsService
1554
+ conversations: PublicConversationsServiceExtended
1554
1555
  };
1555
- this.conversationsStream = ConversationsServiceStream;
1556
1556
  this.ApiError = ApiError;
1557
1557
  this.CancelError = CancelError;
1558
1558
  this.CancelablePromise = CancelablePromise;
@@ -1565,7 +1565,7 @@ class AgentClient {
1565
1565
  return ConversationsServiceStream.addMessage(conversationId, requestBody, "text/plain");
1566
1566
  }
1567
1567
  }
1568
- var ConversationsServiceStream, lib_default;
1568
+ var ConversationsServiceStream, PublicConversationsServiceExtended, lib_default;
1569
1569
  var init_lib = __esm(() => {
1570
1570
  init_agents_generator();
1571
1571
  init_agents_generator();
@@ -1745,6 +1745,10 @@ var init_lib = __esm(() => {
1745
1745
  return () => controller.abort();
1746
1746
  }
1747
1747
  };
1748
+ PublicConversationsServiceExtended = class PublicConversationsServiceExtended extends PublicConversationsService {
1749
+ static sendMessageWithStreaming;
1750
+ static sendMessage;
1751
+ };
1748
1752
  lib_default = AgentClient;
1749
1753
  });
1750
1754
 
@@ -21,6 +21,10 @@ declare class ConversationsServiceStream extends ConversationsService {
21
21
  */
22
22
  static addMessageConversationsConversationIdMessagesPostStream(conversationId: string, requestBody: MessageCreate, callbacks: StreamCallbacks): () => void;
23
23
  }
24
+ declare class PublicConversationsServiceExtended extends PublicConversationsService {
25
+ static sendMessageWithStreaming: typeof AgentClient.prototype.sendMessageWithStreaming;
26
+ static sendMessage: typeof AgentClient.prototype.sendMessage;
27
+ }
24
28
  export declare class AgentClient {
25
29
  admin: {
26
30
  agents: typeof AdminAgentsService;
@@ -31,7 +35,7 @@ export declare class AgentClient {
31
35
  };
32
36
  public: {
33
37
  agents: typeof PublicAgentsService;
34
- conversations: typeof PublicConversationsService;
38
+ conversations: typeof PublicConversationsServiceExtended;
35
39
  };
36
40
  /**
37
41
  * @deprecated agent: Use client.admin.agents
@@ -58,17 +62,24 @@ export declare class AgentClient {
58
62
  CancelError: typeof CancelError;
59
63
  CancelablePromise: typeof CancelablePromise;
60
64
  OpenAPI: typeof OpenAPI;
65
+ /**
66
+ * Conversations stream service
67
+ * @deprecated Use client.public.conversations.sendMessageWithStreaming instead
68
+ */
61
69
  conversationsStream: typeof ConversationsServiceStream;
62
70
  constructor({ apiUrl, apiToken, }: {
63
71
  apiUrl: string;
64
72
  apiToken: string;
65
73
  });
66
74
  /**
67
- * Envía un mensaje a una conversación con soporte para streaming
75
+ * sendMessageWithStreaming: Sent a message with streaming support to a conversation
76
+ * @deprecated Use client.public.conversations.sendMessageWithStreaming instead
68
77
  */
69
78
  sendMessageWithStreaming(conversationId: string, requestBody: MessageCreate, callbacks: StreamCallbacks): () => void;
70
79
  /**
71
- * Envía un mensaje a una conversación sin streaming
80
+ * sendMessage: Sends a message to a conversation without streaming
81
+ * @returns CancelablePromise with the response
82
+ * @deprecated Use client.public.conversations.sendMessage instead
72
83
  */
73
84
  sendMessage(conversationId: string, requestBody: MessageCreate): CancelablePromise<{
74
85
  status: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ideascol/agents-generator-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "bun test",