@letta-ai/letta-client 0.1.0 → 0.1.2

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 (156) hide show
  1. package/api/resources/agents/client/Client.d.ts +38 -2
  2. package/api/resources/agents/client/Client.js +184 -26
  3. package/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +10 -0
  4. package/api/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +1 -1
  5. package/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +15 -0
  6. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +4 -0
  7. package/api/resources/agents/client/requests/index.d.ts +2 -0
  8. package/api/resources/agents/resources/archivalMemory/client/Client.js +8 -8
  9. package/api/resources/agents/resources/context/client/Client.js +2 -2
  10. package/api/resources/agents/resources/memory/client/Client.js +2 -2
  11. package/api/resources/agents/resources/memory/resources/messages/client/Client.js +2 -2
  12. package/api/resources/agents/resources/memoryBlocks/client/Client.js +4 -4
  13. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  14. package/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +0 -3
  15. package/api/resources/agents/resources/recallMemory/client/Client.js +2 -2
  16. package/api/resources/agents/resources/sources/client/Client.js +2 -2
  17. package/api/resources/agents/resources/tools/client/Client.js +6 -6
  18. package/api/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +6 -0
  19. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +8 -0
  20. package/api/{types/LettaResponseToolReturnMessageStatus.js → resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js} +4 -4
  21. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +5 -0
  22. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.d.ts +9 -0
  23. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.d.ts +8 -0
  24. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.js +10 -0
  25. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.d.ts +8 -0
  26. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.js +10 -0
  27. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.d.ts +9 -0
  28. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.d.ts +9 -0
  29. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.js +11 -0
  30. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.d.ts +7 -0
  31. package/api/resources/agents/types/index.d.ts +9 -1
  32. package/api/resources/agents/types/index.js +9 -1
  33. package/api/resources/blocks/client/Client.js +14 -14
  34. package/api/resources/health/client/Client.js +2 -2
  35. package/api/resources/jobs/client/Client.js +8 -8
  36. package/api/resources/models/client/Client.js +4 -4
  37. package/api/resources/sources/client/Client.js +16 -16
  38. package/api/resources/sources/resources/files/client/Client.js +6 -6
  39. package/api/resources/sources/resources/passages/client/Client.js +2 -2
  40. package/api/resources/tools/client/Client.js +24 -24
  41. package/api/types/InternalServerErrorBody.d.ts +1 -1
  42. package/api/types/LettaResponse.d.ts +12 -62
  43. package/api/types/LettaUsageStatistics.d.ts +1 -0
  44. package/api/types/NotFoundErrorBody.d.ts +1 -2
  45. package/api/types/index.d.ts +0 -13
  46. package/api/types/index.js +0 -13
  47. package/dist/api/resources/agents/client/Client.d.ts +38 -2
  48. package/dist/api/resources/agents/client/Client.js +184 -26
  49. package/dist/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +10 -0
  50. package/dist/api/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +1 -1
  51. package/dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +15 -0
  52. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +4 -0
  53. package/dist/api/resources/agents/client/requests/index.d.ts +2 -0
  54. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +8 -8
  55. package/dist/api/resources/agents/resources/context/client/Client.js +2 -2
  56. package/dist/api/resources/agents/resources/memory/client/Client.js +2 -2
  57. package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.js +2 -2
  58. package/dist/api/resources/agents/resources/memoryBlocks/client/Client.js +4 -4
  59. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  60. package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +0 -3
  61. package/dist/api/resources/agents/resources/recallMemory/client/Client.js +2 -2
  62. package/dist/api/resources/agents/resources/sources/client/Client.js +2 -2
  63. package/dist/api/resources/agents/resources/tools/client/Client.js +6 -6
  64. package/dist/api/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +6 -0
  65. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +8 -0
  66. package/dist/api/{types/LettaResponseToolReturnMessageStatus.js → resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js} +4 -4
  67. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +5 -0
  68. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.d.ts +9 -0
  69. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.d.ts +8 -0
  70. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.js +10 -0
  71. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.d.ts +8 -0
  72. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.js +10 -0
  73. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.d.ts +9 -0
  74. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.d.ts +9 -0
  75. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.js +11 -0
  76. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.d.ts +7 -0
  77. package/dist/api/resources/agents/types/index.d.ts +9 -1
  78. package/dist/api/resources/agents/types/index.js +9 -1
  79. package/dist/api/resources/blocks/client/Client.js +14 -14
  80. package/dist/api/resources/health/client/Client.js +2 -2
  81. package/dist/api/resources/jobs/client/Client.js +8 -8
  82. package/dist/api/resources/models/client/Client.js +4 -4
  83. package/dist/api/resources/sources/client/Client.js +16 -16
  84. package/dist/api/resources/sources/resources/files/client/Client.js +6 -6
  85. package/dist/api/resources/sources/resources/passages/client/Client.js +2 -2
  86. package/dist/api/resources/tools/client/Client.js +24 -24
  87. package/dist/api/types/InternalServerErrorBody.d.ts +1 -1
  88. package/dist/api/types/LettaResponse.d.ts +12 -62
  89. package/dist/api/types/LettaUsageStatistics.d.ts +1 -0
  90. package/dist/api/types/NotFoundErrorBody.d.ts +1 -2
  91. package/dist/api/types/index.d.ts +0 -13
  92. package/dist/api/types/index.js +0 -13
  93. package/dist/environments.d.ts +2 -2
  94. package/dist/environments.js +1 -1
  95. package/dist/version.d.ts +1 -1
  96. package/dist/version.js +1 -1
  97. package/environments.d.ts +2 -2
  98. package/environments.js +1 -1
  99. package/package.json +1 -1
  100. package/reference.md +199 -2
  101. package/version.d.ts +1 -1
  102. package/version.js +1 -1
  103. package/api/resources/agents/types/AgentsCreateVersionResponse.d.ts +0 -7
  104. package/api/types/LettaResponseAssistantMessage.d.ts +0 -9
  105. package/api/types/LettaResponseLettaUsageStatistics.d.ts +0 -22
  106. package/api/types/LettaResponseReasoningMessage.d.ts +0 -17
  107. package/api/types/LettaResponseSystemMessage.d.ts +0 -17
  108. package/api/types/LettaResponseToolCall.d.ts +0 -8
  109. package/api/types/LettaResponseToolCallDelta.d.ts +0 -8
  110. package/api/types/LettaResponseToolCallMessage.d.ts +0 -18
  111. package/api/types/LettaResponseToolCallMessageToolCall.d.ts +0 -5
  112. package/api/types/LettaResponseToolCallMessageToolCallOne.d.ts +0 -8
  113. package/api/types/LettaResponseToolCallMessageToolCallZero.d.ts +0 -8
  114. package/api/types/LettaResponseToolReturnMessage.d.ts +0 -26
  115. package/api/types/LettaResponseToolReturnMessageStatus.d.ts +0 -8
  116. package/api/types/LettaResponseUserMessage.d.ts +0 -17
  117. package/dist/api/resources/agents/types/AgentsCreateVersionResponse.d.ts +0 -7
  118. package/dist/api/types/LettaResponseAssistantMessage.d.ts +0 -9
  119. package/dist/api/types/LettaResponseAssistantMessage.js +0 -5
  120. package/dist/api/types/LettaResponseLettaUsageStatistics.d.ts +0 -22
  121. package/dist/api/types/LettaResponseLettaUsageStatistics.js +0 -5
  122. package/dist/api/types/LettaResponseReasoningMessage.d.ts +0 -17
  123. package/dist/api/types/LettaResponseReasoningMessage.js +0 -5
  124. package/dist/api/types/LettaResponseSystemMessage.d.ts +0 -17
  125. package/dist/api/types/LettaResponseSystemMessage.js +0 -5
  126. package/dist/api/types/LettaResponseToolCall.d.ts +0 -8
  127. package/dist/api/types/LettaResponseToolCall.js +0 -5
  128. package/dist/api/types/LettaResponseToolCallDelta.d.ts +0 -8
  129. package/dist/api/types/LettaResponseToolCallDelta.js +0 -5
  130. package/dist/api/types/LettaResponseToolCallMessage.d.ts +0 -18
  131. package/dist/api/types/LettaResponseToolCallMessage.js +0 -5
  132. package/dist/api/types/LettaResponseToolCallMessageToolCall.d.ts +0 -5
  133. package/dist/api/types/LettaResponseToolCallMessageToolCall.js +0 -5
  134. package/dist/api/types/LettaResponseToolCallMessageToolCallOne.d.ts +0 -8
  135. package/dist/api/types/LettaResponseToolCallMessageToolCallOne.js +0 -5
  136. package/dist/api/types/LettaResponseToolCallMessageToolCallZero.d.ts +0 -8
  137. package/dist/api/types/LettaResponseToolCallMessageToolCallZero.js +0 -5
  138. package/dist/api/types/LettaResponseToolReturnMessage.d.ts +0 -26
  139. package/dist/api/types/LettaResponseToolReturnMessage.js +0 -5
  140. package/dist/api/types/LettaResponseToolReturnMessageStatus.d.ts +0 -8
  141. package/dist/api/types/LettaResponseUserMessage.d.ts +0 -17
  142. package/dist/api/types/LettaResponseUserMessage.js +0 -5
  143. /package/api/resources/agents/{types/AgentsCreateVersionResponse.js → client/requests/AgentsCreateTemplateFromAgentRequest.js} +0 -0
  144. /package/api/{types/LettaResponseAssistantMessage.js → resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js} +0 -0
  145. /package/api/{types/LettaResponseLettaUsageStatistics.js → resources/agents/types/AgentsGetAgentVariablesResponse.js} +0 -0
  146. /package/api/{types/LettaResponseReasoningMessage.js → resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js} +0 -0
  147. /package/api/{types/LettaResponseSystemMessage.js → resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.js} +0 -0
  148. /package/api/{types/LettaResponseToolCall.js → resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.js} +0 -0
  149. /package/api/{types/LettaResponseToolCallDelta.js → resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.js} +0 -0
  150. /package/{api/types/LettaResponseToolCallMessage.js → dist/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js} +0 -0
  151. /package/{api/types/LettaResponseToolCallMessageToolCall.js → dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js} +0 -0
  152. /package/{api/types/LettaResponseToolCallMessageToolCallOne.js → dist/api/resources/agents/types/AgentsGetAgentVariablesResponse.js} +0 -0
  153. /package/{api/types/LettaResponseToolCallMessageToolCallZero.js → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js} +0 -0
  154. /package/{api/types/LettaResponseToolReturnMessage.js → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.js} +0 -0
  155. /package/{api/types/LettaResponseUserMessage.js → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.js} +0 -0
  156. /package/dist/api/resources/agents/types/{AgentsCreateVersionResponse.js → AgentsSearchDeployedAgentsRequestSearchItemZero.js} +0 -0
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Representation of an agent's internal reasoning.
6
- *
7
- * Attributes:
8
- * reasoning (str): The internal reasoning of the agent
9
- * id (str): The ID of the message
10
- * date (datetime): The date the message was created in ISO format
11
- */
12
- export interface LettaResponseReasoningMessage {
13
- id: string;
14
- date: string;
15
- message_type?: "reasoning_message";
16
- reasoning: string;
17
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * A message generated by the system. Never streamed back on a response, only used for cursor pagination.
6
- *
7
- * Attributes:
8
- * message (str): The message sent by the system
9
- * id (str): The ID of the message
10
- * date (datetime): The date the message was created in ISO format
11
- */
12
- export interface LettaResponseSystemMessage {
13
- id: string;
14
- date: string;
15
- message_type?: "system_message";
16
- message: string;
17
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface LettaResponseToolCall {
5
- name: string;
6
- arguments: string;
7
- tool_call_id: string;
8
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface LettaResponseToolCallDelta {
5
- name?: string;
6
- arguments?: string;
7
- tool_call_id?: string;
8
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Letta from "../index";
5
- /**
6
- * A message representing a request to call a tool (generated by the LLM to trigger tool execution).
7
- *
8
- * Attributes:
9
- * tool_call (Union[ToolCall, ToolCallDelta]): The tool call
10
- * id (str): The ID of the message
11
- * date (datetime): The date the message was created in ISO format
12
- */
13
- export interface LettaResponseToolCallMessage {
14
- id: string;
15
- date: string;
16
- message_type?: "tool_call_message";
17
- tool_call: Letta.LettaResponseToolCallMessageToolCall;
18
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Letta from "../index";
5
- export declare type LettaResponseToolCallMessageToolCall = Letta.LettaResponseToolCallMessageToolCallZero | Letta.LettaResponseToolCallMessageToolCallOne;
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface LettaResponseToolCallMessageToolCallOne {
5
- name?: string;
6
- arguments?: string;
7
- tool_call_id?: string;
8
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface LettaResponseToolCallMessageToolCallZero {
5
- name: string;
6
- arguments: string;
7
- tool_call_id: string;
8
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Letta from "../index";
5
- /**
6
- * A message representing the return value of a tool call (generated by Letta executing the requested tool).
7
- *
8
- * Attributes:
9
- * tool_return (str): The return value of the tool
10
- * status (Literal["success", "error"]): The status of the tool call
11
- * id (str): The ID of the message
12
- * date (datetime): The date the message was created in ISO format
13
- * tool_call_id (str): A unique identifier for the tool call that generated this message
14
- * stdout (Optional[List(str)]): Captured stdout (e.g. prints, logs) from the tool invocation
15
- * stderr (Optional[List(str)]): Captured stderr from the tool invocation
16
- */
17
- export interface LettaResponseToolReturnMessage {
18
- id: string;
19
- date: string;
20
- message_type?: "tool_return_message";
21
- tool_return: string;
22
- status: Letta.LettaResponseToolReturnMessageStatus;
23
- tool_call_id: string;
24
- stdout?: string[];
25
- stderr?: string[];
26
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type LettaResponseToolReturnMessageStatus = "success" | "error";
5
- export declare const LettaResponseToolReturnMessageStatus: {
6
- readonly Success: "success";
7
- readonly Error: "error";
8
- };
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * A message sent by the user. Never streamed back on a response, only used for cursor pagination.
6
- *
7
- * Attributes:
8
- * message (str): The message sent by the user
9
- * id (str): The ID of the message
10
- * date (datetime): The date the message was created in ISO format
11
- */
12
- export interface LettaResponseUserMessage {
13
- id: string;
14
- date: string;
15
- message_type?: "user_message";
16
- message: string;
17
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface AgentsCreateVersionResponse {
5
- version: string;
6
- agentId?: string;
7
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface LettaResponseAssistantMessage {
5
- id: string;
6
- date: string;
7
- message_type?: "assistant_message";
8
- assistant_message: string;
9
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,22 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Usage statistics for the agent interaction.
6
- *
7
- * Attributes:
8
- * completion_tokens (int): The number of tokens generated by the agent.
9
- * prompt_tokens (int): The number of tokens in the prompt.
10
- * total_tokens (int): The total number of tokens processed by the agent.
11
- * step_count (int): The number of steps taken by the agent.
12
- */
13
- export interface LettaResponseLettaUsageStatistics {
14
- /** The number of tokens generated by the agent. */
15
- completion_tokens?: number;
16
- /** The number of tokens in the prompt. */
17
- prompt_tokens?: number;
18
- /** The total number of tokens processed by the agent. */
19
- total_tokens?: number;
20
- /** The number of steps taken by the agent. */
21
- step_count?: number;
22
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Representation of an agent's internal reasoning.
6
- *
7
- * Attributes:
8
- * reasoning (str): The internal reasoning of the agent
9
- * id (str): The ID of the message
10
- * date (datetime): The date the message was created in ISO format
11
- */
12
- export interface LettaResponseReasoningMessage {
13
- id: string;
14
- date: string;
15
- message_type?: "reasoning_message";
16
- reasoning: string;
17
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * A message generated by the system. Never streamed back on a response, only used for cursor pagination.
6
- *
7
- * Attributes:
8
- * message (str): The message sent by the system
9
- * id (str): The ID of the message
10
- * date (datetime): The date the message was created in ISO format
11
- */
12
- export interface LettaResponseSystemMessage {
13
- id: string;
14
- date: string;
15
- message_type?: "system_message";
16
- message: string;
17
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface LettaResponseToolCall {
5
- name: string;
6
- arguments: string;
7
- tool_call_id: string;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface LettaResponseToolCallDelta {
5
- name?: string;
6
- arguments?: string;
7
- tool_call_id?: string;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Letta from "../index";
5
- /**
6
- * A message representing a request to call a tool (generated by the LLM to trigger tool execution).
7
- *
8
- * Attributes:
9
- * tool_call (Union[ToolCall, ToolCallDelta]): The tool call
10
- * id (str): The ID of the message
11
- * date (datetime): The date the message was created in ISO format
12
- */
13
- export interface LettaResponseToolCallMessage {
14
- id: string;
15
- date: string;
16
- message_type?: "tool_call_message";
17
- tool_call: Letta.LettaResponseToolCallMessageToolCall;
18
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Letta from "../index";
5
- export declare type LettaResponseToolCallMessageToolCall = Letta.LettaResponseToolCallMessageToolCallZero | Letta.LettaResponseToolCallMessageToolCallOne;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface LettaResponseToolCallMessageToolCallOne {
5
- name?: string;
6
- arguments?: string;
7
- tool_call_id?: string;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface LettaResponseToolCallMessageToolCallZero {
5
- name: string;
6
- arguments: string;
7
- tool_call_id: string;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,26 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Letta from "../index";
5
- /**
6
- * A message representing the return value of a tool call (generated by Letta executing the requested tool).
7
- *
8
- * Attributes:
9
- * tool_return (str): The return value of the tool
10
- * status (Literal["success", "error"]): The status of the tool call
11
- * id (str): The ID of the message
12
- * date (datetime): The date the message was created in ISO format
13
- * tool_call_id (str): A unique identifier for the tool call that generated this message
14
- * stdout (Optional[List(str)]): Captured stdout (e.g. prints, logs) from the tool invocation
15
- * stderr (Optional[List(str)]): Captured stderr from the tool invocation
16
- */
17
- export interface LettaResponseToolReturnMessage {
18
- id: string;
19
- date: string;
20
- message_type?: "tool_return_message";
21
- tool_return: string;
22
- status: Letta.LettaResponseToolReturnMessageStatus;
23
- tool_call_id: string;
24
- stdout?: string[];
25
- stderr?: string[];
26
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type LettaResponseToolReturnMessageStatus = "success" | "error";
5
- export declare const LettaResponseToolReturnMessageStatus: {
6
- readonly Success: "success";
7
- readonly Error: "error";
8
- };
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * A message sent by the user. Never streamed back on a response, only used for cursor pagination.
6
- *
7
- * Attributes:
8
- * message (str): The message sent by the user
9
- * id (str): The ID of the message
10
- * date (datetime): The date the message was created in ISO format
11
- */
12
- export interface LettaResponseUserMessage {
13
- id: string;
14
- date: string;
15
- message_type?: "user_message";
16
- message: string;
17
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });