WIP Stash
This commit is contained in:
1 parent
9585008433
commit
d934dc0ef7
9 files changed
+175
-78
No files matched your search
+3
-1
@@ -1,4 +1,5 @@
|
||||
import inspect
|
||||
import asyncio
|
||||
from typing import get_type_hints
|
||||
|
||||
class ToolParameter:
|
||||
@@ -225,7 +226,8 @@ class ToolCall:
|
||||
self.result = None
|
||||
|
||||
def __repr__(self):
|
||||
return f"ToolCall(tool={self.tool_name!r}, args={self.arguments!r})"
|
||||
id_prefix = self.id + ', ' if self.id else ''
|
||||
return f"ToolCall({id_prefix}tool={self.tool_name!r}, args={self.arguments!r})"
|
||||
|
||||
def call_message(self):
|
||||
raise Exception("TODO: Llama message for tool call")
|
||||
|
||||
Reference in new issue
Block a user