mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
db58a10a37
* added args and results to function call span * add ignores for mypy * improved serialization * also add None result * improved handling * log args when None * slight tweak * fix tests
13 lines
298 B
Python
13 lines
298 B
Python
# Copyright (c) Microsoft. All rights reserved.
|
|
|
|
|
|
from copy import deepcopy
|
|
from unittest.mock import MagicMock
|
|
|
|
|
|
class CopyingMock(MagicMock):
|
|
def __call__(self, *args, **kwargs):
|
|
args = deepcopy(args)
|
|
kwargs = deepcopy(kwargs)
|
|
return super().__call__(*args, **kwargs)
|