groundx 2.5.8__py3-none-any.whl → 2.5.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of groundx might be problematic. Click here for more details.
- groundx/core/client_wrapper.py +2 -2
- groundx/extract/agents/agent.py +5 -5
- groundx/extract/classes/agent.py +2 -1
- {groundx-2.5.8.dist-info → groundx-2.5.10.dist-info}/METADATA +1 -1
- {groundx-2.5.8.dist-info → groundx-2.5.10.dist-info}/RECORD +7 -7
- {groundx-2.5.8.dist-info → groundx-2.5.10.dist-info}/LICENSE +0 -0
- {groundx-2.5.8.dist-info → groundx-2.5.10.dist-info}/WHEEL +0 -0
groundx/core/client_wrapper.py
CHANGED
|
@@ -14,10 +14,10 @@ class BaseClientWrapper:
|
|
|
14
14
|
|
|
15
15
|
def get_headers(self) -> typing.Dict[str, str]:
|
|
16
16
|
headers: typing.Dict[str, str] = {
|
|
17
|
-
"User-Agent": "groundx/2.5.
|
|
17
|
+
"User-Agent": "groundx/2.5.10",
|
|
18
18
|
"X-Fern-Language": "Python",
|
|
19
19
|
"X-Fern-SDK-Name": "groundx",
|
|
20
|
-
"X-Fern-SDK-Version": "2.5.
|
|
20
|
+
"X-Fern-SDK-Version": "2.5.10",
|
|
21
21
|
}
|
|
22
22
|
headers["X-API-Key"] = self.api_key
|
|
23
23
|
return headers
|
groundx/extract/agents/agent.py
CHANGED
|
@@ -84,7 +84,7 @@ class AgentCode(CodeAgent):
|
|
|
84
84
|
def __init__(
|
|
85
85
|
self,
|
|
86
86
|
settings: AgentSettings,
|
|
87
|
-
|
|
87
|
+
log: Logger,
|
|
88
88
|
name: typing.Optional[str] = None,
|
|
89
89
|
description: typing.Optional[str] = None,
|
|
90
90
|
tools: typing.Optional[typing.List[Tool]] = None,
|
|
@@ -114,7 +114,7 @@ class AgentCode(CodeAgent):
|
|
|
114
114
|
|
|
115
115
|
self.python_executor.static_tools.update({"open": open}) # type: ignore
|
|
116
116
|
|
|
117
|
-
self.
|
|
117
|
+
self.log = log
|
|
118
118
|
|
|
119
119
|
def process(
|
|
120
120
|
self,
|
|
@@ -137,7 +137,7 @@ class AgentCode(CodeAgent):
|
|
|
137
137
|
f"agent process result is not of expected type(s) {expected_types!r}: [{e}]\n\n{res}"
|
|
138
138
|
)
|
|
139
139
|
|
|
140
|
-
self.
|
|
140
|
+
self.log.debug_msg(
|
|
141
141
|
f"agent process result is not of expected type(s) {expected_types!r}: [{e}], attempting again [{attempt+1}]\n\n{res}"
|
|
142
142
|
)
|
|
143
143
|
|
|
@@ -148,7 +148,7 @@ class AgentTool(ToolCallingAgent):
|
|
|
148
148
|
def __init__(
|
|
149
149
|
self,
|
|
150
150
|
settings: AgentSettings,
|
|
151
|
-
|
|
151
|
+
log: Logger,
|
|
152
152
|
name: typing.Optional[str] = None,
|
|
153
153
|
description: typing.Optional[str] = None,
|
|
154
154
|
tools: typing.Optional[typing.List[Tool]] = None,
|
|
@@ -172,7 +172,7 @@ class AgentTool(ToolCallingAgent):
|
|
|
172
172
|
verbosity_level=verbosity,
|
|
173
173
|
)
|
|
174
174
|
|
|
175
|
-
self.
|
|
175
|
+
self.log = log
|
|
176
176
|
|
|
177
177
|
def process(
|
|
178
178
|
self,
|
groundx/extract/classes/agent.py
CHANGED
|
@@ -8,12 +8,13 @@ DocT = typing.TypeVar("DocT", bound=Document)
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class AgentRequest(BaseModel, typing.Generic[ReqT, DocT]):
|
|
11
|
-
allowed_request_types: typing.List[str] = []
|
|
11
|
+
allowed_request_types: typing.ClassVar[typing.List[str]] = []
|
|
12
12
|
request: ReqT
|
|
13
13
|
request_type: str
|
|
14
14
|
statement: DocT
|
|
15
15
|
|
|
16
16
|
@field_validator("request_type")
|
|
17
|
+
@classmethod
|
|
17
18
|
def validate_request_type(cls, value: str):
|
|
18
19
|
if value not in cls.allowed_request_types:
|
|
19
20
|
raise ValueError(
|
|
@@ -5,7 +5,7 @@ groundx/buckets/raw_client.py,sha256=T2Ty5obN7eHbaxHGAimzjM8MGOmSOQEckhciyZkzcjE
|
|
|
5
5
|
groundx/client.py,sha256=FsVhPSZ1kd70pOVv37zTbNSwBM7XdttSx4aEPobPoew,6412
|
|
6
6
|
groundx/core/__init__.py,sha256=lTcqUPXcx4112yLDd70RAPeqq6tu3eFMe1pKOqkW9JQ,1562
|
|
7
7
|
groundx/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
|
|
8
|
-
groundx/core/client_wrapper.py,sha256=
|
|
8
|
+
groundx/core/client_wrapper.py,sha256=wxiY80ZmYdDk-AELJo-9DnwGRZ3qBPzEiiNJ_Eiui1Q,1824
|
|
9
9
|
groundx/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
10
10
|
groundx/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
11
11
|
groundx/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
|
|
@@ -30,9 +30,9 @@ groundx/errors/bad_request_error.py,sha256=PnE3v3kETCXm9E3LiNcHLNtjPEUvpe98-r59q
|
|
|
30
30
|
groundx/errors/unauthorized_error.py,sha256=mryinHCAaknn5St2VF17R9XybZUcWRRYWEjxg63dQSA,340
|
|
31
31
|
groundx/extract/__init__.py,sha256=bIrn4ulZM0thiaz4zh32XyjnHNTcgmHzixYOsYK1e6M,928
|
|
32
32
|
groundx/extract/agents/__init__.py,sha256=i95YB5jxXog8gn02t5c2to2zF00EZMiKjeukXZQt36g,90
|
|
33
|
-
groundx/extract/agents/agent.py,sha256=
|
|
33
|
+
groundx/extract/agents/agent.py,sha256=Ajj1wo1GXQIpFupm0MZ27RypjTCi2qknYuitTrmRmHU,6137
|
|
34
34
|
groundx/extract/classes/__init__.py,sha256=i7gl0O6K2THXwS8oszYlQ6lzvG4iglmvcuebqLvYH6A,574
|
|
35
|
-
groundx/extract/classes/agent.py,sha256=
|
|
35
|
+
groundx/extract/classes/agent.py,sha256=nDPr10PPqtRYxYE917P3vaZQGHCVLd0bH9xaMdBul4s,711
|
|
36
36
|
groundx/extract/classes/api.py,sha256=fgCwua4xf8oK2J8p-LYAFyeEpbGg1kETEUAGSH60lr4,345
|
|
37
37
|
groundx/extract/classes/document.py,sha256=lJcWKvP60Zo4W9UYjqAG-BBO_etq8jVp1QbvO4E12z8,9951
|
|
38
38
|
groundx/extract/classes/field.py,sha256=x8Y8MIytoeWeU6tpvczw2sLaIlQzCEvfRiO_-PjWEXE,2764
|
|
@@ -126,7 +126,7 @@ groundx/types/subscription_detail.py,sha256=GEEivqyiLsZtd8Ow7mqqwF1y0m0tHD-t9r9d
|
|
|
126
126
|
groundx/types/subscription_detail_meters.py,sha256=vGqiR2uupVh5177DfOghjoe5mwzVhoWljKzPF-twUc0,794
|
|
127
127
|
groundx/types/website_source.py,sha256=53jWDBtSrJVOsBVtVbZbjhEAsd0QGkXa7IuKO4AooLs,1542
|
|
128
128
|
groundx/version.py,sha256=1yVogKaq260fQfckM2RYN2144SEw0QROsZW8ICtkG4U,74
|
|
129
|
-
groundx-2.5.
|
|
130
|
-
groundx-2.5.
|
|
131
|
-
groundx-2.5.
|
|
132
|
-
groundx-2.5.
|
|
129
|
+
groundx-2.5.10.dist-info/LICENSE,sha256=dFE6nY1bHnSn6NqmdlghlU1gQqLqYNphrceGVehSa7o,1065
|
|
130
|
+
groundx-2.5.10.dist-info/METADATA,sha256=MSv5gnexWYVGFJreUZ_yDP3aaANrjLUF4ovxR7H3wL8,5920
|
|
131
|
+
groundx-2.5.10.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
132
|
+
groundx-2.5.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|