@multi-agent-protocol/sdk 0.1.2 → 0.1.3
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/{index-B1Lpo3ll.d.cts → index-B5adJHGI.d.cts} +29 -0
- package/dist/{index-B1Lpo3ll.d.ts → index-B5adJHGI.d.ts} +29 -0
- package/dist/index.cjs +52 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +52 -0
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs +52 -0
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +52 -0
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
package/dist/testing.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as ParticipantCapabilities, hG as SystemExposure, d as FederationRoutingConfig, S as Stream, cy as BaseConnection, f as SessionId, A as AgentId, n as Agent, m as ScopeId, o as Scope, g9 as TaskId, dH as MAPTask, c as Message, r as Event, k as ParticipantId, N as SubscriptionId, cG as ClientConnectionOptions, cF as ClientConnection, c3 as AgentsListRequestParams, fy as ScopesListRequestParams, q as SubscriptionFilter, fY as Subscription, e as EventType, bM as AgentConnectionOptions, X as AgentConnection } from './index-
|
|
1
|
+
import { P as ParticipantCapabilities, hG as SystemExposure, d as FederationRoutingConfig, S as Stream, cy as BaseConnection, f as SessionId, A as AgentId, n as Agent, m as ScopeId, o as Scope, g9 as TaskId, dH as MAPTask, c as Message, r as Event, k as ParticipantId, N as SubscriptionId, cG as ClientConnectionOptions, cF as ClientConnection, c3 as AgentsListRequestParams, fy as ScopesListRequestParams, q as SubscriptionFilter, fY as Subscription, e as EventType, bM as AgentConnectionOptions, X as AgentConnection } from './index-B5adJHGI.cjs';
|
|
2
2
|
import 'events';
|
|
3
3
|
|
|
4
4
|
/**
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as ParticipantCapabilities, hG as SystemExposure, d as FederationRoutingConfig, S as Stream, cy as BaseConnection, f as SessionId, A as AgentId, n as Agent, m as ScopeId, o as Scope, g9 as TaskId, dH as MAPTask, c as Message, r as Event, k as ParticipantId, N as SubscriptionId, cG as ClientConnectionOptions, cF as ClientConnection, c3 as AgentsListRequestParams, fy as ScopesListRequestParams, q as SubscriptionFilter, fY as Subscription, e as EventType, bM as AgentConnectionOptions, X as AgentConnection } from './index-
|
|
1
|
+
import { P as ParticipantCapabilities, hG as SystemExposure, d as FederationRoutingConfig, S as Stream, cy as BaseConnection, f as SessionId, A as AgentId, n as Agent, m as ScopeId, o as Scope, g9 as TaskId, dH as MAPTask, c as Message, r as Event, k as ParticipantId, N as SubscriptionId, cG as ClientConnectionOptions, cF as ClientConnection, c3 as AgentsListRequestParams, fy as ScopesListRequestParams, q as SubscriptionFilter, fY as Subscription, e as EventType, bM as AgentConnectionOptions, X as AgentConnection } from './index-B5adJHGI.js';
|
|
2
2
|
import 'events';
|
|
3
3
|
|
|
4
4
|
/**
|
package/dist/testing.js
CHANGED
|
@@ -5566,6 +5566,58 @@ var AgentConnection = class _AgentConnection {
|
|
|
5566
5566
|
return await this.#connection.sendRequest(method, params);
|
|
5567
5567
|
}
|
|
5568
5568
|
// ===========================================================================
|
|
5569
|
+
// Tasks
|
|
5570
|
+
// ===========================================================================
|
|
5571
|
+
/**
|
|
5572
|
+
* Create a new task.
|
|
5573
|
+
*
|
|
5574
|
+
* @param params - Task creation parameters
|
|
5575
|
+
* @returns The created task
|
|
5576
|
+
*/
|
|
5577
|
+
async createTask(params) {
|
|
5578
|
+
return this.#connection.sendRequest(
|
|
5579
|
+
TASK_METHODS.TASKS_CREATE,
|
|
5580
|
+
params
|
|
5581
|
+
);
|
|
5582
|
+
}
|
|
5583
|
+
/**
|
|
5584
|
+
* Assign a task to an agent.
|
|
5585
|
+
*
|
|
5586
|
+
* @param taskId - ID of the task to assign
|
|
5587
|
+
* @param agentId - ID of the agent to assign to
|
|
5588
|
+
* @returns The updated task
|
|
5589
|
+
*/
|
|
5590
|
+
async assignTask(taskId, agentId) {
|
|
5591
|
+
return this.#connection.sendRequest(
|
|
5592
|
+
TASK_METHODS.TASKS_ASSIGN,
|
|
5593
|
+
{ taskId, agentId }
|
|
5594
|
+
);
|
|
5595
|
+
}
|
|
5596
|
+
/**
|
|
5597
|
+
* Update a task's status or fields.
|
|
5598
|
+
*
|
|
5599
|
+
* @param params - Update parameters including taskId and fields to change
|
|
5600
|
+
* @returns The updated task
|
|
5601
|
+
*/
|
|
5602
|
+
async updateTask(params) {
|
|
5603
|
+
return this.#connection.sendRequest(
|
|
5604
|
+
TASK_METHODS.TASKS_UPDATE,
|
|
5605
|
+
params
|
|
5606
|
+
);
|
|
5607
|
+
}
|
|
5608
|
+
/**
|
|
5609
|
+
* List tasks with optional filters.
|
|
5610
|
+
*
|
|
5611
|
+
* @param params - Optional filter, limit, and cursor parameters
|
|
5612
|
+
* @returns Paginated list of tasks
|
|
5613
|
+
*/
|
|
5614
|
+
async listTasks(params) {
|
|
5615
|
+
return this.#connection.sendRequest(
|
|
5616
|
+
TASK_METHODS.TASKS_LIST,
|
|
5617
|
+
params ?? {}
|
|
5618
|
+
);
|
|
5619
|
+
}
|
|
5620
|
+
// ===========================================================================
|
|
5569
5621
|
// Internal
|
|
5570
5622
|
// ===========================================================================
|
|
5571
5623
|
/**
|