Skip to content

Commit 2131889

Browse files
committed
fix missing change
1 parent d2543f2 commit 2131889

File tree

1 file changed

+3
-5
lines changed
  • templates/types/multiagent/fastapi/app/agents

1 file changed

+3
-5
lines changed

templates/types/multiagent/fastapi/app/agents/single.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
from llama_index.core.llms.function_calling import FunctionCallingLLM
66
from llama_index.core.memory import ChatMemoryBuffer
77
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
99
from llama_index.core.tools.types import BaseTool
10-
from llama_index.core.tools import FunctionTool
11-
1210
from llama_index.core.workflow import (
1311
Context,
1412
Event,
@@ -64,13 +62,13 @@ def __init__(
6462
timeout: float = 360.0,
6563
name: str,
6664
write_events: bool = True,
67-
role: Optional[str] = None,
65+
description: Optional[str] = None,
6866
**kwargs: Any,
6967
) -> None:
7068
super().__init__(*args, verbose=verbose, timeout=timeout, **kwargs)
7169
self.tools = tools or []
7270
self.name = name
73-
self.role = role
71+
self.description = description
7472
self.write_events = write_events
7573

7674
if llm is None:

0 commit comments

Comments
 (0)