File size: 465 Bytes
c3b34bf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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),
    ]