Skip to content

Commit

Permalink
Don't use partial binding
Browse files Browse the repository at this point in the history
  • Loading branch information
dkolas committed Jun 1, 2023
1 parent fd09959 commit ae54d86
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/steamship/experimental/package_starters/web_agent.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from abc import ABC
from functools import partial
from typing import List, Optional

from steamship import Block
Expand Down Expand Up @@ -41,7 +40,7 @@ def answer(self, **payload) -> List[Block]:
)
context.chat_history.append_user_message(text=incoming_message.text)
if len(context.emit_funcs) == 0:
context.emit_funcs.append(partial(self.save_for_emit, self=self))
context.emit_funcs.append(self.save_for_emit)
try:
self.run_agent(self.incoming_message_agent, context)
except Exception as e:
Expand Down

0 comments on commit ae54d86

Please sign in to comment.