Update ai agent documentation on tool agent (#272)

* Update ai agent documentation on tool agent

* Fix
This commit is contained in:
Eric Zhu
2024-07-25 11:53:59 -07:00
committed by GitHub
parent 84d4e27776
commit e9c3a384f3
6 changed files with 36 additions and 81 deletions

View File

@@ -55,6 +55,10 @@ class ToolAgent(TypeRoutedAgent):
super().__init__(description)
self._tools = tools
@property
def tools(self) -> List[Tool]:
return self._tools
@message_handler
async def handle_function_call(
self, message: FunctionCall, cancellation_token: CancellationToken