langchain-trigger-server 0.3.2__py3-none-any.whl → 0.3.4__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 langchain-trigger-server might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langchain-trigger-server
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Generic event-driven triggers framework
5
5
  Project-URL: Homepage, https://github.com/langchain-ai/open-agent-platform
6
6
  Project-URL: Repository, https://github.com/langchain-ai/open-agent-platform
@@ -22,7 +22,6 @@ Requires-Dist: httpx>=0.24.0
22
22
  Requires-Dist: langchain-auth>=0.0.1
23
23
  Requires-Dist: langgraph-sdk>=0.2.6
24
24
  Requires-Dist: pydantic>=2.0.0
25
- Requires-Dist: python-jose[cryptography]>=3.3.0
26
25
  Requires-Dist: python-multipart>=0.0.6
27
26
  Requires-Dist: supabase>=2.0.0
28
27
  Requires-Dist: uvicorn[standard]>=0.20.0
@@ -1,15 +1,15 @@
1
1
  langchain_triggers/__init__.py,sha256=WoW9LC_FJRs42mLWq2iuM-jjPow2Rue50q2zm56Oul0,536
2
- langchain_triggers/app.py,sha256=yg7Oa9otq2IQVJAP94n-HyS7sNMhNCVSWYvS5LPkcw8,40459
2
+ langchain_triggers/app.py,sha256=-VytRXkAPI8qm-fbMJMbQ52Qt8WC2nKBgL_8FGJaFTM,40468
3
3
  langchain_triggers/core.py,sha256=6r_91UWt7c26TVqkDxHc2xjmaQl42g-iFHGEWuDo0gs,3929
4
4
  langchain_triggers/cron_manager.py,sha256=PueW_z7gdkSza9J05W1VV2OxsfqvodMo7ZlAQJKMvpI,16408
5
- langchain_triggers/decorators.py,sha256=x3hVTCJgykSxWutH9-z-Bq7JdspMOWOc_wNRWRzAzPM,4620
5
+ langchain_triggers/decorators.py,sha256=ZhWgUjbl2jUbvGSlqgThebd0tPgqXoQ02D7BcKZ9aIs,4675
6
6
  langchain_triggers/auth/__init__.py,sha256=RtDKuBoKYuyHzLNpKr74cmALO0PhHlWO9Ho7k3CUYFE,349
7
7
  langchain_triggers/auth/slack_hmac.py,sha256=kiwjhTXITgQvLAtEcOv8BnnWJRJcxaQ9dXkQm3JJDQ4,2948
8
8
  langchain_triggers/database/__init__.py,sha256=B1I1qmVr3U1CSf0VkjxsL4W5QGda5T7uB_CsJq6yBF4,535
9
9
  langchain_triggers/database/interface.py,sha256=jpADOOwcBQo1ZichgiZVaOvfZqEqVVo8Ea7ATWWTSBE,4283
10
10
  langchain_triggers/database/supabase.py,sha256=zi_75GbqRvzzlXd5EgfYof4h6vHWOLS4I1759wvY9kQ,17009
11
11
  langchain_triggers/triggers/__init__.py,sha256=Uw1544gxzN4XDRn2RzpZ5EAG6EAF38ZYQtVvlciEsMs,146
12
- langchain_triggers/triggers/cron_trigger.py,sha256=tfCxlbtn7__0PRoVsZuEErln3bMckMDh1xjspmhYKNU,3309
13
- langchain_trigger_server-0.3.2.dist-info/METADATA,sha256=ycGrLicen2jY1X6KVW2mZOQ0c8Fk6YVTZxeHCgDpYK4,1486
14
- langchain_trigger_server-0.3.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- langchain_trigger_server-0.3.2.dist-info/RECORD,,
12
+ langchain_triggers/triggers/cron_trigger.py,sha256=YTscULtB8JesnB24IWZl0LDMkf-A9Y6dksAk7GLFJiQ,3355
13
+ langchain_trigger_server-0.3.4.dist-info/METADATA,sha256=FJuy7Q06X25o4JwhcS4yldyOAvsDBHdycR6utvhIgss,1438
14
+ langchain_trigger_server-0.3.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ langchain_trigger_server-0.3.4.dist-info/RECORD,,
langchain_triggers/app.py CHANGED
@@ -366,7 +366,7 @@ class TriggerServer:
366
366
  detail=f"You already have a registration with this configuration for trigger type '{trigger.id}'. Registration ID: {existing_registration.get('id')}",
367
367
  )
368
368
  result = await trigger.registration_handler(
369
- user_id, self.langchain_auth_client, registration_instance
369
+ request, user_id, self.langchain_auth_client, registration_instance
370
370
  )
371
371
 
372
372
  # Check if handler requested to skip registration (e.g., for OAuth or URL verification)
@@ -9,6 +9,7 @@ from __future__ import annotations
9
9
  import inspect
10
10
  from typing import Any, get_type_hints
11
11
 
12
+ from fastapi import Request
12
13
  from langchain_auth.client import Client
13
14
  from pydantic import BaseModel
14
15
 
@@ -47,11 +48,11 @@ class TriggerTemplate:
47
48
 
48
49
  def _validate_handler_signatures(self):
49
50
  """Validate that all handler functions have the correct signatures."""
50
- # Expected reg: async def handler(user_id: str, auth_client: Client, registration: RegistrationModel) -> TriggerRegistrationResult
51
+ # Expected reg: async def handler(request: Request, user_id: str, auth_client: Client, registration: RegistrationModel) -> TriggerRegistrationResult
51
52
  self._validate_handler(
52
53
  "registration_handler",
53
54
  self.registration_handler,
54
- [str, Client, self.registration_model],
55
+ [Request, str, Client, self.registration_model],
55
56
  TriggerRegistrationResult,
56
57
  )
57
58
 
@@ -5,6 +5,7 @@ from datetime import datetime
5
5
  from typing import Any
6
6
 
7
7
  from croniter import croniter
8
+ from fastapi import Request
8
9
  from langchain_auth.client import Client
9
10
  from pydantic import Field
10
11
 
@@ -33,7 +34,7 @@ class CronRegistration(TriggerRegistrationModel):
33
34
 
34
35
 
35
36
  async def cron_registration_handler(
36
- user_id: str, auth_client: Client, registration: CronRegistration
37
+ request: Request, user_id: str, auth_client: Client, registration: CronRegistration
37
38
  ) -> TriggerRegistrationResult:
38
39
  """Handle cron trigger registration - validates cron pattern and prepares for scheduling."""
39
40
  logger.info(f"Cron registration request: {registration}")