beamlit 0.0.57rc108__py3-none-any.whl → 0.0.57rc110__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.
Files changed (86) hide show
  1. beamlit/agents/chain.py +0 -2
  2. beamlit/agents/chat.py +1 -8
  3. beamlit/agents/decorator.py +5 -15
  4. beamlit/api/agents/delete_agent.py +1 -22
  5. beamlit/api/agents/get_agent.py +1 -22
  6. beamlit/api/agents/get_agent_metrics.py +13 -34
  7. beamlit/api/agents/get_agent_trace_ids.py +44 -14
  8. beamlit/api/agents/{list_agent_history.py → list_agent_revisions.py} +21 -17
  9. beamlit/api/agents/list_agents.py +4 -36
  10. beamlit/api/default/get_trace_ids.py +0 -15
  11. beamlit/api/default/list_mcp_hub_definitions.py +12 -12
  12. beamlit/api/functions/delete_function.py +1 -22
  13. beamlit/api/functions/get_function.py +1 -22
  14. beamlit/api/functions/get_function_metrics.py +13 -34
  15. beamlit/api/functions/get_function_trace_ids.py +44 -14
  16. beamlit/api/functions/{create_function_release.py → list_function_revisions.py} +26 -18
  17. beamlit/api/functions/list_functions.py +4 -36
  18. beamlit/api/knowledgebases/create_knowledgebase.py +4 -4
  19. beamlit/api/knowledgebases/delete_knowledgebase.py +5 -26
  20. beamlit/api/knowledgebases/get_knowledgebase.py +1 -22
  21. beamlit/api/{environments/get_environment_metrics.py → knowledgebases/list_knowledgebase_revisions.py} +34 -34
  22. beamlit/api/knowledgebases/list_knowledgebases.py +4 -36
  23. beamlit/api/models/create_model.py +4 -8
  24. beamlit/api/models/delete_model.py +1 -22
  25. beamlit/api/models/get_model.py +1 -22
  26. beamlit/api/models/get_model_metrics.py +13 -34
  27. beamlit/api/models/get_model_trace_ids.py +44 -14
  28. beamlit/api/models/{release_model.py → list_model_revisions.py} +26 -22
  29. beamlit/api/models/list_models.py +4 -36
  30. beamlit/api/models/update_model.py +4 -8
  31. beamlit/authentication/credentials.py +2 -7
  32. beamlit/common/settings.py +1 -4
  33. beamlit/deploy/deploy.py +5 -8
  34. beamlit/functions/mcp/mcp.py +3 -4
  35. beamlit/functions/remote/remote.py +1 -5
  36. beamlit/models/__init__.py +8 -38
  37. beamlit/models/agent.py +6 -6
  38. beamlit/models/function.py +6 -6
  39. beamlit/models/knowledgebase.py +6 -6
  40. beamlit/models/last_n_requests_metric.py +0 -9
  41. beamlit/models/model.py +7 -7
  42. beamlit/models/{resource_environment_metrics.py → resource_metrics.py} +20 -26
  43. beamlit/models/{resource_environment_metrics_request_total_per_code.py → resource_metrics_request_total_per_code.py} +5 -5
  44. beamlit/models/{resource_environment_metrics_rps_per_code.py → resource_metrics_rps_per_code.py} +5 -5
  45. beamlit/models/{model_release.py → revision_metadata.py} +20 -20
  46. beamlit/models/runtime.py +2 -2
  47. beamlit/models/workspace.py +0 -9
  48. beamlit/run.py +1 -4
  49. beamlit/serve/app.py +4 -8
  50. {beamlit-0.0.57rc108.dist-info → beamlit-0.0.57rc110.dist-info}/METADATA +1 -1
  51. {beamlit-0.0.57rc108.dist-info → beamlit-0.0.57rc110.dist-info}/RECORD +57 -86
  52. beamlit/api/agents/create_agent_release.py +0 -146
  53. beamlit/api/agents/delete_agent_history.py +0 -155
  54. beamlit/api/agents/get_agent_history.py +0 -155
  55. beamlit/api/agents/put_agent_history.py +0 -181
  56. beamlit/api/environments/__init__.py +0 -0
  57. beamlit/api/environments/create_environment.py +0 -167
  58. beamlit/api/environments/delete_environment.py +0 -154
  59. beamlit/api/environments/get_environment.py +0 -154
  60. beamlit/api/environments/list_environments.py +0 -139
  61. beamlit/api/environments/update_environment.py +0 -180
  62. beamlit/api/generation/__init__.py +0 -0
  63. beamlit/api/generation/run_information_generation_agent.py +0 -168
  64. beamlit/api/history/__init__.py +0 -0
  65. beamlit/api/history/get_agents_history.py +0 -155
  66. beamlit/api/history/list_agents_history.py +0 -131
  67. beamlit/models/agent_history.py +0 -167
  68. beamlit/models/agent_history_event.py +0 -133
  69. beamlit/models/agent_information_request.py +0 -63
  70. beamlit/models/agent_information_response.py +0 -79
  71. beamlit/models/agent_release.py +0 -70
  72. beamlit/models/environment.py +0 -96
  73. beamlit/models/environment_metadata.py +0 -148
  74. beamlit/models/environment_metrics.py +0 -77
  75. beamlit/models/environment_spec.py +0 -63
  76. beamlit/models/function_release.py +0 -70
  77. beamlit/models/knowledgebase_release.py +0 -70
  78. beamlit/models/mcp_hub_artifact.py +0 -188
  79. beamlit/models/mcp_hub_artifact_entrypoint.py +0 -45
  80. beamlit/models/mcp_hub_artifact_form.py +0 -45
  81. /beamlit/api/agents/{get_agent_environment_logs.py → get_agent_logs.py} +0 -0
  82. /beamlit/api/functions/{get_function_environment_logs.py → get_function_logs.py} +0 -0
  83. /beamlit/api/models/{get_model_environment_logs.py → get_model_logs.py} +0 -0
  84. {beamlit-0.0.57rc108.dist-info → beamlit-0.0.57rc110.dist-info}/WHEEL +0 -0
  85. {beamlit-0.0.57rc108.dist-info → beamlit-0.0.57rc110.dist-info}/entry_points.txt +0 -0
  86. {beamlit-0.0.57rc108.dist-info → beamlit-0.0.57rc110.dist-info}/licenses/LICENSE +0 -0
