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
def new(uri: impl Into<String>, name: impl Into<String>) -> SelfParameters
ParamField
impl Into<String>No description available.
ParamField
impl Into<String>No description available.
Returns
ResponseField
SelfThe result of the operation.