🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
Auto-update documentation after merge [skip ci]
camel-docs-botaf2c3e4c7146
diff --git a/docs/mintlify/docs.json b/docs/mintlify/docs.jsonindex c21c5aba3..bf5641b46 100644--- a/docs/mintlify/docs.json+++ b/docs/mintlify/docs.json@@ -704,6 +704,12 @@"reference/camel.loaders.unstructured_io"]},+ {+ "group": "Parsers",+ "pages": [+ "reference/camel.parsers.mcp_tool_call_parser"+ ]+ },{"group": "Runtimes","pages": [diff --git a/docs/mintlify/reference/camel.parsers.mcp_tool_call_parser.mdx b/docs/mintlify/reference/camel.parsers.mcp_tool_call_parser.mdxnew file mode 100644index 000000000..42d724dba--- /dev/null+++ b/docs/mintlify/reference/camel.parsers.mcp_tool_call_parser.mdx@@ -0,0 +1,53 @@+<a id="camel.parsers.mcp_tool_call_parser"></a>++Utility functions for parsing MCP tool calls from model output.++<a id="camel.parsers.mcp_tool_call_parser.extract_tool_calls_from_text"></a>++## extract_tool_calls_from_text++```python+def extract_tool_calls_from_text(content: str):+```++Extract tool call dictionaries from raw text output.++<a id="camel.parsers.mcp_tool_call_parser._collect_tool_calls"></a>++## _collect_tool_calls++```python+def _collect_tool_calls(payload: Any, accumulator: List[Dict[str, Any]]):+```++Collect valid tool call dictionaries from parsed payloads.++<a id="camel.parsers.mcp_tool_call_parser._try_parse_json_like"></a>++## _try_parse_json_like++```python+def _try_parse_json_like(snippet: str):+```++Parse a JSON or JSON-like snippet into Python data.++<a id="camel.parsers.mcp_tool_call_parser._find_json_candidate"></a>++## _find_json_candidate++```python+def _find_json_candidate(content: str, start_idx: int):+```++Locate a balanced JSON-like segment starting at `__INLINE_CODE_0__`.++<a id="camel.parsers.mcp_tool_call_parser._truncate_snippet"></a>++## _truncate_snippet++```python+def _truncate_snippet(snippet: str, limit: int = 120):+```++Return a truncated representation suitable for logging.