Skip to content

Commit 3b367c8

Browse files
committed
Refactor API methods to remove unused auth_token parameter
- Removed the `auth_token` parameter from multiple API methods across various modules, streamlining the function signatures and improving code clarity. - Updated related async functions to ensure compatibility with the new method signatures. - This change enhances the overall API consistency by eliminating unnecessary parameters. No breaking changes introduced; existing functionality remains intact.
1 parent 1007224 commit 3b367c8

91 files changed

Lines changed: 1376 additions & 1414 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎robosystems_client/api/agent/auto_select_agent.py‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,14 @@ def _get_kwargs(
1717
*,
1818
body: AgentRequest,
1919
authorization: Union[None, Unset, str] = UNSET,
20-
auth_token: Union[None, Unset, str] = UNSET,
2120
) -> dict[str, Any]:
2221
headers: dict[str, Any] = {}
2322
if not isinstance(authorization, Unset):
2423
headers["authorization"] = authorization
2524

26-
cookies = {}
27-
if auth_token is not UNSET:
28-
cookies["auth-token"] = auth_token
29-
3025
_kwargs: dict[str, Any] = {
3126
"method": "post",
3227
"url": f"/v1/{graph_id}/agent",
33-
"cookies": cookies,
3428
}
3529

3630
_kwargs["json"] = body.to_dict()
@@ -88,7 +82,6 @@ def sync_detailed(
8882
client: AuthenticatedClient,
8983
body: AgentRequest,
9084
authorization: Union[None, Unset, str] = UNSET,
91-
auth_token: Union[None, Unset, str] = UNSET,
9285
) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
9386
"""Auto-select agent for query
9487
@@ -105,7 +98,6 @@ def sync_detailed(
10598
Args:
10699
graph_id (str):
107100
authorization (Union[None, Unset, str]):
108-
auth_token (Union[None, Unset, str]):
109101
body (AgentRequest): Request model for agent interactions.
110102
111103
Raises:
@@ -120,7 +112,6 @@ def sync_detailed(
120112
graph_id=graph_id,
121113
body=body,
122114
authorization=authorization,
123-
auth_token=auth_token,
124115
)
125116

126117
response = client.get_httpx_client().request(
@@ -136,7 +127,6 @@ def sync(
136127
client: AuthenticatedClient,
137128
body: AgentRequest,
138129
authorization: Union[None, Unset, str] = UNSET,
139-
auth_token: Union[None, Unset, str] = UNSET,
140130
) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
141131
"""Auto-select agent for query
142132
@@ -153,7 +143,6 @@ def sync(
153143
Args:
154144
graph_id (str):
155145
authorization (Union[None, Unset, str]):
156-
auth_token (Union[None, Unset, str]):
157146
body (AgentRequest): Request model for agent interactions.
158147
159148
Raises:
@@ -169,7 +158,6 @@ def sync(
169158
client=client,
170159
body=body,
171160
authorization=authorization,
172-
auth_token=auth_token,
173161
).parsed
174162

175163

@@ -179,7 +167,6 @@ async def asyncio_detailed(
179167
client: AuthenticatedClient,
180168
body: AgentRequest,
181169
authorization: Union[None, Unset, str] = UNSET,
182-
auth_token: Union[None, Unset, str] = UNSET,
183170
) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
184171
"""Auto-select agent for query
185172
@@ -196,7 +183,6 @@ async def asyncio_detailed(
196183
Args:
197184
graph_id (str):
198185
authorization (Union[None, Unset, str]):
199-
auth_token (Union[None, Unset, str]):
200186
body (AgentRequest): Request model for agent interactions.
201187
202188
Raises:
@@ -211,7 +197,6 @@ async def asyncio_detailed(
211197
graph_id=graph_id,
212198
body=body,
213199
authorization=authorization,
214-
auth_token=auth_token,
215200
)
216201

217202
response = await client.get_async_httpx_client().request(**kwargs)
@@ -225,7 +210,6 @@ async def asyncio(
225210
client: AuthenticatedClient,
226211
body: AgentRequest,
227212
authorization: Union[None, Unset, str] = UNSET,
228-
auth_token: Union[None, Unset, str] = UNSET,
229213
) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
230214
"""Auto-select agent for query
231215
@@ -242,7 +226,6 @@ async def asyncio(
242226
Args:
243227
graph_id (str):
244228
authorization (Union[None, Unset, str]):
245-
auth_token (Union[None, Unset, str]):
246229
body (AgentRequest): Request model for agent interactions.
247230
248231
Raises:
@@ -259,6 +242,5 @@ async def asyncio(
259242
client=client,
260243
body=body,
261244
authorization=authorization,
262-
auth_token=auth_token,
263245
)
264246
).parsed

‎robosystems_client/api/agent/batch_process_queries.py‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,14 @@ def _get_kwargs(
1616
*,
1717
body: BatchAgentRequest,
1818
authorization: Union[None, Unset, str] = UNSET,
19-
auth_token: Union[None, Unset, str] = UNSET,
2019
) -> dict[str, Any]:
2120
headers: dict[str, Any] = {}
2221
if not isinstance(authorization, Unset):
2322
headers["authorization"] = authorization
2423

25-
cookies = {}
26-
if auth_token is not UNSET:
27-
cookies["auth-token"] = auth_token
28-
2924
_kwargs: dict[str, Any] = {
3025
"method": "post",
3126
"url": f"/v1/{graph_id}/agent/batch",
32-
"cookies": cookies,
3327
}
3428

3529
_kwargs["json"] = body.to_dict()
@@ -83,7 +77,6 @@ def sync_detailed(
8377
client: AuthenticatedClient,
8478
body: BatchAgentRequest,
8579
authorization: Union[None, Unset, str] = UNSET,
86-
auth_token: Union[None, Unset, str] = UNSET,
8780
) -> Response[Union[Any, BatchAgentResponse, HTTPValidationError]]:
8881
"""Batch process multiple queries
8982
@@ -105,7 +98,6 @@ def sync_detailed(
10598
Args:
10699
graph_id (str):
107100
authorization (Union[None, Unset, str]):
108-
auth_token (Union[None, Unset, str]):
109101
body (BatchAgentRequest): Request for batch processing multiple queries.
110102
111103
Raises:
@@ -120,7 +112,6 @@ def sync_detailed(
120112
graph_id=graph_id,
121113
body=body,
122114
authorization=authorization,
123-
auth_token=auth_token,
124115
)
125116

126117
response = client.get_httpx_client().request(
@@ -136,7 +127,6 @@ def sync(
136127
client: AuthenticatedClient,
137128
body: BatchAgentRequest,
138129
authorization: Union[None, Unset, str] = UNSET,
139-
auth_token: Union[None, Unset, str] = UNSET,
140130
) -> Optional[Union[Any, BatchAgentResponse, HTTPValidationError]]:
141131
"""Batch process multiple queries
142132
@@ -158,7 +148,6 @@ def sync(
158148
Args:
159149
graph_id (str):
160150
authorization (Union[None, Unset, str]):
161-
auth_token (Union[None, Unset, str]):
162151
body (BatchAgentRequest): Request for batch processing multiple queries.
163152
164153
Raises:
@@ -174,7 +163,6 @@ def sync(
174163
client=client,
175164
body=body,
176165
authorization=authorization,
177-
auth_token=auth_token,
178166
).parsed
179167

180168

@@ -184,7 +172,6 @@ async def asyncio_detailed(
184172
client: AuthenticatedClient,
185173
body: BatchAgentRequest,
186174
authorization: Union[None, Unset, str] = UNSET,
187-
auth_token: Union[None, Unset, str] = UNSET,
188175
) -> Response[Union[Any, BatchAgentResponse, HTTPValidationError]]:
189176
"""Batch process multiple queries
190177
@@ -206,7 +193,6 @@ async def asyncio_detailed(
206193
Args:
207194
graph_id (str):
208195
authorization (Union[None, Unset, str]):
209-
auth_token (Union[None, Unset, str]):
210196
body (BatchAgentRequest): Request for batch processing multiple queries.
211197
212198
Raises:
@@ -221,7 +207,6 @@ async def asyncio_detailed(
221207
graph_id=graph_id,
222208
body=body,
223209
authorization=authorization,
224-
auth_token=auth_token,
225210
)
226211

227212
response = await client.get_async_httpx_client().request(**kwargs)
@@ -235,7 +220,6 @@ async def asyncio(
235220
client: AuthenticatedClient,
236221
body: BatchAgentRequest,
237222
authorization: Union[None, Unset, str] = UNSET,
238-
auth_token: Union[None, Unset, str] = UNSET,
239223
) -> Optional[Union[Any, BatchAgentResponse, HTTPValidationError]]:
240224
"""Batch process multiple queries
241225
@@ -257,7 +241,6 @@ async def asyncio(
257241
Args:
258242
graph_id (str):
259243
authorization (Union[None, Unset, str]):
260-
auth_token (Union[None, Unset, str]):
261244
body (BatchAgentRequest): Request for batch processing multiple queries.
262245
263246
Raises:
@@ -274,6 +257,5 @@ async def asyncio(
274257
client=client,
275258
body=body,
276259
authorization=authorization,
277-
auth_token=auth_token,
278260
)
279261
).parsed

‎robosystems_client/api/agent/execute_specific_agent.py‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,14 @@ def _get_kwargs(
1818
*,
1919
body: AgentRequest,
2020
authorization: Union[None, Unset, str] = UNSET,
21-
auth_token: Union[None, Unset, str] = UNSET,
2221
) -> dict[str, Any]:
2322
headers: dict[str, Any] = {}
2423
if not isinstance(authorization, Unset):
2524
headers["authorization"] = authorization
2625

27-
cookies = {}
28-
if auth_token is not UNSET:
29-
cookies["auth-token"] = auth_token
30-
3126
_kwargs: dict[str, Any] = {
3227
"method": "post",
3328
"url": f"/v1/{graph_id}/agent/{agent_type}",
34-
"cookies": cookies,
3529
}
3630

3731
_kwargs["json"] = body.to_dict()
@@ -93,7 +87,6 @@ def sync_detailed(
9387
client: AuthenticatedClient,
9488
body: AgentRequest,
9589
authorization: Union[None, Unset, str] = UNSET,
96-
auth_token: Union[None, Unset, str] = UNSET,
9790
) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
9891
"""Execute specific agent
9992
@@ -110,7 +103,6 @@ def sync_detailed(
110103
graph_id (str):
111104
agent_type (str):
112105
authorization (Union[None, Unset, str]):
113-
auth_token (Union[None, Unset, str]):
114106
body (AgentRequest): Request model for agent interactions.
115107
116108
Raises:
@@ -126,7 +118,6 @@ def sync_detailed(
126118
agent_type=agent_type,
127119
body=body,
128120
authorization=authorization,
129-
auth_token=auth_token,
130121
)
131122

132123
response = client.get_httpx_client().request(
@@ -143,7 +134,6 @@ def sync(
143134
client: AuthenticatedClient,
144135
body: AgentRequest,
145136
authorization: Union[None, Unset, str] = UNSET,
146-
auth_token: Union[None, Unset, str] = UNSET,
147137
) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
148138
"""Execute specific agent
149139
@@ -160,7 +150,6 @@ def sync(
160150
graph_id (str):
161151
agent_type (str):
162152
authorization (Union[None, Unset, str]):
163-
auth_token (Union[None, Unset, str]):
164153
body (AgentRequest): Request model for agent interactions.
165154
166155
Raises:
@@ -177,7 +166,6 @@ def sync(
177166
client=client,
178167
body=body,
179168
authorization=authorization,
180-
auth_token=auth_token,
181169
).parsed
182170

183171

@@ -188,7 +176,6 @@ async def asyncio_detailed(
188176
client: AuthenticatedClient,
189177
body: AgentRequest,
190178
authorization: Union[None, Unset, str] = UNSET,
191-
auth_token: Union[None, Unset, str] = UNSET,
192179
) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
193180
"""Execute specific agent
194181
@@ -205,7 +192,6 @@ async def asyncio_detailed(
205192
graph_id (str):
206193
agent_type (str):
207194
authorization (Union[None, Unset, str]):
208-
auth_token (Union[None, Unset, str]):
209195
body (AgentRequest): Request model for agent interactions.
210196
211197
Raises:
@@ -221,7 +207,6 @@ async def asyncio_detailed(
221207
agent_type=agent_type,
222208
body=body,
223209
authorization=authorization,
224-
auth_token=auth_token,
225210
)
226211

227212
response = await client.get_async_httpx_client().request(**kwargs)
@@ -236,7 +221,6 @@ async def asyncio(
236221
client: AuthenticatedClient,
237222
body: AgentRequest,
238223
authorization: Union[None, Unset, str] = UNSET,
239-
auth_token: Union[None, Unset, str] = UNSET,
240224
) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
241225
"""Execute specific agent
242226
@@ -253,7 +237,6 @@ async def asyncio(
253237
graph_id (str):
254238
agent_type (str):
255239
authorization (Union[None, Unset, str]):
256-
auth_token (Union[None, Unset, str]):
257240
body (AgentRequest): Request model for agent interactions.
258241
259242
Raises:
@@ -271,6 +254,5 @@ async def asyncio(
271254
client=client,
272255
body=body,
273256
authorization=authorization,
274-
auth_token=auth_token,
275257
)
276258
).parsed

0 commit comments

Comments
 (0)