diff --git a/tools.py b/tools.py new file mode 100644 index 0000000..f5f2e61 --- /dev/null +++ b/tools.py @@ -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