Skip to content

Commit 655f898

Browse files
authored
Merge pull request #5334 from Agenta-AI/chore/regen-fern-clients-2026-07-15-1
[chore] Regen fern clients
2 parents b69e17e + ead7306 commit 655f898

7 files changed

Lines changed: 21 additions & 10 deletions

File tree

clients/python/agenta_client/sessions/client.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,14 +337,16 @@ def transition_interaction(self, *, session_id: str, token: str, status: Session
337337
_response = self._raw_client.transition_interaction(session_id=session_id, token=token, status=status, request_options=request_options)
338338
return _response.data
339339

340-
def cancel_stale_interactions(self, *, session_id: str, turn_id: str, request_options: typing.Optional[RequestOptions] = None) -> typing.Dict[str, typing.Any]:
340+
def cancel_stale_interactions(self, *, session_id: str, turn_id: str, tokens: typing.Optional[typing.Sequence[str]] = OMIT, request_options: typing.Optional[RequestOptions] = None) -> typing.Dict[str, typing.Any]:
341341
"""
342342
Parameters
343343
----------
344344
session_id : str
345345
346346
turn_id : str
347347
348+
tokens : typing.Optional[typing.Sequence[str]]
349+
348350
request_options : typing.Optional[RequestOptions]
349351
Request-specific configuration.
350352
@@ -365,7 +367,7 @@ def cancel_stale_interactions(self, *, session_id: str, turn_id: str, request_op
365367
turn_id="turn_id",
366368
)
367369
"""
368-
_response = self._raw_client.cancel_stale_interactions(session_id=session_id, turn_id=turn_id, request_options=request_options)
370+
_response = self._raw_client.cancel_stale_interactions(session_id=session_id, turn_id=turn_id, tokens=tokens, request_options=request_options)
369371
return _response.data
370372

371373
def fetch_interaction(self, interaction_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> SessionInteractionResponse:
@@ -1122,14 +1124,16 @@ async def main() -> None:
11221124
_response = await self._raw_client.transition_interaction(session_id=session_id, token=token, status=status, request_options=request_options)
11231125
return _response.data
11241126

1125-
async def cancel_stale_interactions(self, *, session_id: str, turn_id: str, request_options: typing.Optional[RequestOptions] = None) -> typing.Dict[str, typing.Any]:
1127+
async def cancel_stale_interactions(self, *, session_id: str, turn_id: str, tokens: typing.Optional[typing.Sequence[str]] = OMIT, request_options: typing.Optional[RequestOptions] = None) -> typing.Dict[str, typing.Any]:
11261128
"""
11271129
Parameters
11281130
----------
11291131
session_id : str
11301132
11311133
turn_id : str
11321134
1135+
tokens : typing.Optional[typing.Sequence[str]]
1136+
11331137
request_options : typing.Optional[RequestOptions]
11341138
Request-specific configuration.
11351139
@@ -1158,7 +1162,7 @@ async def main() -> None:
11581162
11591163
asyncio.run(main())
11601164
"""
1161-
_response = await self._raw_client.cancel_stale_interactions(session_id=session_id, turn_id=turn_id, request_options=request_options)
1165+
_response = await self._raw_client.cancel_stale_interactions(session_id=session_id, turn_id=turn_id, tokens=tokens, request_options=request_options)
11621166
return _response.data
11631167

11641168
async def fetch_interaction(self, interaction_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> SessionInteractionResponse:

clients/python/agenta_client/sessions/raw_client.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,14 +511,16 @@ def transition_interaction(self, *, session_id: str, token: str, status: Session
511511
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
512512
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
513513

514-
def cancel_stale_interactions(self, *, session_id: str, turn_id: str, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[typing.Dict[str, typing.Any]]:
514+
def cancel_stale_interactions(self, *, session_id: str, turn_id: str, tokens: typing.Optional[typing.Sequence[str]] = OMIT, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[typing.Dict[str, typing.Any]]:
515515
"""
516516
Parameters
517517
----------
518518
session_id : str
519519
520520
turn_id : str
521521
522+
tokens : typing.Optional[typing.Sequence[str]]
523+
522524
request_options : typing.Optional[RequestOptions]
523525
Request-specific configuration.
524526
@@ -532,6 +534,7 @@ def cancel_stale_interactions(self, *, session_id: str, turn_id: str, request_op
532534
json={
533535
"session_id": session_id,
534536
"turn_id": turn_id,
537+
"tokens": tokens,
535538
}
536539
,
537540
headers={"content-type": "application/json", }
@@ -1624,14 +1627,16 @@ async def transition_interaction(self, *, session_id: str, token: str, status: S
16241627
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
16251628
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
16261629

1627-
async def cancel_stale_interactions(self, *, session_id: str, turn_id: str, request_options: typing.Optional[RequestOptions] = None) -> AsyncHttpResponse[typing.Dict[str, typing.Any]]:
1630+
async def cancel_stale_interactions(self, *, session_id: str, turn_id: str, tokens: typing.Optional[typing.Sequence[str]] = OMIT, request_options: typing.Optional[RequestOptions] = None) -> AsyncHttpResponse[typing.Dict[str, typing.Any]]:
16281631
"""
16291632
Parameters
16301633
----------
16311634
session_id : str
16321635
16331636
turn_id : str
16341637
1638+
tokens : typing.Optional[typing.Sequence[str]]
1639+
16351640
request_options : typing.Optional[RequestOptions]
16361641
Request-specific configuration.
16371642
@@ -1645,6 +1650,7 @@ async def cancel_stale_interactions(self, *, session_id: str, turn_id: str, requ
16451650
json={
16461651
"session_id": session_id,
16471652
"turn_id": turn_id,
1653+
"tokens": tokens,
16481654
}
16491655
,
16501656
headers={"content-type": "application/json", }

clients/python/agenta_client/types/analytics_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AnalyticsResponse(UniversalBaseModel):
2222

2323
buckets: typing.Optional[typing.List[MetricsBucket]] = pydantic.Field(default=None)
2424
"""
25-
Time-bucketed aggregates. Each bucket's `metrics` dict is keyed by the dotted `path` of the corresponding `MetricSpec`.
25+
Time-bucketed aggregates. Each bucket's `metrics` dict is keyed by the dotted `path` of the corresponding `MetricSpec`, ordered oldest to newest.
2626
"""
2727

2828
query: typing.Optional[TracingQuery] = pydantic.Field(default=None)

clients/python/agenta_client/types/old_analytics_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class OldAnalyticsResponse(UniversalBaseModel):
1818

1919
buckets: typing.Optional[typing.List[Bucket]] = pydantic.Field(default=None)
2020
"""
21-
Time-bucketed aggregates with fixed fields (`total`, `errors`) holding `count`, `duration`, `costs`, and `tokens`.
21+
Time-bucketed aggregates with fixed fields (`total`, `errors`) holding `count`, `duration`, `costs`, and `tokens`, ordered oldest to newest.
2222
"""
2323

2424

web/packages/agenta-api-client/src/generated/api/resources/sessions/client/requests/SessionInteractionCancelStaleRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
export interface SessionInteractionCancelStaleRequest {
1111
session_id: string;
1212
turn_id: string;
13+
tokens?: string[] | null;
1314
}

web/packages/agenta-api-client/src/generated/api/types/AnalyticsResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type * as AgentaApi from "../index.js";
88
export interface AnalyticsResponse {
99
/** Number of time buckets returned. */
1010
count?: number | undefined;
11-
/** Time-bucketed aggregates. Each bucket's `metrics` dict is keyed by the dotted `path` of the corresponding `MetricSpec`. */
11+
/** Time-bucketed aggregates. Each bucket's `metrics` dict is keyed by the dotted `path` of the corresponding `MetricSpec`, ordered oldest to newest. */
1212
buckets?: AgentaApi.MetricsBucket[] | undefined;
1313
/** The resolved query used to compute the buckets. */
1414
query?: AgentaApi.TracingQuery | undefined;

web/packages/agenta-api-client/src/generated/api/types/OldAnalyticsResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ import type * as AgentaApi from "../index.js";
88
export interface OldAnalyticsResponse {
99
/** Number of time buckets returned. */
1010
count?: number | undefined;
11-
/** Time-bucketed aggregates with fixed fields (`total`, `errors`) holding `count`, `duration`, `costs`, and `tokens`. */
11+
/** Time-bucketed aggregates with fixed fields (`total`, `errors`) holding `count`, `duration`, `costs`, and `tokens`, ordered oldest to newest. */
1212
buckets?: AgentaApi.Bucket[] | undefined;
1313
}

0 commit comments

Comments
 (0)