主干Ai实验室后端项目
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from langchain_core.tools import tool
|
||||
|
||||
|
||||
@tool
|
||||
def add(a: int, b: int) -> int:
|
||||
"""Adds a and b."""
|
||||
return a + b
|
||||
|
||||
|
||||
@tool
|
||||
def multiply(a: int, b: int) -> int:
|
||||
"""Multiplies a and b."""
|
||||
return a * b
|
||||
|
||||
all_tools = [add, multiply]
|
||||
Reference in New Issue
Block a user