pub struct TaskCreateParams {
pub tool: String,
pub arguments: Value,
pub task_id: Option<String>,
pub metadata: Option<Map<String, Value>>,
}Expand description
Parameters for the MCP 2025-11-25 tasks/create method.
The tasks/create method allows clients to explicitly create a new async task
for a specified tool invocation. The server assigns a task ID and begins
executing the tool in the background.
Fields§
§tool: StringThe tool to invoke for this task.
arguments: ValueArguments to pass to the tool.
task_id: Option<String>Optional client-supplied task ID. If omitted, the server generates one.
metadata: Option<Map<String, Value>>Optional metadata for the task (e.g., labels, priority hints).
Implementations§
Trait Implementations§
Source§impl Clone for TaskCreateParams
impl Clone for TaskCreateParams
Source§impl Debug for TaskCreateParams
impl Debug for TaskCreateParams
Source§impl<'de> Deserialize<'de> for TaskCreateParams
impl<'de> Deserialize<'de> for TaskCreateParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TaskCreateParams
impl PartialEq for TaskCreateParams
Source§impl Serialize for TaskCreateParams
impl Serialize for TaskCreateParams
impl StructuralPartialEq for TaskCreateParams
Auto Trait Implementations§
impl Forget for TaskCreateParams
impl Freeze for TaskCreateParams
impl Move for TaskCreateParams
impl RefUnwindSafe for TaskCreateParams
impl Send for TaskCreateParams
impl Sync for TaskCreateParams
impl Unpin for TaskCreateParams
impl UnsafeUnpin for TaskCreateParams
impl UnwindSafe for TaskCreateParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more