letta-nightly 0.7.6.dev20250429062643__py3-none-any.whl → 0.7.6.dev20250430104233__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.
@@ -70,6 +70,9 @@ def generate_openapi_schema(app: FastAPI):
70
70
  letta_docs["components"]["schemas"]["LettaAssistantMessageContentUnion"] = create_letta_assistant_message_content_union_schema()
71
71
  letta_docs["components"]["schemas"]["LettaUserMessageContentUnion"] = create_letta_user_message_content_union_schema()
72
72
 
73
+ # Update the app's schema with our modified version
74
+ app.openapi_schema = letta_docs
75
+
73
76
  for name, docs in [
74
77
  (
75
78
  "letta",
@@ -303,6 +306,9 @@ def create_application() -> "FastAPI":
303
306
  # / static files
304
307
  mount_static_files(app)
305
308
 
309
+ # Generate OpenAPI schema after all routes are mounted
310
+ generate_openapi_schema(app)
311
+
306
312
  @app.on_event("shutdown")
307
313
  def on_shutdown():
308
314
  global server
@@ -30,9 +30,7 @@ logger = get_logger(__name__)
30
30
  responses={
31
31
  200: {
32
32
  "description": "Successful response",
33
- "content": {
34
- "text/event-stream": {"description": "Server-Sent Events stream"},
35
- },
33
+ "content": {"text/event-stream": {}},
36
34
  }
37
35
  },
38
36
  )
@@ -669,9 +669,7 @@ async def send_message(
669
669
  responses={
670
670
  200: {
671
671
  "description": "Successful response",
672
- "content": {
673
- "text/event-stream": {"description": "Server-Sent Events stream"},
674
- },
672
+ "content": {"text/event-stream": {}},
675
673
  }
676
674
  },
677
675
  )
@@ -26,9 +26,7 @@ logger = get_logger(__name__)
26
26
  responses={
27
27
  200: {
28
28
  "description": "Successful response",
29
- "content": {
30
- "text/event-stream": {"description": "Server-Sent Events stream"},
31
- },
29
+ "content": {"text/event-stream": {}},
32
30
  }
33
31
  },
34
32
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-nightly
3
- Version: 0.7.6.dev20250429062643
3
+ Version: 0.7.6.dev20250430104233
4
4
  Summary: Create LLM agents with long-term memory and custom tools
5
5
  License: Apache License
6
6
  Author: Letta Team
@@ -248,7 +248,7 @@ letta/server/constants.py,sha256=yAdGbLkzlOU_dLTx0lKDmAnj0ZgRXCEaIcPJWO69eaE,92
248
248
  letta/server/db.py,sha256=Jt_lWUvqTWFHfgsWUuXcDlGD3yejNBjY1P4J2vI3kL0,4935
249
249
  letta/server/generate_openapi_schema.sh,sha256=0OtBhkC1g6CobVmNEd_m2B6sTdppjbJLXaM95icejvE,371
250
250
  letta/server/rest_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
251
- letta/server/rest_api/app.py,sha256=mjXqoAm-rUmYiT6USqGsxPd-4stUlBUR5EM0Kzx8GxU,14012
251
+ letta/server/rest_api/app.py,sha256=OO4k3ALIMa-pWAuHsHnlafuR0PZvAHcwbLs0e-v_PWs,14198
252
252
  letta/server/rest_api/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
253
253
  letta/server/rest_api/auth/index.py,sha256=fQBGyVylGSRfEMLQ17cZzrHd5Y1xiVylvPqH5Rl-lXQ,1378
254
254
  letta/server/rest_api/auth_token.py,sha256=725EFEIiNj4dh70hrSd94UysmFD8vcJLrTRfNHkzxDo,774
@@ -257,9 +257,9 @@ letta/server/rest_api/interface.py,sha256=c-BaECsK4szrmkDTTl52JckLxx92WR4uwK_VSa
257
257
  letta/server/rest_api/optimistic_json_parser.py,sha256=SS60lTp1oH2MXbHOChEnNm46xYcoAU3nInIXWDglmmw,6739
258
258
  letta/server/rest_api/routers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
259
259
  letta/server/rest_api/routers/openai/chat_completions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
260
- letta/server/rest_api/routers/openai/chat_completions/chat_completions.py,sha256=EK67d8r5CKTluQIAOknbRBRtq2LQxkLLkekchipdmgw,5149
260
+ letta/server/rest_api/routers/openai/chat_completions/chat_completions.py,sha256=QBWab1fn2LXVDMtc6li3gOzmrNzDiUw5WUJsMeeMZII,5076
261
261
  letta/server/rest_api/routers/v1/__init__.py,sha256=_skmAcDOK9ovHKfywRaBgigo3IvPmnUSQSR2hGVCOhY,1664
262
- letta/server/rest_api/routers/v1/agents.py,sha256=3mbPzEKBCzJmpUBUmJrs1WbmkIGTjEJ32HNUb1Lo5_M,34676
262
+ letta/server/rest_api/routers/v1/agents.py,sha256=WLcxIKc2yuKqN--b0ug8tTIJTLmyI_WncX3EofuirP4,34603
263
263
  letta/server/rest_api/routers/v1/blocks.py,sha256=Sefvon0jLvlNh0oAzntUcDZptnutuJOf-2Wcad_45Dg,4169
264
264
  letta/server/rest_api/routers/v1/embeddings.py,sha256=jtfZkffCDnIfPqu9-fVLu7j3rpTOl_IuTIwJ0HQCkMA,786
265
265
  letta/server/rest_api/routers/v1/groups.py,sha256=sLXkw8kgf9fhaQwb-n0SVbyzH6-e1kdzNuqGbdvPPgo,10890
@@ -277,7 +277,7 @@ letta/server/rest_api/routers/v1/steps.py,sha256=DVVwaxLNbNAgWpr2oQkrNjdS-wi0bP8
277
277
  letta/server/rest_api/routers/v1/tags.py,sha256=coydgvL6-9cuG2Hy5Ea7QY3inhTHlsf69w0tcZenBus,880
278
278
  letta/server/rest_api/routers/v1/tools.py,sha256=FXFx8J4Zs-pZ1H8andFzI5Pyv-PJkY8YMlWkZlObGdQ,19544
279
279
  letta/server/rest_api/routers/v1/users.py,sha256=G5DBHSkPfBgVHN2Wkm-rVYiLQAudwQczIq2Z3YLdbVo,2277
280
- letta/server/rest_api/routers/v1/voice.py,sha256=czt6y5na1msrJCvXlhN1XYluotnxFwIfYFMMOmynfgE,2072
280
+ letta/server/rest_api/routers/v1/voice.py,sha256=U78jJqJ6Gtby7UpSqvSM8_zN3NjLSWvIm85DzNUHbpY,1999
281
281
  letta/server/rest_api/static_files.py,sha256=NG8sN4Z5EJ8JVQdj19tkFa9iQ1kBPTab9f_CUxd_u4Q,3143
282
282
  letta/server/rest_api/utils.py,sha256=bZpp_nkqcL0yF1or91dEscE-LItDJEc16NTalz5ItbU,15357
283
283
  letta/server/server.py,sha256=6_zoStXpAwH2UnJ-TcRNoJKlOh44_YFKG3rUEZSZNnw,82171
@@ -334,8 +334,8 @@ letta/streaming_utils.py,sha256=jLqFTVhUL76FeOuYk8TaRQHmPTf3HSRc2EoJwxJNK6U,1194
334
334
  letta/system.py,sha256=mKxmvvekuP8mdgsebRINGBoFbUdJhxLJ260crPBNVyk,8386
335
335
  letta/tracing.py,sha256=d_l8emrUMnAv3y1C9ttPZM0bnakHzP5Bgv06k-tBFrc,8308
336
336
  letta/utils.py,sha256=IZFvtj9WYcrxUbkoUUYGDxMYQYdn5SgfqsvnARGsAzc,32245
337
- letta_nightly-0.7.6.dev20250429062643.dist-info/LICENSE,sha256=mExtuZ_GYJgDEI38GWdiEYZizZS4KkVt2SF1g_GPNhI,10759
338
- letta_nightly-0.7.6.dev20250429062643.dist-info/METADATA,sha256=NJVUeJpEbez-k4yS0oOMxHjCu5-msrmViDj4yEAtSTo,22282
339
- letta_nightly-0.7.6.dev20250429062643.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
340
- letta_nightly-0.7.6.dev20250429062643.dist-info/entry_points.txt,sha256=2zdiyGNEZGV5oYBuS-y2nAAgjDgcC9yM_mHJBFSRt5U,40
341
- letta_nightly-0.7.6.dev20250429062643.dist-info/RECORD,,
337
+ letta_nightly-0.7.6.dev20250430104233.dist-info/LICENSE,sha256=mExtuZ_GYJgDEI38GWdiEYZizZS4KkVt2SF1g_GPNhI,10759
338
+ letta_nightly-0.7.6.dev20250430104233.dist-info/METADATA,sha256=MO7LjF5G27T3WVhIGADcPXssjy3llB408qorZIhSsAM,22282
339
+ letta_nightly-0.7.6.dev20250430104233.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
340
+ letta_nightly-0.7.6.dev20250430104233.dist-info/entry_points.txt,sha256=2zdiyGNEZGV5oYBuS-y2nAAgjDgcC9yM_mHJBFSRt5U,40
341
+ letta_nightly-0.7.6.dev20250430104233.dist-info/RECORD,,