File tree 1 file changed +3
-5
lines changed
templates/types/multiagent/fastapi/app/agents
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 5
5
from llama_index .core .llms .function_calling import FunctionCallingLLM
6
6
from llama_index .core .memory import ChatMemoryBuffer
7
7
from llama_index .core .settings import Settings
8
- from llama_index .core .tools import ToolOutput , ToolSelection
8
+ from llama_index .core .tools import FunctionTool , ToolOutput , ToolSelection
9
9
from llama_index .core .tools .types import BaseTool
10
- from llama_index .core .tools import FunctionTool
11
-
12
10
from llama_index .core .workflow import (
13
11
Context ,
14
12
Event ,
@@ -64,13 +62,13 @@ def __init__(
64
62
timeout : float = 360.0 ,
65
63
name : str ,
66
64
write_events : bool = True ,
67
- role : Optional [str ] = None ,
65
+ description : Optional [str ] = None ,
68
66
** kwargs : Any ,
69
67
) -> None :
70
68
super ().__init__ (* args , verbose = verbose , timeout = timeout , ** kwargs )
71
69
self .tools = tools or []
72
70
self .name = name
73
- self .role = role
71
+ self .description = description
74
72
self .write_events = write_events
75
73
76
74
if llm is None :
You can’t perform that action at this time.
0 commit comments