MCPcopy Create free account
hub / github.com/21st-dev/21st-sdk / create

Method create

packages/python-sdk/src/twentyfirst_sdk/client.py:271–280  ·  view source on GitHub ↗
(self, sandbox_id: str, *, name: Optional[str] = None)

Source from the content-addressed store, hash-verified

269 return self.client._fetch("/v1/sandboxes/%s/threads" % sandbox_id)
270
271 def create(self, sandbox_id: str, *, name: Optional[str] = None) -> Any:
272 body: Dict[str, Any] = {}
273 if name is not None:
274 body["name"] = name
275
276 return self.client._fetch(
277 "/v1/sandboxes/%s/threads" % sandbox_id,
278 method="POST",
279 body=body,
280 )
281
282 def get(self, sandbox_id: str, thread_id: str) -> Any:
283 return self.client._fetch(

Callers 1

runMethod · 0.95

Calls 1

_fetchMethod · 0.45

Tested by

no test coverage detected