beamlit/agents/chain.py CHANGED
@@ -55,11 +55,9 @@ class ChainTool(BaseTool):
55
55
  Returns:
56
56
  Any: The result of the asynchronous tool execution.
57
57
  """
58
- settings = get_settings()
59
58
  result = self.client.run(
60
59
  "agent",
61
60
  self.name,
62
- settings.environment,
63
61
  "POST",
64
62
  cloud=self._cloud,
65
63
  service_name=self._service_name,
beamlit/agents/chat.py CHANGED
@@ -155,19 +155,13 @@ def get_chat_model_full(name: str, agent_model: Union[Model, None] = None) -> Tu
155
155
 
156
156
  if agent_model is None:
157
157
  try:
158
- agent_model = get_model.sync(name, client=client, environment=settings.environment)
158
+ agent_model = get_model.sync(name, client=client)
159
159
  except Exception:
160
160
  logger.warning(f"Model {name} not found, defaulting to gpt-4o-mini")
161
161
 
162
- environment = (
163
- (agent_model and agent_model.metadata and agent_model.metadata.environment)
164
- or settings.environment
165
- )
166
162
  headers = get_authentication_headers(settings)
167
- headers["X-Beamlit-Environment"] = environment
168
163
 
169
164
  jwt = headers.get("X-Beamlit-Authorization", "").replace("Bearer ", "")
170
- params = {"environment": environment}
171
165
  chat_classes = {
172
166
  "openai": {
173
167
  "func": get_openai_chat_model,
@@ -257,7 +251,6 @@ def get_chat_model_full(name: str, agent_model: Union[Model, None] = None) -> Tu
257
251
  kwargs = {
258
252
  "model": model,
259
253
  "base_url": get_base_url(name),
260
- "default_query": params,
261
254
  "default_headers": headers,
262
255
  "api_key": "fake_api_key",
263
256
  "temperature": 0,
@@ -17,7 +17,7 @@ from beamlit.authentication import new_client
17
17
  from beamlit.common.settings import init
18
18
  from beamlit.errors import UnexpectedStatus
19
19
  from beamlit.functions import get_functions
20
- from beamlit.models import Agent, AgentSpec, EnvironmentMetadata
20
+ from beamlit.models import Agent, AgentSpec, Metadata
21
21
 
22
22
  from .chat import get_chat_model_full
23
23
  from .voice.openai import OpenAIVoiceReactAgent
@@ -95,27 +95,17 @@ def agent(
95
95
  return wrapped
96
96
 
97
97
  if agent is not None:
98
- metadata = EnvironmentMetadata(**agent.get("metadata", {}))
98
+ metadata = Metadata(**agent.get("metadata", {}))
99
99
  spec = AgentSpec(**agent.get("spec", {}))
100
100
  agent = Agent(metadata=metadata, spec=spec)
101
101
  if agent.spec.model and chat_model is None:
102
102
  try:
103
103
  response = get_model.sync_detailed(
104
- agent.spec.model, environment=settings.environment, client=client
104
+ agent.spec.model, client=client
105
105
  )
106
106
  settings.agent.model = response.parsed
107
107
  except UnexpectedStatus as e:
108
- if e.status_code == 404 and settings.environment != "production":
109
- try:
110
- response = get_model.sync_detailed(
111
- agent.spec.model, environment="production", client=client
112
- )
113
- settings.agent.model = response.parsed
114
- except UnexpectedStatus as e:
115
- if e.status_code == 404:
116
- raise ValueError(f"Model {agent.spec.model} not found")
117
- else:
118
- raise e
108
+ raise e
119
109
  except Exception as e:
120
110
  raise e
121
111
 
@@ -144,7 +134,7 @@ def agent(
144
134
  models_select = ""
145
135
  try:
146
136
  models = list_models.sync_detailed(
147
- environment=settings.environment, client=client
137
+ client=client
148
138
  )
149
139
  models = ", ".join([model.metadata.name for model in models.parsed])
150
140
  models_select = f"You can select one from your models: {models}"
@@ -6,24 +6,15 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.agent import Agent
9
- from ...types import UNSET, Response
9
+ from ...types import Response
10
10
 
11
11
 
12
12
  def _get_kwargs(
13
13
  agent_name: str,
14
- *,
15
- environment: str,
16
14
  ) -> dict[str, Any]:
17
- params: dict[str, Any] = {}
18
-
19
- params["environment"] = environment
20
-
21
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
22
-
23
15
  _kwargs: dict[str, Any] = {
24
16
  "method": "delete",
25
17
  "url": f"/agents/{agent_name}",
26
- "params": params,
27
18
  }
28
19
 
29
20
  return _kwargs
@@ -53,13 +44,11 @@ def sync_detailed(
53
44
  agent_name: str,
54
45
  *,
55
46
  client: AuthenticatedClient,
56
- environment: str,
57
47
  ) -> Response[Agent]:
58
48
  """Delete agent by name
