From 3230d2fbc9a6c034b6f7b12378246dc01e44880a Mon Sep 17 00:00:00 2001 From: jjyaoao Date: Wed, 26 Mar 2025 22:33:04 +0800 Subject: [PATCH] update r in docs and add output example --- examples/run_mcp_sse.py | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/examples/run_mcp_sse.py b/examples/run_mcp_sse.py index 44db62e..dc724cc 100644 --- a/examples/run_mcp_sse.py +++ b/examples/run_mcp_sse.py @@ -39,7 +39,7 @@ async def construct_society( question: str, tools: List[FunctionTool], ) -> OwlRolePlaying: - """Build a multi-agent OwlRolePlaying instance for GitHub information retrieval. + r"""Build a multi-agent OwlRolePlaying instance for GitHub information retrieval. Args: question (str): The GitHub-related question to ask. @@ -119,3 +119,26 @@ async def main(): if __name__ == "__main__": asyncio.run(main()) + +# Example Output: +""" +Successfully connected to SSE server +Result: Here are the most recent pull requests in the camel-ai/camel repository: + +1. fix create_your_first_agents_society.ipynb: 2 typos + - PR #2011 opened by didier-durand + +2. fix: edit default function call message + - PR #2010 opened by MuggleJinx + +3. refactor: unify the stdio&sse configuration of mcp server + - PR #2009 opened by koch3092 + +4. Refactor document processing toolkit and excel toolkit + - PR #2001 opened by JINO-ROHIT + +5. feat: Add unitests for BrowserToolkit + - PR #2000 opened by JoyceXu02 + +... (more pull requests) +"""