@letta-ai/letta-client 0.1.37 → 0.1.39

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 (295) hide show
  1. package/api/resources/agents/client/Client.d.ts +6 -3
  2. package/api/resources/agents/client/Client.js +29 -19
  3. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +2 -2
  4. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  5. package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -2
  6. package/api/resources/agents/resources/blocks/client/Client.d.ts +97 -0
  7. package/api/resources/agents/resources/blocks/client/Client.js +400 -0
  8. package/api/resources/agents/resources/blocks/client/index.d.ts +1 -0
  9. package/api/resources/agents/resources/context/client/Client.js +1 -1
  10. package/api/resources/agents/resources/coreMemory/client/Client.d.ts +0 -65
  11. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -332
  12. package/api/resources/agents/resources/index.d.ts +3 -2
  13. package/api/resources/agents/resources/index.js +4 -3
  14. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  15. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  16. package/api/resources/agents/resources/{archivalMemory → passages}/client/Client.d.ts +14 -14
  17. package/{dist/api/resources/agents/resources/archivalMemory → api/resources/agents/resources/passages}/client/Client.js +15 -15
  18. package/api/resources/agents/resources/{archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts → passages/client/requests/PassagesListRequest.d.ts} +1 -1
  19. package/api/resources/agents/resources/passages/client/requests/index.d.ts +2 -0
  20. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  21. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  22. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  23. package/api/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +1 -1
  24. package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentityIds.d.ts +4 -0
  25. package/api/resources/agents/types/index.d.ts +1 -2
  26. package/api/resources/agents/types/index.js +1 -2
  27. package/api/resources/blocks/client/Client.js +6 -6
  28. package/api/resources/health/client/Client.js +1 -1
  29. package/api/resources/identities/client/Client.d.ts +18 -18
  30. package/api/resources/identities/client/Client.js +36 -33
  31. package/api/resources/identities/client/requests/{UpsertIdentityRequest.d.ts → IdentitiesCreateRequest.d.ts} +1 -1
  32. package/{dist/api/resources/identities/client/requests/ListIdentitiesRequest.d.ts → api/resources/identities/client/requests/IdentitiesListRequest.d.ts} +2 -1
  33. package/{dist/api/resources/identities/client/requests/CreateIdentityRequest.d.ts → api/resources/identities/client/requests/IdentitiesUpsertRequest.d.ts} +1 -1
  34. package/api/resources/identities/client/requests/IdentityUpdate.d.ts +4 -0
  35. package/api/resources/identities/client/requests/index.d.ts +3 -3
  36. package/api/resources/jobs/client/Client.js +4 -4
  37. package/api/resources/models/client/Client.js +2 -2
  38. package/api/resources/providers/client/Client.js +4 -4
  39. package/api/resources/runs/client/Client.js +6 -6
  40. package/api/resources/sources/client/Client.js +6 -6
  41. package/api/resources/sources/resources/files/client/Client.js +3 -3
  42. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  43. package/api/resources/steps/client/Client.js +2 -2
  44. package/api/resources/tag/client/Client.js +1 -1
  45. package/api/resources/templates/client/Client.js +1 -1
  46. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.d.ts +1 -1
  47. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentityIds.d.ts +4 -0
  48. package/api/resources/templates/types/index.d.ts +1 -2
  49. package/api/resources/templates/types/index.js +1 -2
  50. package/api/resources/tools/client/Client.js +11 -11
  51. package/api/types/AgentState.d.ts +2 -2
  52. package/api/types/Identity.d.ts +4 -2
  53. package/api/types/IdentityCreate.d.ts +2 -0
  54. package/api/types/IdentityProperty.d.ts +15 -0
  55. package/api/types/IdentityPropertyType.d.ts +13 -0
  56. package/api/types/IdentityPropertyType.js +12 -0
  57. package/api/types/IdentityPropertyValue.d.ts +7 -0
  58. package/api/types/index.d.ts +3 -0
  59. package/api/types/index.js +3 -0
  60. package/dist/api/resources/agents/client/Client.d.ts +6 -3
  61. package/dist/api/resources/agents/client/Client.js +29 -19
  62. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +2 -2
  63. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  64. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -2
  65. package/dist/api/resources/agents/resources/blocks/client/Client.d.ts +97 -0
  66. package/dist/api/resources/agents/resources/blocks/client/Client.js +400 -0
  67. package/dist/api/resources/agents/resources/blocks/client/index.d.ts +1 -0
  68. package/dist/api/resources/agents/resources/blocks/client/index.js +2 -0
  69. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  70. package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +0 -65
  71. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -332
  72. package/dist/api/resources/agents/resources/index.d.ts +3 -2
  73. package/dist/api/resources/agents/resources/index.js +4 -3
  74. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  75. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  76. package/dist/api/resources/agents/resources/{archivalMemory → passages}/client/Client.d.ts +14 -14
  77. package/{api/resources/agents/resources/archivalMemory → dist/api/resources/agents/resources/passages}/client/Client.js +15 -15
  78. package/dist/api/resources/agents/resources/{archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts → passages/client/requests/PassagesListRequest.d.ts} +1 -1
  79. package/dist/api/resources/agents/resources/passages/client/requests/index.d.ts +2 -0
  80. package/dist/api/resources/agents/resources/passages/client/requests/index.js +2 -0
  81. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  82. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  83. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  84. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +1 -1
  85. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentityIds.d.ts +4 -0
  86. package/dist/api/resources/agents/types/index.d.ts +1 -2
  87. package/dist/api/resources/agents/types/index.js +1 -2
  88. package/dist/api/resources/blocks/client/Client.js +6 -6
  89. package/dist/api/resources/health/client/Client.js +1 -1
  90. package/dist/api/resources/identities/client/Client.d.ts +18 -18
  91. package/dist/api/resources/identities/client/Client.js +36 -33
  92. package/dist/api/resources/identities/client/requests/{UpsertIdentityRequest.d.ts → IdentitiesCreateRequest.d.ts} +1 -1
  93. package/{api/resources/identities/client/requests/ListIdentitiesRequest.d.ts → dist/api/resources/identities/client/requests/IdentitiesListRequest.d.ts} +2 -1
  94. package/{api/resources/identities/client/requests/CreateIdentityRequest.d.ts → dist/api/resources/identities/client/requests/IdentitiesUpsertRequest.d.ts} +1 -1
  95. package/dist/api/resources/identities/client/requests/IdentityUpdate.d.ts +4 -0
  96. package/dist/api/resources/identities/client/requests/index.d.ts +3 -3
  97. package/dist/api/resources/jobs/client/Client.js +4 -4
  98. package/dist/api/resources/models/client/Client.js +2 -2
  99. package/dist/api/resources/providers/client/Client.js +4 -4
  100. package/dist/api/resources/runs/client/Client.js +6 -6
  101. package/dist/api/resources/sources/client/Client.js +6 -6
  102. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  103. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  104. package/dist/api/resources/steps/client/Client.js +2 -2
  105. package/dist/api/resources/tag/client/Client.js +1 -1
  106. package/dist/api/resources/templates/client/Client.js +1 -1
  107. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.d.ts +1 -1
  108. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentityIds.d.ts +4 -0
  109. package/dist/api/resources/templates/types/index.d.ts +1 -2
  110. package/dist/api/resources/templates/types/index.js +1 -2
  111. package/dist/api/resources/tools/client/Client.js +11 -11
  112. package/dist/api/types/AgentState.d.ts +2 -2
  113. package/dist/api/types/Identity.d.ts +4 -2
  114. package/dist/api/types/IdentityCreate.d.ts +2 -0
  115. package/dist/api/types/IdentityProperty.d.ts +15 -0
  116. package/dist/api/types/IdentityPropertyType.d.ts +13 -0
  117. package/dist/api/types/IdentityPropertyType.js +12 -0
  118. package/dist/api/types/IdentityPropertyValue.d.ts +7 -0
  119. package/dist/api/types/index.d.ts +3 -0
  120. package/dist/api/types/index.js +3 -0
  121. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
  122. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
  123. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -1
  124. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -1
  125. package/dist/serialization/resources/agents/resources/blocks/client/index.d.ts +1 -0
  126. package/dist/serialization/resources/agents/resources/{coreMemory → blocks}/client/index.js +2 -2
  127. package/dist/serialization/resources/agents/resources/{coreMemory/client/listBlocks.d.ts → blocks/client/list.d.ts} +1 -1
  128. package/dist/serialization/resources/agents/resources/index.d.ts +3 -3
  129. package/dist/serialization/resources/agents/resources/index.js +4 -4
  130. package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/create.d.ts +1 -1
  131. package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/list.d.ts +1 -1
  132. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +2 -2
  133. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.js +2 -2
  134. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentityIds.d.ts +10 -0
  135. package/dist/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemIdentifierKeyItem.js → AgentsSearchResponseAgentsItemIdentityIds.js} +5 -2
  136. package/dist/serialization/resources/agents/types/index.d.ts +1 -2
  137. package/dist/serialization/resources/agents/types/index.js +1 -2
  138. package/dist/serialization/resources/identities/client/index.d.ts +1 -1
  139. package/dist/serialization/resources/identities/client/index.js +2 -2
  140. package/dist/serialization/resources/identities/client/{listIdentities.d.ts → list.d.ts} +1 -1
  141. package/dist/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +3 -0
  142. package/dist/serialization/resources/identities/client/requests/IdentityUpdate.js +3 -0
  143. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.d.ts +2 -2
  144. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.js +2 -2
  145. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.d.ts → TemplatesCreateAgentsResponseAgentsItemIdentityIds.d.ts} +3 -3
  146. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.js → TemplatesCreateAgentsResponseAgentsItemIdentityIds.js} +5 -2
  147. package/dist/serialization/resources/templates/types/index.d.ts +1 -2
  148. package/dist/serialization/resources/templates/types/index.js +1 -2
  149. package/dist/serialization/types/AgentState.d.ts +1 -1
  150. package/dist/serialization/types/AgentState.js +1 -1
  151. package/dist/serialization/types/Identity.d.ts +3 -2
  152. package/dist/serialization/types/Identity.js +3 -2
  153. package/dist/serialization/types/IdentityCreate.d.ts +2 -0
  154. package/dist/serialization/types/IdentityCreate.js +2 -0
  155. package/dist/serialization/types/IdentityProperty.d.ts +16 -0
  156. package/dist/serialization/types/IdentityProperty.js +47 -0
  157. package/dist/serialization/types/IdentityPropertyType.d.ts +10 -0
  158. package/dist/serialization/types/IdentityPropertyType.js +41 -0
  159. package/dist/serialization/types/IdentityPropertyValue.d.ts +10 -0
  160. package/dist/serialization/types/IdentityPropertyValue.js +47 -0
  161. package/dist/serialization/types/index.d.ts +3 -0
  162. package/dist/serialization/types/index.js +3 -0
  163. package/dist/version.d.ts +1 -1
  164. package/dist/version.js +1 -1
  165. package/package.json +1 -1
  166. package/reference.md +46 -44
  167. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
  168. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
  169. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -1
  170. package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -1
  171. package/serialization/resources/agents/resources/blocks/client/index.d.ts +1 -0
  172. package/serialization/resources/agents/resources/{coreMemory → blocks}/client/index.js +2 -2
  173. package/serialization/resources/agents/resources/{coreMemory/client/listBlocks.d.ts → blocks/client/list.d.ts} +1 -1
  174. package/serialization/resources/agents/resources/blocks/index.d.ts +1 -0
  175. package/serialization/resources/agents/resources/blocks/index.js +17 -0
  176. package/serialization/resources/agents/resources/index.d.ts +3 -3
  177. package/serialization/resources/agents/resources/index.js +4 -4
  178. package/serialization/resources/agents/resources/{archivalMemory → passages}/client/create.d.ts +1 -1
  179. package/serialization/resources/agents/resources/{archivalMemory → passages}/client/list.d.ts +1 -1
  180. package/serialization/resources/agents/resources/passages/index.d.ts +1 -0
  181. package/serialization/resources/agents/resources/passages/index.js +17 -0
  182. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +2 -2
  183. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.js +2 -2
  184. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentityIds.d.ts +10 -0
  185. package/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemIdentifierKeyItem.js → AgentsSearchResponseAgentsItemIdentityIds.js} +5 -2
  186. package/serialization/resources/agents/types/index.d.ts +1 -2
  187. package/serialization/resources/agents/types/index.js +1 -2
  188. package/serialization/resources/identities/client/index.d.ts +1 -1
  189. package/serialization/resources/identities/client/index.js +2 -2
  190. package/serialization/resources/identities/client/{listIdentities.d.ts → list.d.ts} +1 -1
  191. package/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +3 -0
  192. package/serialization/resources/identities/client/requests/IdentityUpdate.js +3 -0
  193. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.d.ts +2 -2
  194. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.js +2 -2
  195. package/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.d.ts → TemplatesCreateAgentsResponseAgentsItemIdentityIds.d.ts} +3 -3
  196. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentityIds.js +44 -0
  197. package/serialization/resources/templates/types/index.d.ts +1 -2
  198. package/serialization/resources/templates/types/index.js +1 -2
  199. package/serialization/types/AgentState.d.ts +1 -1
  200. package/serialization/types/AgentState.js +1 -1
  201. package/serialization/types/Identity.d.ts +3 -2
  202. package/serialization/types/Identity.js +3 -2
  203. package/serialization/types/IdentityCreate.d.ts +2 -0
  204. package/serialization/types/IdentityCreate.js +2 -0
  205. package/serialization/types/IdentityProperty.d.ts +16 -0
  206. package/serialization/types/IdentityProperty.js +47 -0
  207. package/serialization/types/IdentityPropertyType.d.ts +10 -0
  208. package/serialization/types/IdentityPropertyType.js +41 -0
  209. package/serialization/types/IdentityPropertyValue.d.ts +10 -0
  210. package/serialization/types/IdentityPropertyValue.js +47 -0
  211. package/serialization/types/index.d.ts +3 -0
  212. package/serialization/types/index.js +3 -0
  213. package/version.d.ts +1 -1
  214. package/version.js +1 -1
  215. package/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -2
  216. package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +0 -5
  217. package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +0 -4
  218. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.d.ts +0 -5
  219. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.d.ts +0 -4
  220. package/dist/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -2
  221. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +0 -5
  222. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +0 -4
  223. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.d.ts +0 -5
  224. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.d.ts +0 -4
  225. package/dist/serialization/resources/agents/resources/coreMemory/client/index.d.ts +0 -1
  226. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +0 -11
  227. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.js +0 -47
  228. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +0 -10
  229. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.d.ts +0 -11
  230. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.js +0 -47
  231. package/serialization/resources/agents/resources/coreMemory/client/index.d.ts +0 -1
  232. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +0 -11
  233. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.js +0 -47
  234. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +0 -10
  235. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.d.ts +0 -11
  236. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.js +0 -47
  237. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.js +0 -41
  238. /package/api/resources/agents/resources/{archivalMemory/client/requests → blocks/client}/index.js +0 -0
  239. /package/api/resources/agents/resources/{archivalMemory → blocks}/index.d.ts +0 -0
  240. /package/api/resources/agents/resources/{archivalMemory → blocks}/index.js +0 -0
  241. /package/api/resources/agents/resources/{archivalMemory → passages}/client/index.d.ts +0 -0
  242. /package/api/resources/agents/resources/{archivalMemory → passages}/client/index.js +0 -0
  243. /package/api/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.d.ts +0 -0
  244. /package/api/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.js +0 -0
  245. /package/api/resources/agents/resources/{archivalMemory/client/requests/ArchivalMemoryListRequest.js → passages/client/requests/PassagesListRequest.js} +0 -0
  246. /package/{dist/api/resources/agents/resources/archivalMemory → api/resources/agents/resources/passages}/client/requests/index.js +0 -0
  247. /package/{dist/api/resources/agents/resources/archivalMemory → api/resources/agents/resources/passages}/index.d.ts +0 -0
  248. /package/{dist/api/resources/agents/resources/archivalMemory → api/resources/agents/resources/passages}/index.js +0 -0
  249. /package/api/resources/agents/types/{AgentsSearchResponseAgentsItemIdentifierKey.js → AgentsSearchResponseAgentsItemIdentityIds.js} +0 -0
  250. /package/api/resources/{agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js → identities/client/requests/IdentitiesCreateRequest.js} +0 -0
  251. /package/api/resources/identities/client/requests/{CreateIdentityRequest.js → IdentitiesListRequest.js} +0 -0
  252. /package/api/resources/identities/client/requests/{ListIdentitiesRequest.js → IdentitiesUpsertRequest.js} +0 -0
  253. /package/api/resources/{identities/client/requests/UpsertIdentityRequest.js → templates/types/TemplatesCreateAgentsResponseAgentsItemIdentityIds.js} +0 -0
  254. /package/api/{resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.js → types/IdentityProperty.js} +0 -0
  255. /package/api/{resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.js → types/IdentityPropertyValue.js} +0 -0
  256. /package/dist/{serialization/resources/agents/resources/archivalMemory → api/resources/agents/resources/blocks}/index.d.ts +0 -0
  257. /package/dist/{serialization/resources/agents/resources/archivalMemory → api/resources/agents/resources/blocks}/index.js +0 -0
  258. /package/dist/api/resources/agents/resources/{archivalMemory → passages}/client/index.d.ts +0 -0
  259. /package/dist/api/resources/agents/resources/{archivalMemory → passages}/client/index.js +0 -0
  260. /package/dist/api/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.d.ts +0 -0
  261. /package/dist/api/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.js +0 -0
  262. /package/dist/api/resources/agents/resources/{archivalMemory/client/requests/ArchivalMemoryListRequest.js → passages/client/requests/PassagesListRequest.js} +0 -0
  263. /package/dist/{serialization/resources/agents/resources/coreMemory → api/resources/agents/resources/passages}/index.d.ts +0 -0
  264. /package/dist/{serialization/resources/agents/resources/coreMemory → api/resources/agents/resources/passages}/index.js +0 -0
  265. /package/dist/api/resources/agents/types/{AgentsSearchResponseAgentsItemIdentifierKey.js → AgentsSearchResponseAgentsItemIdentityIds.js} +0 -0
  266. /package/dist/api/resources/{agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js → identities/client/requests/IdentitiesCreateRequest.js} +0 -0
  267. /package/dist/api/resources/identities/client/requests/{CreateIdentityRequest.js → IdentitiesListRequest.js} +0 -0
  268. /package/dist/api/resources/identities/client/requests/{ListIdentitiesRequest.js → IdentitiesUpsertRequest.js} +0 -0
  269. /package/dist/api/resources/{identities/client/requests/UpsertIdentityRequest.js → templates/types/TemplatesCreateAgentsResponseAgentsItemIdentityIds.js} +0 -0
  270. /package/dist/api/{resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.js → types/IdentityProperty.js} +0 -0
  271. /package/dist/api/{resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.js → types/IdentityPropertyValue.js} +0 -0
  272. /package/dist/serialization/resources/agents/resources/{coreMemory/client/listBlocks.js → blocks/client/list.js} +0 -0
  273. /package/{serialization/resources/agents/resources/archivalMemory → dist/serialization/resources/agents/resources/blocks}/index.d.ts +0 -0
  274. /package/{serialization/resources/agents/resources/archivalMemory → dist/serialization/resources/agents/resources/blocks}/index.js +0 -0
  275. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/create.js +0 -0
  276. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/index.d.ts +0 -0
  277. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/index.js +0 -0
  278. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/list.js +0 -0
  279. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.d.ts +0 -0
  280. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.js +0 -0
  281. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/index.d.ts +0 -0
  282. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/index.js +0 -0
  283. /package/{serialization/resources/agents/resources/coreMemory → dist/serialization/resources/agents/resources/passages}/index.d.ts +0 -0
  284. /package/{serialization/resources/agents/resources/coreMemory → dist/serialization/resources/agents/resources/passages}/index.js +0 -0
  285. /package/dist/serialization/resources/identities/client/{listIdentities.js → list.js} +0 -0
  286. /package/serialization/resources/agents/resources/{coreMemory/client/listBlocks.js → blocks/client/list.js} +0 -0
  287. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/create.js +0 -0
  288. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/index.d.ts +0 -0
  289. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/index.js +0 -0
  290. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/list.js +0 -0
  291. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.d.ts +0 -0
  292. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.js +0 -0
  293. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/index.d.ts +0 -0
  294. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/index.js +0 -0
  295. /package/serialization/resources/identities/client/{listIdentities.js → list.js} +0 -0
