MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / AddNumbersTool

Class AddNumbersTool

tests/test_langgraph_openai.py:14–24  ·  view source on GitHub ↗

两个数相加

Source from the content-addressed store, hash-verified

12 b: int = Field(description="第二个数")
13
14class AddNumbersTool(BaseTool):
15 """两个数相加"""
16 name: str = "add_numbers"
17 description: str = "两个数相加"
18 args_schema: Type[AddNumbersArgs] = AddNumbersArgs
19
20 def _run(self, a: int, b: int) -> int:
21 return a + b
22
23 async def _arun(self, a: int, b: int) -> int:
24 return a + b
25
26
27llm = ChatOpenAI(model="gpt-4o", temperature=0)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected