MCPcopy Index your code
hub / github.com/langroid/langroid / run_async

Method run_async

langroid/agent/task.py:931–941  ·  view source on GitHub ↗
(  # noqa
        self,
        msg: Any = None,
        *,
        turns: int = -1,
        caller: None | Task = None,
        max_cost: float = 0,
        max_tokens: int = 0,
        session_id: str = "",
        allow_restart: bool = True,
    )

Source from the content-addressed store, hash-verified

929
930 @overload
931 async def run_async( # noqa
932 self,
933 msg: Any = None,
934 *,
935 turns: int = -1,
936 caller: None | Task = None,
937 max_cost: float = 0,
938 max_tokens: int = 0,
939 session_id: str = "",
940 allow_restart: bool = True,
941 ) -> Optional[ChatDocument]: ... # noqa
942
943 @overload
944 async def run_async( # noqa

Callers 15

test_agent_mcp_toolsFunction · 0.95
test_fastmcp_decoratorFunction · 0.95
test_multiple_toolsFunction · 0.95
test_npxstdio_transportFunction · 0.95
test_uvxstdio_transportFunction · 0.95
_run_taskFunction · 0.95

Calls 15

reset_all_sub_tasksMethod · 0.95
_set_aliveMethod · 0.95
_init_message_counterMethod · 0.95
_pre_run_loopMethod · 0.95
step_asyncMethod · 0.95
doneMethod · 0.95
_maybe_infinite_loopMethod · 0.95
resultMethod · 0.95
_post_run_loopMethod · 0.95
to_ChatDocumentMethod · 0.80
idMethod · 0.80

Tested by 15

test_agent_mcp_toolsFunction · 0.76
test_fastmcp_decoratorFunction · 0.76
test_multiple_toolsFunction · 0.76
test_npxstdio_transportFunction · 0.76
test_uvxstdio_transportFunction · 0.76
_run_taskFunction · 0.76