@@ -8,7 +8,8 @@ import { Context } from "../resources/context/client/Client";
8
8
  import { Tools } from "../resources/tools/client/Client";
9
9
  import { Sources } from "../resources/sources/client/Client";
10
10
  import { CoreMemory } from "../resources/coreMemory/client/Client";
11
- import { ArchivalMemory } from "../resources/archivalMemory/client/Client";
11
+ import { Blocks } from "../resources/blocks/client/Client";
12
+ import { Passages } from "../resources/passages/client/Client";
12
13
  import { Messages } from "../resources/messages/client/Client";
13
14
  import { Templates } from "../resources/templates/client/Client";
14
15
  import { MemoryVariables } from "../resources/memoryVariables/client/Client";
@@ -37,7 +38,8 @@ export declare class Agents {
37
38
  protected _tools: Tools | undefined;
38
39
  protected _sources: Sources | undefined;
39
40
  protected _coreMemory: CoreMemory | undefined;
40
- protected _archivalMemory: ArchivalMemory | undefined;
41
+ protected _blocks: Blocks | undefined;
42
+ protected _passages: Passages | undefined;
41
43
  protected _messages: Messages | undefined;
42
44
  protected _templates: Templates | undefined;
43
45
  protected _memoryVariables: MemoryVariables | undefined;
@@ -46,7 +48,8 @@ export declare class Agents {
46
48
  get tools(): Tools;
47
49
  get sources(): Sources;
48
50
  get coreMemory(): CoreMemory;
49
- get archivalMemory(): ArchivalMemory;
51
+ get blocks(): Blocks;
52
+ get passages(): Passages;
50
53
  get messages(): Messages;
51
54
  get templates(): Templates;
52
55
  get memoryVariables(): MemoryVariables;
@@ -70,10 +70,11 @@ const Client_1 = require("../resources/context/client/Client");
70
70
  const Client_2 = require("../resources/tools/client/Client");
71
71
  const Client_3 = require("../resources/sources/client/Client");
72
72
  const Client_4 = require("../resources/coreMemory/client/Client");
73
- const Client_5 = require("../resources/archivalMemory/client/Client");
74
- const Client_6 = require("../resources/messages/client/Client");
75
- const Client_7 = require("../resources/templates/client/Client");
76
- const Client_8 = require("../resources/memoryVariables/client/Client");
73
+ const Client_5 = require("../resources/blocks/client/Client");
74
+ const Client_6 = require("../resources/passages/client/Client");
75
+ const Client_7 = require("../resources/messages/client/Client");
76
+ const Client_8 = require("../resources/templates/client/Client");
77
+ const Client_9 = require("../resources/memoryVariables/client/Client");
77
78
  class Agents {
78
79
  constructor(_options = {}) {
79
80
  this._options = _options;
@@ -94,21 +95,25 @@ class Agents {
94
95
  var _a;
95
96
  return ((_a = this._coreMemory) !== null && _a !== void 0 ? _a : (this._coreMemory = new Client_4.CoreMemory(this._options)));
96
97
  }
97
- get archivalMemory() {
98
+ get blocks() {
98
99
  var _a;
99
- return ((_a = this._archivalMemory) !== null && _a !== void 0 ? _a : (this._archivalMemory = new Client_5.ArchivalMemory(this._options)));
100
+ return ((_a = this._blocks) !== null && _a !== void 0 ? _a : (this._blocks = new Client_5.Blocks(this._options)));
101
+ }
102
+ get passages() {
103
+ var _a;
104
+ return ((_a = this._passages) !== null && _a !== void 0 ? _a : (this._passages = new Client_6.Passages(this._options)));
100
105
  }
101
106
  get messages() {
102
107
  var _a;
103
- return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_6.Messages(this._options)));
108
+ return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_7.Messages(this._options)));
104
109
  }
105
110
  get templates() {
106
111
  var _a;
107
- return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_7.Templates(this._options)));
112
+ return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_8.Templates(this._options)));
108
113
  }
