Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

Auto-update documentation after merge [skip ci]

camel-docs-bot7dfa2a75a7b1
diff --git a/docs/mintlify/reference/camel.models.function_gemma_model.mdx b/docs/mintlify/reference/camel.models.function_gemma_model.mdx
index c40beeb7d..f931249cf 100644
--- a/docs/mintlify/reference/camel.models.function_gemma_model.mdx
+++ b/docs/mintlify/reference/camel.models.function_gemma_model.mdx
@@ -317,6 +317,26 @@ Parse a value string to appropriate Python type.
Any: Parsed value (int, float, bool, or str).
+<a id="camel.models.function_gemma_model.FunctionGemmaModel._map_done_reason"></a>
+
+### _map_done_reason
+
+```python
+def _map_done_reason(done_reason: Optional[str]):
+```
+
+Map Ollama's done_reason to the OpenAI finish_reason vocabulary.
+
+**Parameters:**
+
+- **done_reason** (Optional[str]): The `__INLINE_CODE_0____INLINE_CODE_1____INLINE_CODE_2__` response.
+
+**Returns:**
+
+ str: `__INLINE_CODE_0____INLINE_CODE_1____INLINE_CODE_2__`
+otherwise (including when `__INLINE_CODE_3__` is absent, which
+preserves the prior default).
+
<a id="camel.models.function_gemma_model.FunctionGemmaModel._to_chat_completion"></a>
### _to_chat_completion
@@ -326,7 +346,8 @@ def _to_chat_completion(
self,
response_text: str,
model: str,
- tools: Optional[List[Dict[str, Any]]] = None
+ tools: Optional[List[Dict[str, Any]]] = None,
+ ollama_result: Optional[Dict[str, Any]] = None
):
```
@@ -337,6 +358,7 @@ Convert parsed response to OpenAI ChatCompletion format.
- **response_text** (str): The model response text.
- **model** (str): The model name.
- **tools** (Optional[List[Dict[str, Any]]]): Available tools for function name inference.
+- **ollama_result** (Optional[Dict[str, Any]]): The raw JSON body of Ollama's `__INLINE_CODE_0____INLINE_CODE_1____INLINE_CODE_2____INLINE_CODE_3____INLINE_CODE_4____INLINE_CODE_5____INLINE_CODE_6____INLINE_CODE_7__None`)
**Returns:**
@@ -358,7 +380,9 @@ Call Ollama's /api/generate endpoint with raw prompt.
**Returns:**
- str: The model response text.
+ Dict[str, Any]: The parsed JSON body of Ollama's response,
+including `__INLINE_CODE_0____INLINE_CODE_1____INLINE_CODE_2__`,
+`__INLINE_CODE_3____INLINE_CODE_4____INLINE_CODE_5__`.
<a id="camel.models.function_gemma_model.FunctionGemmaModel._run"></a>