@multi-agent-protocol/sdk 0.1.2 → 0.1.4
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 +53 -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 +53 -0
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
|
@@ -6036,6 +6036,35 @@ declare class AgentConnection {
|
|
|
6036
6036
|
* @returns The result from the server
|
|
6037
6037
|
*/
|
|
6038
6038
|
callExtension<TParams = unknown, TResult = unknown>(method: string, params?: TParams): Promise<TResult>;
|
|
6039
|
+
/**
|
|
6040
|
+
* Create a new task.
|
|
6041
|
+
*
|
|
6042
|
+
* @param params - Task creation parameters
|
|
6043
|
+
* @returns The created task
|
|
6044
|
+
*/
|
|
6045
|
+
createTask(params: Omit<TasksCreateRequestParams, '_meta'>): Promise<TasksCreateResponseResult>;
|
|
6046
|
+
/**
|
|
6047
|
+
* Assign a task to an agent.
|
|
6048
|
+
*
|
|
6049
|
+
* @param taskId - ID of the task to assign
|
|
6050
|
+
* @param agentId - ID of the agent to assign to
|
|
6051
|
+
* @returns The updated task
|
|
6052
|
+
*/
|
|
6053
|
+
assignTask(taskId: TaskId, agentId: AgentId): Promise<TasksAssignResponseResult>;
|
|
6054
|
+
/**
|
|
6055
|
+
* Update a task's status or fields.
|
|
6056
|
+
*
|
|
6057
|
+
* @param params - Update parameters including taskId and fields to change
|
|
6058
|
+
* @returns The updated task
|
|
6059
|
+
*/
|
|
6060
|
+
updateTask(params: Omit<TasksUpdateRequestParams, '_meta'>): Promise<TasksUpdateResponseResult>;
|
|
6061
|
+
/**
|
|
6062
|
+
* List tasks with optional filters.
|
|
6063
|
+
*
|
|
6064
|
+
* @param params - Optional filter, limit, and cursor parameters
|
|
6065
|
+
* @returns Paginated list of tasks
|
|
6066
|
+
*/
|
|
6067
|
+
listTasks(params?: Omit<TasksListRequestParams, '_meta'>): Promise<TasksListResponseResult>;
|
|
6039
6068
|
}
|
|
6040
6069
|
|
|
6041
6070
|
/**
|
|
@@ -6036,6 +6036,35 @@ declare class AgentConnection {
|
|
|
6036
6036
|
* @returns The result from the server
|
|
6037
6037
|
*/
|
|
6038
6038
|
callExtension<TParams = unknown, TResult = unknown>(method: string, params?: TParams): Promise<TResult>;
|
|
6039
|
+
/**
|
|
6040
|
+
* Create a new task.
|
|
6041
|
+
*
|
|
6042
|
+
* @param params - Task creation parameters
|
|
6043
|
+
* @returns The created task
|
|
6044
|
+
*/
|
|
6045
|
+
createTask(params: Omit<TasksCreateRequestParams, '_meta'>): Promise<TasksCreateResponseResult>;
|
|
6046
|
+
/**
|
|
6047
|
+
* Assign a task to an agent.
|
|
6048
|
+
*
|
|
6049
|
+
* @param taskId - ID of the task to assign
|
|
6050
|
+
* @param agentId - ID of the agent to assign to
|
|
6051
|
+
* @returns The updated task
|
|
6052
|
+
*/
|
|
6053
|
+
assignTask(taskId: TaskId, agentId: AgentId): Promise<TasksAssignResponseResult>;
|
|
6054
|
+
/**
|
|
6055
|
+
* Update a task's status or fields.
|
|
6056
|
+
*
|
|
6057
|
+
* @param params - Update parameters including taskId and fields to change
|
|
6058
|
+
* @returns The updated task
|
|
6059
|
+
*/
|
|
6060
|
+
updateTask(params: Omit<TasksUpdateRequestParams, '_meta'>): Promise<TasksUpdateResponseResult>;
|
|
6061
|
+
/**
|
|
6062
|
+
* List tasks with optional filters.
|
|
6063
|
+
*
|
|
6064
|
+
* @param params - Optional filter, limit, and cursor parameters
|
|
6065
|
+
* @returns Paginated list of tasks
|
|
6066
|
+
*/
|
|
6067
|
+
listTasks(params?: Omit<TasksListRequestParams, '_meta'>): Promise<TasksListResponseResult>;
|
|
6039
6068
|
}
|
|
6040
6069
|
|
|
6041
6070
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -4616,6 +4616,58 @@ var AgentConnection = class _AgentConnection {
|
|
|
4616
4616
|
return await this.#connection.sendRequest(method, params);
|
|
4617
4617
|
}
|
|
4618
4618
|
// ===========================================================================
|
|
4619
|
+
// Tasks
|
|
4620
|
+
// ===========================================================================
|
|
4621
|
+
/**
|
|
4622
|
+
* Create a new task.
|
|
4623
|
+
*
|
|
4624
|
+
* @param params - Task creation parameters
|
|
4625
|
+
* @returns The created task
|
|
4626
|
+
*/
|
|
4627
|
+
async createTask(params) {
|
|
4628
|
+
return this.#connection.sendRequest(
|
|
4629
|
+
TASK_METHODS.TASKS_CREATE,
|
|
4630
|
+
params
|
|
4631
|
+
);
|
|
4632
|
+
}
|
|
4633
|
+
/**
|
|
4634
|
+
* Assign a task to an agent.
|
|
4635
|
+
*
|
|
4636
|
+
* @param taskId - ID of the task to assign
|
|
4637
|
+
* @param agentId - ID of the agent to assign to
|
|
4638
|
+
* @returns The updated task
|
|
4639
|
+
*/
|
|
4640
|
+
async assignTask(taskId, agentId) {
|
|
4641
|
+
return this.#connection.sendRequest(
|
|
4642
|
+
TASK_METHODS.TASKS_ASSIGN,
|
|
4643
|
+
{ taskId, agentId }
|
|
4644
|
+
);
|
|
4645
|
+
}
|
|
4646
|
+
/**
|
|
4647
|
+
* Update a task's status or fields.
|
|
4648
|
+
*
|
|
4649
|
+
* @param params - Update parameters including taskId and fields to change
|
|
4650
|
+
* @returns The updated task
|
|
4651
|
+
*/
|
|
4652
|
+
async updateTask(params) {
|
|
4653
|
+
return this.#connection.sendRequest(
|
|
4654
|
+
TASK_METHODS.TASKS_UPDATE,
|
|
4655
|
+
params
|
|
4656
|
+
);
|
|
4657
|
+
}
|
|
4658
|
+
/**
|
|
4659
|
+
* List tasks with optional filters.
|
|
4660
|
+
*
|
|
4661
|
+
* @param params - Optional filter, limit, and cursor parameters
|
|
4662
|
+
* @returns Paginated list of tasks
|
|
4663
|
+
*/
|
|
4664
|
+
async listTasks(params) {
|
|
4665
|
+
return this.#connection.sendRequest(
|
|
4666
|
+
TASK_METHODS.TASKS_LIST,
|
|
4667
|
+
params ?? {}
|
|
4668
|
+
);
|
|
4669
|
+
}
|
|
4670
|
+
// ===========================================================================
|
|
4619
4671
|
// Internal
|
|
4620
4672
|
// ===========================================================================
|
|
4621
4673
|
/**
|