add tools.py

This commit is contained in:
2026-05-27 13:11:57 +00:00
parent e5a07daa1c
commit 4b6127ac40
+17
View File
@@ -0,0 +1,17 @@
"""
Utility tools used by the deep agent.
The functions are decorated with `@tool` from langchain and can be called by the agent.
"""
from langchain.tools import tool
@tool
def echo(text: str) -> str:
"""Return the same text useful for demonstration."""
return f"Echo: {text}"
@tool
def add(a: int, b: int) -> int:
"""Add two integers."""
return a + b