feat: 查询直属下级员工工具
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
from app.tools.tool_add import tool_add
|
||||
from app.tools.tool_book_hotel import tool_book_hotel
|
||||
from app.tools.tool_get_datetime import tool_get_datetime
|
||||
from app.tools.tool_multiple import tool_multiply
|
||||
from app.tools.tool_query_direct_subordinates import tool_query_direct_subordinates
|
||||
|
||||
tool_list = [
|
||||
tool_book_hotel,
|
||||
tool_get_datetime,
|
||||
tool_add,
|
||||
tool_multiply,
|
||||
tool_query_direct_subordinates,
|
||||
]
|
||||
@@ -0,0 +1,15 @@
|
||||
from langchain_core.tools import tool
|
||||
|
||||
|
||||
@tool(
|
||||
name_or_callable="tool_query_direct_subordinates",
|
||||
description="查询直接下级员工信息"
|
||||
)
|
||||
def tool_query_direct_subordinates() -> float:
|
||||
return [
|
||||
"已经查询完毕",
|
||||
{
|
||||
"component": "DirectSubordinates",
|
||||
"props": {},
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user