Skip to content

Commit b43ee6f

Browse files
committed
fix: update rag cookbook and tool getting
1 parent d58fd51 commit b43ee6f

File tree

2 files changed

+837
-840
lines changed

2 files changed

+837
-840
lines changed

camel/agents/chat_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def __init__(
188188
# the tools set from `ChatAgent` will be used.
189189
# This design simplifies the interface while retaining tool-running
190190
# capabilities for `BaseModelBackend`.
191-
if all_tools and not self.model_backend.model_config_dict['tools']:
191+
if all_tools and not self.model_backend.model_config_dict.get("tools"):
192192
tool_schema_list = [
193193
tool.get_openai_tool_schema() for tool in all_tools
194194
]

0 commit comments

Comments
 (0)