MCPcopy
hub / github.com/langroid/langroid / run

Method run

langroid/agent/task.py:763–773  ·  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

761
762 @overload
763 def run( # noqa
764 self,
765 msg: Any = None,
766 *,
767 turns: int = -1,
768 caller: None | Task = None,
769 max_cost: float = 0,
770 max_tokens: int = 0,
771 session_id: str = "",
772 allow_restart: bool = True,
773 ) -> Optional[ChatDocument]: ... # noqa
774
775 @overload
776 def run( # noqa

Calls 15

reset_all_sub_tasksMethod · 0.95
_set_aliveMethod · 0.95
_init_message_counterMethod · 0.95
_pre_run_loopMethod · 0.95
stepMethod · 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_table_chat_agentFunction · 0.76
test_addressingFunction · 0.76
test_user_addressingFunction · 0.76
test_no_addressingFunction · 0.76
test_retrieval_toolFunction · 0.76
test_doc_chat_followupFunction · 0.76