Files
task-69a474cdc46fd26feae69896/tools.py
T
2026-05-27 13:11:57 +00:00

18 lines
376 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
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