fix: bugfixes

This commit is contained in:
Soulter
2025-08-22 17:40:53 +08:00
parent aa6f73574d
commit 563972fd29
2 changed files with 5 additions and 2 deletions
+5
View File
@@ -108,6 +108,11 @@ class ToolSet:
"""Get all function tools."""
return self.get_tool(name)
@property
def func_list(self) -> list[FunctionTool]:
"""Get the list of function tools."""
return self.tools
def openai_schema(self, omit_empty_parameter_field: bool = False) -> list[dict]:
"""Convert tools to OpenAI API function calling schema format."""
result = []
@@ -1,5 +1,3 @@
# TODO: 将此文件组件挪到 astrbot/core/agent 中
from __future__ import annotations
import json
import os