VivekMannava's picture
Initial update
c3b34bf
raw
history blame contribute delete
465 Bytes
from llama_index.core.tools import FunctionTool
def get_thought(thought: str) -> str:
"""
Get the thought of the agent.
"""
return f"Thought: {thought}"
def get_answer(answer: str) -> str:
"""
Get the answer of the agent.
"""
return f"Answer: {answer}"
def get_base_tools():
"""
Get the base tools.
"""
return [
FunctionTool.from_defaults(get_thought),
FunctionTool.from_defaults(get_answer),
]