109
114
  get memoryVariables() {
110
115
  var _a;
111
- return ((_a = this._memoryVariables) !== null && _a !== void 0 ? _a : (this._memoryVariables = new Client_8.MemoryVariables(this._options)));
116
+ return ((_a = this._memoryVariables) !== null && _a !== void 0 ? _a : (this._memoryVariables = new Client_9.MemoryVariables(this._options)));
112
117
  }
113
118
  /**
114
119
  * List all agents associated with a given user.
@@ -125,7 +130,7 @@ class Agents {
125
130
  list() {
126
131
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
127
132
  var _a, _b, _c;
128
- const { name, tags, matchAllTags, before, after, limit, queryText, projectId, templateId, baseTemplateId, identifierKey, } = request;
133
+ const { name, tags, matchAllTags, before, after, limit, queryText, projectId, templateId, baseTemplateId, identifierKeys, } = request;
129
134
  const _queryParams = {};
130
135
  if (name != null) {
131
136
  _queryParams["name"] = name;
@@ -162,13 +167,18 @@ class Agents {
162
167
  if (baseTemplateId != null) {
163
168
  _queryParams["base_template_id"] = baseTemplateId;
164
169
  }
165
- if (identifierKey != null) {
166
- _queryParams["identifier_key"] = identifierKey;
170
+ if (identifierKeys != null) {
171
+ if (Array.isArray(identifierKeys)) {
172
+ _queryParams["identifier_keys"] = identifierKeys.map((item) => item);
173
+ }
174
+ else {
175
+ _queryParams["identifier_keys"] = identifierKeys;
176
+ }
167
177
  }
168
178
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
169
179
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/"),
170
180
  method: "GET",
171
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
181
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
172
182
  contentType: "application/json",
173
183
  queryParameters: _queryParams,
174
184
  requestType: "json",
@@ -235,7 +245,7 @@ class Agents {
235
245
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
236
246
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/"),
237
247
  method: "POST",
238
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
248
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
239
249
  contentType: "application/json",
240
250
  requestType: "json",
241
251
  body: serializers.CreateAgentRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -301,7 +311,7 @@ class Agents {
301
311
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
302
312
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
303
313
  method: "GET",
304
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
314
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
305
315
  contentType: "application/json",
306
316
  requestType: "json",
307
317
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -366,7 +376,7 @@ class Agents {
366
376
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
367
377
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
368
378
  method: "DELETE",
369
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
379
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
370
380
  contentType: "application/json",
371
381
  requestType: "json",
372
382
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -426,7 +436,7 @@ class Agents {
426
436
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
427
437
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}`),
428
438
  method: "PATCH",
429
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
439
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
430
440
  contentType: "application/json",
431
441
  requestType: "json",
432
442
  body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -498,7 +508,7 @@ class Agents {
498
508
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
499
509
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/reset-messages`),
500
510
  method: "PATCH",
501
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
511
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
502
512
  contentType: "application/json",
503
513
  queryParameters: _queryParams,
504
514
  requestType: "json",
@@ -564,7 +574,7 @@ class Agents {
564
574
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
565
575
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/agents/search"),
566
576
  method: "POST",
567
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
577
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
568
578
  contentType: "application/json",
569
579
  requestType: "json",
570
580
  body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -47,7 +47,7 @@ export interface AgentsListRequest {
47
47
  */
