🐫 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-botf5cd46014823
diff --git a/docs/mintlify/reference/camel.models.volcano_model.mdx b/docs/mintlify/reference/camel.models.volcano_model.mdxindex 4ed297f92..7ba1112c5 100644--- a/docs/mintlify/reference/camel.models.volcano_model.mdx+++ b/docs/mintlify/reference/camel.models.volcano_model.mdx@@ -37,3 +37,74 @@ def __init__(**kwargs: Any):```++<a id="camel.models.volcano_model.VolcanoModel._inject_reasoning_content"></a>++### _inject_reasoning_content++```python+def _inject_reasoning_content(self, messages: List[OpenAIMessage]):+```++Inject the last reasoning_content into assistant messages.++For Volcano Engine's doubao-seed models with deep thinking enabled,+the reasoning_content from the model response needs to be passed back+in subsequent requests for proper context management.++**Parameters:**++- **messages**: The original messages list.++**Returns:**++ Messages with reasoning_content added to the last assistant+message that has tool_calls.++<a id="camel.models.volcano_model.VolcanoModel._extract_reasoning_content"></a>++### _extract_reasoning_content++```python+def _extract_reasoning_content(self, response: ChatCompletion):+```++Extract reasoning_content from the model response.++**Parameters:**++- **response**: The model response.++**Returns:**++ The reasoning_content if available, None otherwise.++<a id="camel.models.volcano_model.VolcanoModel.run"></a>++### run++```python+def run(+ self,+ messages: List[OpenAIMessage],+ response_format: Optional[Type[BaseModel]] = None,+ tools: Optional[List[Dict[str, Any]]] = None+):+```++Runs inference of Volcano Engine chat completion.++Overrides the base run method to inject reasoning_content from+previous responses into subsequent requests, as required by+Volcano Engine's doubao-seed models with deep thinking enabled.++**Parameters:**++- **messages**: Message list with the chat history in OpenAI API format.+- **response_format**: The format of the response.+- **tools**: The schema of the tools to use for the request.++**Returns:**++ ChatCompletion in the non-stream mode, or+Stream[ChatCompletionChunk] in the stream mode.