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

minor format fix

Wendong0ea955b2b839
diff --git a/camel/models/azure_openai_model.py b/camel/models/azure_openai_model.py
index a960750a5..e5b9335a8 100644
--- a/camel/models/azure_openai_model.py
+++ b/camel/models/azure_openai_model.py
@@ -263,7 +263,8 @@ class AzureOpenAIModel(BaseModelBackend):
@property
def stream(self) -> bool:
r"""Returns whether the model is in stream mode,
- which sends partial results each time.
+ which sends partial results each time.
+
Returns:
bool: Whether the model is in stream mode.
"""
diff --git a/camel/models/sglang_model.py b/camel/models/sglang_model.py
index 314bf9524..597f196ee 100644
--- a/camel/models/sglang_model.py
+++ b/camel/models/sglang_model.py
@@ -350,8 +350,9 @@ def _wait_for_server(base_url: str, timeout: Optional[int] = 30) -> None:
r"""Wait for the server to be ready by polling the /v1/models endpoint.
Args:
- base_url: The base URL of the server
- timeout: Maximum time to wait in seconds. Default is 30 seconds.
+ base_url (str): The base URL of the server
+ timeout (Optional[int]): Maximum time to wait in seconds.
+ (default: :obj:`30`)
"""
import requests
diff --git a/camel/storages/graph_storages/neo4j_graph.py b/camel/storages/graph_storages/neo4j_graph.py
index 92fabc41a..e0927edd5 100644
--- a/camel/storages/graph_storages/neo4j_graph.py
+++ b/camel/storages/graph_storages/neo4j_graph.py
@@ -343,14 +343,14 @@ class Neo4jGraph(BaseGraphStorage):
self, subj: str, obj: str, rel: str, timestamp: Optional[str] = None
) -> None:
r"""Adds a relationship (triplet) between two entities
- in the database with a timestamp.
+ in the database with a timestamp.
Args:
subj (str): The identifier for the subject entity.
obj (str): The identifier for the object entity.
rel (str): The relationship between the subject and object.
timestamp (Optional[str]): The timestamp of the relationship.
- Defaults to None.
+ Defaults to None.
"""
query = """
MERGE (n1:`%s` {id:$subj})
@@ -737,21 +737,23 @@ class Neo4jGraph(BaseGraphStorage):
obj: Optional[str] = None,
rel: Optional[str] = None,
) -> List[Dict[str, Any]]:
- r"""
- Query triplet information. If subj, obj, or rel is
+ r"""Query triplet information. If subj, obj, or rel is
not specified, returns all matching triplets.
Args:
subj (Optional[str]): The ID of the subject node.
- If None, matches any subject node.
+ If None, matches any subject node.
+ (default: :obj:`None`)
obj (Optional[str]): The ID of the object node.
- If None, matches any object node.
+ If None, matches any object node.
+ (default: :obj:`None`)
rel (Optional[str]): The type of relationship.
- If None, matches any relationship type.
+ If None, matches any relationship type.
+ (default: :obj:`None`)
Returns:
List[Dict[str, Any]]: A list of matching triplets,
- each containing subj, obj, rel, and timestamp.
+ each containing subj, obj, rel, and timestamp.
"""
import logging
diff --git a/examples/models/sglang_model_example.py b/examples/models/sglang_model_example.py
index 5e2b59821..9cadd03f1 100644
--- a/examples/models/sglang_model_example.py
+++ b/examples/models/sglang_model_example.py
@@ -87,8 +87,7 @@ weather_tool = [
]
-r"""
-Note that api_key defines the parser used to interpret responses.
+r"""Note that api_key defines the parser used to interpret responses.
Currently supported parsers include:
llama3: Llama 3.1 / 3.2 (e.g. meta-llama/Llama-3.1-8B-Instruct,
meta-llama/Llama-3.2-1B-Instruct).