🐫 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
camel-docs-botb0f26171ae69
diff --git a/docs/mintlify/reference/camel.loaders.firecrawl_reader.mdx b/docs/mintlify/reference/camel.loaders.firecrawl_reader.mdxindex f7595bfa7..f3ab33002 100644--- a/docs/mintlify/reference/camel.loaders.firecrawl_reader.mdx+++ b/docs/mintlify/reference/camel.loaders.firecrawl_reader.mdx@@ -79,7 +79,7 @@ Check the status of a crawl job.### scrape```python-def scrape(self, url: str, params: Optional[Dict[str, Any]] = None):+def scrape(self, url: str, params: Optional[Dict[str, str]] = None):```To scrape a single URL. This function supports advanced scraping@@ -91,11 +91,11 @@ Reference: https://docs.firecrawl.dev/advanced-scraping-guide**Parameters:**- **url** (str): The URL to read.-- **params** (Optional[Dict[str, Any]]): Additional parameters for the scrape request.+- **params** (Optional[Dict[str, str]]): Additional parameters for the scrape request.**Returns:**- Dict: The scraped data.+ Dict[str, str]: The scraped data.<a id="camel.loaders.firecrawl_reader.Firecrawl.structured_scrape"></a>diff --git a/docs/mintlify/reference/camel.models.anthropic_model.mdx b/docs/mintlify/reference/camel.models.anthropic_model.mdxindex b2d3565c1..730d54077 100644--- a/docs/mintlify/reference/camel.models.anthropic_model.mdx+++ b/docs/mintlify/reference/camel.models.anthropic_model.mdx@@ -1,5 +1,26 @@<a id="camel.models.anthropic_model"></a>+<a id="camel.models.anthropic_model.strip_trailing_whitespace_from_messages"></a>++## strip_trailing_whitespace_from_messages++```python+def strip_trailing_whitespace_from_messages(messages: List[OpenAIMessage]):+```++Strip trailing whitespace from all message contents in a list of+messages. This is necessary because the Anthropic API doesn't allow+trailing whitespace in message content.++**Parameters:**++- **messages** (List[OpenAIMessage]): List of messages to process++**Returns:**++ List[OpenAIMessage]: The processed messages with trailing whitespace+removed+<a id="camel.models.anthropic_model.AnthropicModel"></a>## AnthropicModel@@ -58,3 +79,29 @@ tokenization style.```pythondef check_model_config(self):```++<a id="camel.models.anthropic_model.AnthropicModel._request_chat_completion"></a>++### _request_chat_completion++```python+def _request_chat_completion(+ self,+ messages: List[OpenAIMessage],+ tools: Optional[List[Dict[str, Any]]] = None+):+```++<a id="camel.models.anthropic_model.AnthropicModel._patch_anthropic_token_counter"></a>++### _patch_anthropic_token_counter++```python+def _patch_anthropic_token_counter(self):+```++Monkey patch the AnthropicTokenCounter class to handle trailing+whitespace.++This patches the count_tokens_from_messages method to strip trailing+whitespace from message content before sending to the Anthropic API.