48
48
  baseTemplateId?: string;
49
49
  /**
50
- * Search agents by identifier key
50
+ * Search agents by identifier keys
51
51
  */
52
- identifierKey?: string;
52
+ identifierKeys?: string | string[];
53
53
  }
@@ -68,8 +68,8 @@ export interface CreateAgentRequest {
68
68
  templateId?: string;
69
69
  /** The base template id of the agent. */
70
70
  baseTemplateId?: string;
71
- /** The identifier key belonging to the identity associated with this agent. */
72
- identifierKey?: string;
71
+ /** The ids of the identities associated with this agent. */
72
+ identityIds?: string[];
73
73
  /** If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case. */
74
74
  messageBufferAutoclear?: boolean;
75
75
  }
@@ -39,8 +39,8 @@ export interface UpdateAgent {
39
39
  templateId?: string;
40
40
  /** The base template id of the agent. */
41
41
  baseTemplateId?: string;
42
- /** The identifier key belonging to the identity associated with this agent. */
43
- identifierKey?: string;
42
+ /** The ids of the identities associated with this agent. */
43
+ identityIds?: string[];
44
44
  /** If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case. */
45
45
  messageBufferAutoclear?: boolean;
46
46
  }
@@ -0,0 +1,97 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as Letta from "../../../../../index";
7
+ export declare namespace Blocks {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.LettaEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<string | undefined>;
13
+ fetcher?: core.FetchFunction;
14
+ }
15
+ interface RequestOptions {
16
+ /** The maximum time to wait for a response in seconds. */
17
+ timeoutInSeconds?: number;
18
+ /** The number of times to retry the request. Defaults to 2. */
19
+ maxRetries?: number;
20
+ /** A hook to abort the request. */
21
+ abortSignal?: AbortSignal;
22
+ /** Additional headers to include in the request. */
23
+ headers?: Record<string, string>;
24
+ }
25
+ }
26
+ export declare class Blocks {
27
+ protected readonly _options: Blocks.Options;
28
+ constructor(_options?: Blocks.Options);
29
+ /**
30
+ * Retrieve a memory block from an agent.
31
+ *
32
+ * @param {string} agentId
33
+ * @param {string} blockLabel
34
+ * @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @throws {@link Letta.UnprocessableEntityError}
37
+ *
38
+ * @example
39
+ * await client.agents.blocks.retrieve("agent_id", "block_label")
40
+ */
41
+ retrieve(agentId: string, blockLabel: string, requestOptions?: Blocks.RequestOptions): Promise<Letta.Block>;
42
+ /**
43
+ * Updates a memory block of an agent.
44
+ *
45
+ * @param {string} agentId
46
+ * @param {string} blockLabel
47
+ * @param {Letta.BlockUpdate} request
48
+ * @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
49
+ *
50
+ * @throws {@link Letta.UnprocessableEntityError}
51
+ *
52
+ * @example
53
+ * await client.agents.blocks.modify("agent_id", "block_label", {})
54
+ */
55
+ modify(agentId: string, blockLabel: string, request: Letta.BlockUpdate, requestOptions?: Blocks.RequestOptions): Promise<Letta.Block>;
56
+ /**
57
+ * Retrieve the memory blocks of a specific agent.
58
+ *
59
+ * @param {string} agentId
60
+ * @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
61
+ *
62
+ * @throws {@link Letta.UnprocessableEntityError}
63
+ *
64
+ * @example
65
+ * await client.agents.blocks.list("agent_id")
66
+ */
67
+ list(agentId: string, requestOptions?: Blocks.RequestOptions): Promise<Letta.Block[]>;
68
+ /**
69
+ * Attach a block to an agent.
70
+ *
71
+ * @param {string} agentId
72
+ * @param {string} blockId
73
+ * @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
74
+ *
75
+ * @throws {@link Letta.UnprocessableEntityError}
76
+ *
77
+ * @example
78
+ * await client.agents.blocks.attach("agent_id", "block_id")
79
+ */
80
+ attach(agentId: string, blockId: string, requestOptions?: Blocks.RequestOptions): Promise<Letta.AgentState>;
81
+ /**
82
+ * Detach a block from an agent.
83
+ *
84
+ * @param {string} agentId
85
+ * @param {string} blockId
86
+ * @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
87
+ *
88
+ * @throws {@link Letta.UnprocessableEntityError}
89
+ *
90
+ * @example
91
+ * await client.agents.blocks.detach("agent_id", "block_id")
92
+ */
93
+ detach(agentId: string, blockId: string, requestOptions?: Blocks.RequestOptions): Promise<Letta.AgentState>;
94
+ protected _getCustomAuthorizationHeaders(): Promise<{
95
+ Authorization: string;
96
+ }>;
97
+ }