From f74e242442b491120690ae385083aa670307d225 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 1 Jun 2025 09:16:37 -0700 Subject: [PATCH] Clarifying comment --- llm/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llm/models.py b/llm/models.py index a45cb2b..a80b4db 100644 --- a/llm/models.py +++ b/llm/models.py @@ -183,6 +183,8 @@ class Toolbox: original_init = cls.__init__ def wrapped_init(self, *args, **kwargs): + # Track args/kwargs passed to constructor in self._config + # so we can serialize them to a database entry later on sig = inspect.signature(original_init) bound = sig.bind(self, *args, **kwargs) bound.apply_defaults()