59
49
 
60
50
  Args:
61
51
  agent_name (str):
62
- environment (str):
63
52
 
64
53
  Raises:
65
54
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -71,7 +60,6 @@ def sync_detailed(
71
60
 
72
61
  kwargs = _get_kwargs(
73
62
  agent_name=agent_name,
74
- environment=environment,
75
63
  )
76
64
 
77
65
  response = client.get_httpx_client().request(
@@ -85,13 +73,11 @@ def sync(
85
73
  agent_name: str,
86
74
  *,
87
75
  client: AuthenticatedClient,
88
- environment: str,
89
76
  ) -> Optional[Agent]:
90
77
  """Delete agent by name
91
78
 
92
79
  Args:
93
80
  agent_name (str):
94
- environment (str):
95
81
 
96
82
  Raises:
97
83
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -104,7 +90,6 @@ def sync(
104
90
  return sync_detailed(
105
91
  agent_name=agent_name,
106
92
  client=client,
107
- environment=environment,
108
93
  ).parsed
109
94
 
110
95
 
@@ -112,13 +97,11 @@ async def asyncio_detailed(
112
97
  agent_name: str,
113
98
  *,
114
99
  client: AuthenticatedClient,
115
- environment: str,
116
100
  ) -> Response[Agent]:
117
101
  """Delete agent by name
118
102
 
119
103
  Args:
120
104
  agent_name (str):
121
- environment (str):
122
105
 
123
106
  Raises:
124
107
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -130,7 +113,6 @@ async def asyncio_detailed(
130
113
 
131
114
  kwargs = _get_kwargs(
132
115
  agent_name=agent_name,
133
- environment=environment,
134
116
  )
135
117
 
136
118
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -142,13 +124,11 @@ async def asyncio(
142
124
  agent_name: str,
143
125
  *,
144
126
  client: AuthenticatedClient,
145
- environment: str,
146
127
  ) -> Optional[Agent]:
147
128
  """Delete agent by name
148
129
 
149
130
  Args:
150
131
  agent_name (str):
151
- environment (str):
152
132
 
153
133
  Raises:
154
134
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -162,6 +142,5 @@ async def asyncio(
162
142
  await asyncio_detailed(
163
143
  agent_name=agent_name,
164
144
  client=client,
165
- environment=environment,
166
145
  )
167
146
  ).parsed
@@ -6,24 +6,15 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.agent import Agent
9
- from ...types import UNSET, Response, Unset
9
+ from ...types import Response
10
10
 
11
11
 
12
12
  def _get_kwargs(
13
13
  agent_name: str,
14
- *,
15
- environment: Union[Unset, str] = UNSET,
16
14
  ) -> dict[str, Any]:
17
- params: dict[str, Any] = {}
18
-
19
- params["environment"] = environment
20
-
21
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
22
-
23
15
  _kwargs: dict[str, Any] = {
24
16
  "method": "get",
25
17
  "url": f"/agents/{agent_name}",
26
- "params": params,
27
18
  }
28
19
 
29
20
  return _kwargs
@@ -53,13 +44,11 @@ def sync_detailed(
53
44
  agent_name: str,
54
45
  *,
55
46
  client: AuthenticatedClient,
56
- environment: Union[Unset, str] = UNSET,
57
47
  ) -> Response[Agent]:
58
48
  """Get agent by name
59
49
 
60
50
  Args:
61
51
  agent_name (str):
62
- environment (Union[Unset, str]):
63
52
 
64
53
  Raises:
65
54
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -71,7 +60,6 @@ def sync_detailed(
71
60
 
72
61
  kwargs = _get_kwargs(
73
62
  agent_name=agent_name,
74
- environment=environment,
75
63
  )
76
64
 
77
65
  response = client.get_httpx_client().request(
@@ -85,13 +73,11 @@ def sync(
85
73
  agent_name: str,
86
74
  *,
87
75
  client: AuthenticatedClient,
88
- environment: Union[Unset, str] = UNSET,
89
76
  ) -> Optional[Agent]:
90
77
  """Get agent by name
91
78
 
92
79
  Args:
93
80
  agent_name (str):
94
- environment (Union[Unset, str]):
95
81
 
96
82
  Raises:
97
83
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -104,7 +90,6 @@ def sync(
104
90
  return sync_detailed(
105
91
  agent_name=agent_name,
106
92
  client=client,
107
- environment=environment,
108
93
  ).parsed
109
94
 
110
95
 
@@ -112,13 +97,11 @@ async def asyncio_detailed(
112
97
  agent_name: str,
113
98
  *,
114
99
  client: AuthenticatedClient,
115
- environment: Union[Unset, str] = UNSET,
116
100
  ) -> Response[Agent]:
117
101
  """Get agent by name
118
102
 
119
103
  Args:
120
104
  agent_name (str):
121
- environment (Union[Unset, str]):
122
105
 
123
106
  Raises:
124
107
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -130,7 +113,6 @@ async def asyncio_detailed(
130
113
 
131
114
  kwargs = _get_kwargs(
132
115
  agent_name=agent_name,
133
- environment=environment,
134
116
  )
135
117
 
136
118
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -142,13 +124,11 @@ async def asyncio(
142
124
  agent_name: str,
143
125
  *,
144
126
  client: AuthenticatedClient,
145
- environment: Union[Unset, str] = UNSET,
146
127
  ) -> Optional[Agent]:
147
128
  """Get agent by name
148
129
 
149
130
  Args:
150
131
  agent_name (str):
151
- environment (Union[Unset, str]):
152
132
 
153
133
  Raises:
154
134
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -162,6 +142,5 @@ async def asyncio(
162
142
  await asyncio_detailed(
163
143
  agent_name=agent_name,
164
144
  client=client,
165
- environment=environment,
166
145
  )
167
146
  ).parsed
@@ -5,25 +5,16 @@ import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...models.resource_environment_metrics import ResourceEnvironmentMetrics
9
- from ...types import UNSET, Response, Unset
8
+ from ...models.resource_metrics import ResourceMetrics
9
+ from ...types import Response
10
10
 
11
11
 
12
12
  def _get_kwargs(
13
13
  agent_name: str,
14
- *,
15
- environment: Union[Unset, str] = UNSET,
16
14
  ) -> dict[str, Any]:
17
- params: dict[str, Any] = {}
18
-
19
- params["environment"] = environment
20
-
21
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
22
-
23
15
  _kwargs: dict[str, Any] = {
24
16
  "method": "get",
25
17
  "url": f"/agents/{agent_name}/metrics",
26
- "params": params,
27
18
  }
28
19
 
29
20
  return _kwargs
@@ -31,9 +22,9 @@ def _get_kwargs(
31
22
 
32
23
  def _parse_response(
33
24
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
34
- ) -> Optional[ResourceEnvironmentMetrics]:
25
+ ) -> Optional[ResourceMetrics]:
35
26
  if response.status_code == 200:
36
- response_200 = ResourceEnvironmentMetrics.from_dict(response.json())
27
+ response_200 = ResourceMetrics.from_dict(response.json())
37
28
 
38
29
  return response_200
39
30
  if client.raise_on_unexpected_status:
@@ -44,7 +35,7 @@ def _parse_response(
44
35
 
45
36
  def _build_response(
46
37
  *, client: Union[AuthenticatedClient, Client], response: httpx.Response
47
- ) -> Response[ResourceEnvironmentMetrics]:
38
+ ) -> Response[ResourceMetrics]:
48
39
  return Response(
49
40
  status_code=HTTPStatus(response.status_code),
50
41
  content=response.content,
@@ -57,25 +48,22 @@ def sync_detailed(
57
48
  agent_name: str,
58
49
  *,
59
50
  client: AuthenticatedClient,
60
- environment: Union[Unset, str] = UNSET,
61
- ) -> Response[ResourceEnvironmentMetrics]:
51
+ ) -> Response[ResourceMetrics]:
62
52
  """Get agent metrics
63
53
 
64
54
  Args:
65
55
  agent_name (str):
66
- environment (Union[Unset, str]):
67
56
 
68
57
  Raises:
69
58
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
70
59
  httpx.TimeoutException: If the request takes longer than Client.timeout.
71
60
 
72
61
  Returns:
73
- Response[ResourceEnvironmentMetrics]
62
+ Response[ResourceMetrics]
74
63
  """
75
64
 
76
65
  kwargs = _get_kwargs(
77
66
  agent_name=agent_name,
78
- environment=environment,
79
67
  )
80
68
 
81
69
  response = client.get_httpx_client().request(
@@ -89,26 +77,23 @@ def sync(
89
77
  agent_name: str,
90
78
  *,
91
79
  client: AuthenticatedClient,
92
- environment: Union[Unset, str] = UNSET,
93
- ) -> Optional[ResourceEnvironmentMetrics]:
80
+ ) -> Optional[ResourceMetrics]:
94
81
  """Get agent metrics
95
82
 
96
83
  Args:
97
84
  agent_name (str):
98
- environment (Union[Unset, str]):
99
85
 
100
86
  Raises:
101
87
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
102
88
  httpx.TimeoutException: If the request takes longer than Client.timeout.
103
89
 
104
90
  Returns:
105
- ResourceEnvironmentMetrics
91
+ ResourceMetrics
106
92
  """
107
93
 
108
94
  return sync_detailed(
109
95
  agent_name=agent_name,
110
96
  client=client,
111
- environment=environment,
112
97
  ).parsed
113
98
 
114
99
 
@@ -116,25 +101,22 @@ async def asyncio_detailed(
116
101
  agent_name: str,
117
102
  *,
118
103
  client: AuthenticatedClient,
119
- environment: Union[Unset, str] = UNSET,
120
- ) -> Response[ResourceEnvironmentMetrics]:
104
+ ) -> Response[ResourceMetrics]:
121
105
  """Get agent metrics
122
106
 
123
107
  Args:
124
108
  agent_name (str):
125
- environment (Union[Unset, str]):
126
109
 
127
110
  Raises:
128
111
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
129
112
  httpx.TimeoutException: If the request takes longer than Client.timeout.
130
113
 
131
114
  Returns:
132
- Response[ResourceEnvironmentMetrics]
115
+ Response[ResourceMetrics]
133
116
  """
134
117
 
135
118
  kwargs = _get_kwargs(
136
119
  agent_name=agent_name,
137
- environment=environment,
138
120
  )
139
121
 
140
122
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -146,26 +128,23 @@ async def asyncio(
146
128
  agent_name: str,
147
129
  *,
148
130
  client: AuthenticatedClient,
149
- environment: Union[Unset, str] = UNSET,
150
- ) -> Optional[ResourceEnvironmentMetrics]:
131
+ ) -> Optional[ResourceMetrics]:
151
132
  """Get agent metrics
152
133
 
153
134
  Args:
154
135
  agent_name (str):
155
- environment (Union[Unset, str]):
156
136
 
157
137
  Raises:
158
138
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
159
139
  httpx.TimeoutException: If the request takes longer than Client.timeout.
160
140
 
161
141
  Returns:
162
- ResourceEnvironmentMetrics
142
+ ResourceMetrics
163
143
  """
164
144
 
165
145
  return (
166
146
  await asyncio_detailed(
167
147
  agent_name=agent_name,
168
148
  client=client,
169
- environment=environment,
170
149
  )
171
150
  ).parsed
@@ -12,11 +12,17 @@ from ...types import UNSET, Response, Unset
12
12
  def _get_kwargs(
13
13
  agent_name: str,
14
14
  *,
15
- environment: Union[Unset, str] = UNSET,
15
+ limit: Union[Unset, str] = UNSET,
16
+ start_time: Union[Unset, str] = UNSET,
17
+ end_time: Union[Unset, str] = UNSET,
16
18
  ) -> dict[str, Any]:
17
19
  params: dict[str, Any] = {}
18
20
 
19
- params["environment"] = environment
21
+ params["limit"] = limit
22
+
23
+ params["startTime"] = start_time
24
+
25
+ params["endTime"] = end_time
20
26
 
21
27
  params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
22
28
 
@@ -57,13 +63,17 @@ def sync_detailed(
57
63
  agent_name: str,
58
64
  *,
59
65
  client: AuthenticatedClient,
60
- environment: Union[Unset, str] = UNSET,
66
+ limit: Union[Unset, str] = UNSET,
67
+ start_time: Union[Unset, str] = UNSET,
68
+ end_time: Union[Unset, str] = UNSET,
61
69
  ) -> Response[TraceIdsResponse]:
62
70
  """Get agent trace IDs
63
71
 
64
72
  Args:
65
73
  agent_name (str):
66
- environment (Union[Unset, str]):
74
+ limit (Union[Unset, str]):
75
+ start_time (Union[Unset, str]):
76
+ end_time (Union[Unset, str]):
67
77
 
68
78
  Raises:
69
79
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -75,7 +85,9 @@ def sync_detailed(
75
85
 
76
86
  kwargs = _get_kwargs(
77
87
  agent_name=agent_name,
78
- environment=environment,
88
+ limit=limit,
89
+ start_time=start_time,
90
+ end_time=end_time,
79
91
  )
80
92
 
81
93
  response = client.get_httpx_client().request(
@@ -89,13 +101,17 @@ def sync(
89
101
  agent_name: str,
90
102
  *,
91
103
  client: AuthenticatedClient,
92
- environment: Union[Unset, str] = UNSET,
104
+ limit: Union[Unset, str] = UNSET,
105
+ start_time: Union[Unset, str] = UNSET,
106
+ end_time: Union[Unset, str] = UNSET,
93
107
  ) -> Optional[TraceIdsResponse]:
94
108
  """Get agent trace IDs
95
109
 
96
110
  Args:
97
111
  agent_name (str):
98
- environment (Union[Unset, str]):
112
+ limit (Union[Unset, str]):
113
+ start_time (Union[Unset, str]):
114
+ end_time (Union[Unset, str]):
99
115
 
100
116
  Raises:
101
117
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -108,7 +124,9 @@ def sync(
108
124
  return sync_detailed(
109
125
  agent_name=agent_name,
110
126
  client=client,
111
- environment=environment,
127
+ limit=limit,
128
+ start_time=start_time,
129
+ end_time=end_time,
112
130
  ).parsed
113
131
 
114
132
 
@@ -116,13 +134,17 @@ async def asyncio_detailed(
116
134
  agent_name: str,
117
135
  *,
118
136
  client: AuthenticatedClient,
119
- environment: Union[Unset, str] = UNSET,
137
+ limit: Union[Unset, str] = UNSET,
138
+ start_time: Union[Unset, str] = UNSET,
139
+ end_time: Union[Unset, str] = UNSET,
120
140
  ) -> Response[TraceIdsResponse]:
121
141
  """Get agent trace IDs
122
142
 
123
143
  Args:
124
144
  agent_name (str):
125
- environment (Union[Unset, str]):
145
+ limit (Union[Unset, str]):
146
+ start_time (Union[Unset, str]):
147
+ end_time (Union[Unset, str]):
126
148
 
127
149
  Raises:
128
150
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -134,7 +156,9 @@ async def asyncio_detailed(
134
156
 
135
157
  kwargs = _get_kwargs(
136
158
  agent_name=agent_name,
137
- environment=environment,
159
+ limit=limit,
160
+ start_time=start_time,
161
+ end_time=end_time,
138
162
  )
139
163
 
140
164
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -146,13 +170,17 @@ async def asyncio(
146
170
  agent_name: str,
147
171
  *,
148
172
  client: AuthenticatedClient,
149
- environment: Union[Unset, str] = UNSET,
173
+ limit: Union[Unset, str] = UNSET,
174
+ start_time: Union[Unset, str] = UNSET,
175
+ end_time: Union[Unset, str] = UNSET,
150
176
  ) -> Optional[TraceIdsResponse]:
151
177
  """Get agent trace IDs
152
178
 
153
179
  Args:
154
180
  agent_name (str):
155
- environment (Union[Unset, str]):
181
+ limit (Union[Unset, str]):
182
+ start_time (Union[Unset, str]):
183
+ end_time (Union[Unset, str]):
156
184
 
157
185
  Raises:
158
186
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -166,6 +194,8 @@ async def asyncio(
166
194
  await asyncio_detailed(
167
195
  agent_name=agent_name,
168
196
  client=client,
169
- environment=environment,
197
+ limit=limit,
198
+ start_time=start_time,
199
+ end_time=end_time,
170
200
  )
171
201
  ).parsed