new • Rust AI Agent SDK

new: Create a new resource

new

Method

</div>

This is a method of the MCPResource class in the mcp module.

Create a new resource

Signature

python
def new(uri: impl Into<String>, name: impl Into<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.