Skip to content

Commit a80d68c

Browse files
authored
[Fix] autogen action events logging (#635)
* get attr `__name__` * remove redundant import from notebook
1 parent 57916a0 commit a80d68c

File tree

2 files changed

+236
-237
lines changed

2 files changed

+236
-237
lines changed

agentops/partners/autogen_logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def log_function_use(self, source: Union[str, Agent], function: F, args: Dict[st
9292
event.function = function # TODO: this is not a parameter
9393
event.params = args
9494
event.returns = returns
95-
event.name = getattr(function, "_name")
95+
event.name = getattr(function, "__name__")
9696
agentops.record(event)
9797

9898
def log_new_wrapper(

0 commit comments

Comments
 (0)