narada 0.1.29__tar.gz → 0.1.30__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: narada
3
- Version: 0.1.29
3
+ Version: 0.1.30
4
4
  Summary: Python client SDK for Narada
5
5
  Project-URL: Homepage, https://github.com/NaradaAI/narada-python-sdk/narada
6
6
  Project-URL: Repository, https://github.com/NaradaAI/narada-python-sdk
@@ -9,7 +9,7 @@ Author-email: Narada <support@narada.ai>
9
9
  License-Expression: Apache-2.0
10
10
  Requires-Python: >=3.12
11
11
  Requires-Dist: aiohttp>=3.12.13
12
- Requires-Dist: narada-core==0.0.7
12
+ Requires-Dist: narada-core==0.0.8
13
13
  Requires-Dist: playwright>=1.53.0
14
14
  Requires-Dist: rich>=14.0.0
15
15
  Requires-Dist: semver>=3.0.4
@@ -1,13 +1,13 @@
1
1
  [project]
2
2
  name = "narada"
3
- version = "0.1.29"
3
+ version = "0.1.30"
4
4
  description = "Python client SDK for Narada"
5
5
  license = "Apache-2.0"
6
6
  readme = "README.md"
7
7
  authors = [{ name = "Narada", email = "support@narada.ai" }]
8
8
  requires-python = ">=3.12"
9
9
  dependencies = [
10
- "narada-core==0.0.7",
10
+ "narada-core==0.0.8",
11
11
  "aiohttp>=3.12.13",
12
12
  "playwright>=1.53.0",
13
13
  "rich>=14.0.0",
@@ -8,6 +8,7 @@ from typing import IO, Any, Optional, TypeVar, overload
8
8
 
9
9
  import aiohttp
10
10
  from narada_core.actions.models import (
11
+ ActionTraceItem,
11
12
  AgenticSelectorAction,
12
13
  AgenticSelectorRequest,
13
14
  AgenticSelectorResponse,
@@ -125,6 +126,7 @@ class BaseBrowserWindow(ABC):
125
126
  variables: dict[str, str] | None = None,
126
127
  callback_url: str | None = None,
127
128
  callback_secret: str | None = None,
129
+ callback_headers: dict[str, Any] | None = None,
128
130
  timeout: int = 1000,
129
131
  ) -> Response[None]: ...
130
132
 
@@ -146,6 +148,7 @@ class BaseBrowserWindow(ABC):
146
148
  variables: dict[str, str] | None = None,
147
149
  callback_url: str | None = None,
148
150
  callback_secret: str | None = None,
151
+ callback_headers: dict[str, Any] | None = None,
149
152
  timeout: int = 1000,
150
153
  ) -> Response[_StructuredOutput]: ...
151
154
 
@@ -166,6 +169,7 @@ class BaseBrowserWindow(ABC):
166
169
  variables: dict[str, str] | None = None,
167
170
  callback_url: str | None = None,
168
171
  callback_secret: str | None = None,
172
+ callback_headers: dict[str, Any] | None = None,
169
173
  timeout: int = 1000,
170
174
  ) -> Response:
171
175
  """Low-level API for invoking an agent in the Narada extension side panel chat.
@@ -209,6 +213,8 @@ class BaseBrowserWindow(ABC):
209
213
  body["callbackUrl"] = callback_url
210
214
  if callback_secret is not None:
211
215
  body["callbackSecret"] = callback_secret
216
+ if callback_headers is not None:
217
+ body["callbackHeaders"] = callback_headers
212
218
 
213
219
  try:
214
220
  async with aiohttp.ClientSession() as session:
@@ -313,12 +319,20 @@ class BaseBrowserWindow(ABC):
313
319
  response_content = remote_dispatch_response["response"]
314
320
  assert response_content is not None
315
321
 
322
+ action_trace_raw = response_content.get("actionTrace")
323
+ action_trace = (
324
+ [ActionTraceItem.model_validate(item) for item in action_trace_raw]
325
+ if action_trace_raw is not None
326
+ else None
327
+ )
328
+
316
329
  return AgentResponse(
317
330
  request_id=remote_dispatch_response["requestId"],
318
331
  status=remote_dispatch_response["status"],
319
332
  text=response_content["text"],
320
333
  structured_output=response_content.get("structuredOutput"),
321
334
  usage=AgentUsage.model_validate(remote_dispatch_response["usage"]),
335
+ action_trace=action_trace,
322
336
  )
323
337
 
324
338
  async def agentic_selector(
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes