We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ca2e1e commit b55bf7aCopy full SHA for b55bf7a
packages/toolbox-core/src/toolbox_core/tool.py
@@ -19,6 +19,7 @@
19
from warnings import warn
20
21
from aiohttp import ClientSession
22
+from pydantic import BaseModel
23
24
from .protocol import ParameterSchema
25
from .utils import (
@@ -119,6 +120,10 @@ def __init__(
119
120
# map of client headers to their value/callable/coroutine
121
self.__client_headers = client_headers
122
123
+ @property
124
+ def _pydantic_model(self) -> type[BaseModel]:
125
+ return self.__pydantic_model
126
+
127
def __copy(
128
self,
129
session: Optional[ClientSession] = None,
0 commit comments