mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-31 08:13:11 +03:00
refactor(providers): define typed usage contract
This commit is contained in:
@@ -33,7 +33,7 @@ def _make_mock_agent(response_text: str = "mock response") -> MagicMock:
|
||||
agent = MagicMock()
|
||||
agent.process_direct = AsyncMock(return_value=response_text)
|
||||
agent.aclose = AsyncMock()
|
||||
agent._last_usage = {}
|
||||
agent._last_usage = None
|
||||
return agent
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user