Commit 020386a
committed
fix(agents): restore abc.ABC base for BaseAgent and LlmAgent
BaseAgent and LlmAgent re-inherit abc.ABC. v2 GA re-rooted them on
BaseNode (plain BaseModel), so static checkers no longer see an
ABCMeta base and flag @abc.abstractmethod on consumer subclasses as
stray, cascading into bad-return-type. Runtime is unchanged because
pydantic's ModelMetaclass already extends ABCMeta; this only makes
the metaclass visible to type checkers.
Change-Id: I2632a180b0616a244cba97a161c1845101acd9981 parent 81add39 commit 020386a
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
195 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
196 | 199 | | |
197 | 200 | | |
198 | 201 | | |
| |||
0 commit comments