MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / async_callable

Function async_callable

camel/utils/async_func.py:36–37  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

34 sync_func = func.func
35
36 def async_callable(*args, **kwargs):
37 return asyncio.to_thread(sync_func, *args, **kwargs) # noqa: B023
38
39 async_funcs.append(
40 FunctionTool(async_callable, deepcopy(func.openai_tool_schema))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected