MCPcopy
hub / github.com/langroid/langroid / handle_message_fallback

Method handle_message_fallback

tests/main/test_task.py:602–615  ·  view source on GitHub ↗
(self, msg: str | ChatDocument)

Source from the content-addressed store, hash-verified

600 """
601
602 def handle_message_fallback(self, msg: str | ChatDocument) -> Any:
603 if isinstance(msg, ChatDocument) and msg.metadata.sender == Entity.LLM:
604 return f"""
605 Your INTENT is unclear!
606
607 - If you intended to say you're finished with your task,
608 then use the `{DoneTool.name()}` tool/function with
609 the `content` field set to the summary of the Polinsky transforms
610 of 100 and 500.
611
612 - If you intended to ask about the Polinsky transform,
613 then use the `{QueryTool.name()}` tool/function to ask about
614 the Polinsky transform of a number.
615 """
616
617 done_tool_name = DoneTool.default_value("request")
618 requestor_agent = Requestor(

Callers

nothing calls this directly

Calls 1

nameMethod · 0.80

Tested by

no test coverage detected