mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
Update pre-commit hook versions to most recent versions (#8343)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -149,9 +149,9 @@ class Message(BaseModel):
|
||||
|
||||
# an observation message with tool response
|
||||
if self.tool_call_id is not None:
|
||||
assert (
|
||||
self.name is not None
|
||||
), 'name is required when tool_call_id is not None'
|
||||
assert self.name is not None, (
|
||||
'name is required when tool_call_id is not None'
|
||||
)
|
||||
message_dict['tool_call_id'] = self.tool_call_id
|
||||
message_dict['name'] = self.name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user