@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.cjs
CHANGED
|
@@ -5568,6 +5568,58 @@ var AgentConnection = class _AgentConnection {
|
|
|
5568
5568
|
return await this.#connection.sendRequest(method, params);
|
|
5569
5569
|
}
|
|
5570
5570
|
// ===========================================================================
|
|
5571
|
+
// Tasks
|
|
5572
|
+
// ===========================================================================
|
|
5573
|
+
/**
|
|
5574
|
+
* Create a new task.
|
|
5575
|
+
*
|
|
5576
|
+
* @param params - Task creation parameters
|
|
5577
|
+
* @returns The created task
|
|
5578
|
+
*/
|
|
5579
|
+
async createTask(params) {
|
|
5580
|
+
return this.#connection.sendRequest(
|
|
5581
|
+
TASK_METHODS.TASKS_CREATE,
|
|
5582
|
+
params
|
|
5583
|
+
);
|
|
5584
|
+
}
|
|
5585
|
+
/**
|
|
5586
|
+
* Assign a task to an agent.
|
|
5587
|
+
*
|
|
5588
|
+
* @param taskId - ID of the task to assign
|
|
5589
|
+
* @param agentId - ID of the agent to assign to
|
|
5590
|
+
* @returns The updated task
|
|
5591
|
+
*/
|
|
5592
|
+
async assignTask(taskId, agentId) {
|
|
5593
|
+
return this.#connection.sendRequest(
|
|
5594
|
+
TASK_METHODS.TASKS_ASSIGN,
|
|
5595
|
+
{ taskId, agentId }
|
|
5596
|
+
);
|
|
5597
|
+
}
|
|
5598
|
+
/**
|
|
5599
|
+
* Update a task's status or fields.
|
|
5600
|
+
*
|
|
5601
|
+
* @param params - Update parameters including taskId and fields to change
|
|
5602
|
+
* @returns The updated task
|
|
5603
|
+
*/
|
|
5604
|
+
async updateTask(params) {
|
|
5605
|
+
return this.#connection.sendRequest(
|
|
5606
|
+
TASK_METHODS.TASKS_UPDATE,
|
|
5607
|
+
params
|
|
5608
|
+
);
|
|
5609
|
+
}
|
|
5610
|
+
/**
|
|
5611
|
+
* List tasks with optional filters.
|
|
5612
|
+
*
|
|
5613
|
+
* @param params - Optional filter, limit, and cursor parameters
|
|
5614
|
+
* @returns Paginated list of tasks
|
|
5615
|
+
*/
|
|
5616
|
+
async listTasks(params) {
|
|
5617
|
+
return this.#connection.sendRequest(
|
|
5618
|
+
TASK_METHODS.TASKS_LIST,
|
|
5619
|
+
params ?? {}
|
|
5620
|
+
);
|
|
5621
|
+
}
|
|
5622
|
+
// ===========================================================================
|
|
5571
5623
|
// Internal
|
|
5572
5624
|
// ===========================================================================
|
|
5573
5625
|
/**
|