It seems the addition of tools: list[Any] | None = None to the signature of the complete method under MockProvider is not mentioned in the Day 2 docs, which results in unexpected keyword argument 'tools' error:
class MockProvider:
def complete(self, messages: list[dict[str, str]]) -> ModelResponse:
class MockProvider:
def complete(
self,
messages: list[dict[str, Any]],
tools: list[Any] | None = None,
) -> ModelResponse:
It seems the addition of
tools: list[Any] | None = Noneto the signature of thecompletemethod underMockProvideris not mentioned in the Day 2 docs, which results inunexpected keyword argument 'tools'error: