@letta-ai/letta-client 0.1.11 → 0.1.13
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.
- package/api/resources/agents/client/Client.d.ts +130 -14
- package/api/resources/agents/client/Client.js +631 -32
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/api/resources/agents/{resources/archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts → client/requests/ListArchivalMemoryRequest.d.ts} +1 -1
- package/api/resources/agents/client/requests/index.d.ts +2 -0
- package/api/resources/agents/resources/archivalMemory/client/Client.d.ts +4 -33
- package/api/resources/agents/resources/archivalMemory/client/Client.js +27 -168
- package/api/resources/agents/resources/archivalMemory/client/index.d.ts +1 -1
- package/api/resources/agents/resources/archivalMemory/client/index.js +0 -15
- package/api/resources/agents/resources/context/client/Client.d.ts +2 -2
- package/api/resources/agents/resources/context/client/Client.js +3 -3
- package/api/resources/agents/resources/coreMemory/client/Client.d.ts +15 -57
- package/api/resources/agents/resources/coreMemory/client/Client.js +65 -265
- package/api/resources/agents/resources/index.d.ts +0 -2
- package/api/resources/agents/resources/index.js +1 -3
- package/api/resources/agents/resources/memoryVariables/client/Client.d.ts +2 -2
- package/api/resources/agents/resources/memoryVariables/client/Client.js +6 -6
- package/api/resources/agents/resources/memoryVariables/types/{MemoryVariablesGetResponse.d.ts → MemoryVariablesListResponse.d.ts} +1 -1
- package/api/resources/agents/resources/memoryVariables/types/index.d.ts +1 -1
- package/api/resources/agents/resources/memoryVariables/types/index.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +7 -7
- package/api/resources/agents/resources/messages/client/Client.js +13 -13
- package/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +1 -1
- package/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -24
- package/api/resources/agents/resources/messages/types/MessagesListResponse.d.ts +1 -1
- package/api/resources/agents/resources/sources/client/Client.d.ts +28 -2
- package/api/resources/agents/resources/sources/client/Client.js +136 -4
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.d.ts +7 -7
- package/api/resources/agents/resources/tools/client/Client.js +13 -13
- package/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +1 -15
- package/api/resources/agents/types/AgentsSearchRequestSearchItemDirection.d.ts +9 -0
- package/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.d.ts +8 -0
- package/{dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js → api/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.js} +2 -2
- package/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.d.ts +8 -0
- package/{dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js → api/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.js} +2 -2
- package/api/resources/agents/types/{AgentsSearchRequestSearchItemName.d.ts → AgentsSearchRequestSearchItemOne.d.ts} +3 -2
- package/api/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.d.ts → AgentsSearchRequestSearchItemOneOperator.d.ts} +2 -2
- package/api/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemOneOperator.js} +2 -2
- package/{dist/api/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts → api/resources/agents/types/AgentsSearchRequestSearchItemTwo.d.ts} +2 -1
- package/{dist/api/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts → api/resources/agents/types/AgentsSearchRequestSearchItemZero.d.ts} +2 -1
- package/api/resources/agents/types/index.d.ts +7 -7
- package/api/resources/agents/types/index.js +7 -7
- package/api/resources/blocks/client/Client.d.ts +4 -34
- package/api/resources/blocks/client/Client.js +9 -141
- package/api/resources/blocks/client/requests/index.d.ts +0 -2
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.d.ts +2 -2
- package/api/resources/jobs/client/Client.js +6 -6
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.d.ts +11 -11
- package/api/resources/providers/client/Client.js +32 -32
- package/api/resources/providers/client/requests/index.d.ts +1 -1
- package/api/resources/runs/client/Client.d.ts +7 -7
- package/api/resources/runs/client/Client.js +14 -14
- package/api/resources/runs/client/requests/{GetRunMessagesRequest.d.ts → ListRunMessagesRequest.d.ts} +1 -1
- package/api/resources/runs/client/requests/index.d.ts +1 -1
- package/api/resources/sources/client/Client.d.ts +4 -34
- package/api/resources/sources/client/Client.js +10 -154
- package/api/resources/sources/client/requests/index.d.ts +0 -2
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/tag/client/Client.js +1 -1
- package/api/resources/tools/client/Client.d.ts +9 -21
- package/api/resources/tools/client/Client.js +20 -85
- package/api/types/AgentState.d.ts +1 -1
- package/api/types/{AssistantMessageOutput.d.ts → AssistantMessage.d.ts} +2 -1
- package/api/types/Block.d.ts +1 -1
- package/api/types/ChatCompletionMessageToolCall.d.ts +11 -0
- package/api/types/ContextWindowOverview.d.ts +2 -2
- package/api/types/{LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts → Function.d.ts} +4 -2
- package/{dist/api/types/FunctionSchema.d.ts → api/types/FunctionDefinition.d.ts} +4 -1
- package/api/types/FunctionTool.d.ts +10 -0
- package/api/types/LettaMessageUnion.d.ts +1 -21
- package/api/types/LettaUsageStatistics.d.ts +1 -0
- package/{dist/api/types/LettaSchemasMessageMessage.d.ts → api/types/Message.d.ts} +5 -3
- package/api/types/ReasoningMessage.d.ts +1 -0
- package/api/types/Source.d.ts +1 -1
- package/api/types/{SystemMessageOutput.d.ts → SystemMessage.d.ts} +2 -1
- package/api/types/{LettaSchemasToolTool.d.ts → Tool.d.ts} +1 -1
- package/{dist/api/types/LettaSchemasLettaMessageToolCall.d.ts → api/types/ToolCall.d.ts} +1 -1
- package/api/types/ToolCallMessage.d.ts +1 -0
- package/api/types/ToolCallMessageToolCall.d.ts +1 -1
- package/api/types/ToolReturnMessage.d.ts +1 -0
- package/api/types/ToolType.d.ts +2 -1
- package/api/types/ToolType.js +1 -0
- package/api/types/{UserMessageOutput.d.ts → UserMessage.d.ts} +2 -1
- package/api/types/index.d.ts +10 -43
- package/api/types/index.js +10 -43
- package/dist/api/resources/agents/client/Client.d.ts +130 -14
- package/dist/api/resources/agents/client/Client.js +631 -32
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/dist/api/resources/agents/{resources/archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts → client/requests/ListArchivalMemoryRequest.d.ts} +1 -1
- package/dist/api/resources/agents/client/requests/index.d.ts +2 -0
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.d.ts +4 -33
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +27 -168
- package/dist/api/resources/agents/resources/archivalMemory/client/index.d.ts +1 -1
- package/dist/api/resources/agents/resources/archivalMemory/client/index.js +0 -15
- package/dist/api/resources/agents/resources/context/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/resources/context/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +15 -57
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +65 -265
- package/dist/api/resources/agents/resources/index.d.ts +0 -2
- package/dist/api/resources/agents/resources/index.js +1 -3
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +6 -6
- package/dist/api/resources/agents/resources/memoryVariables/types/{MemoryVariablesGetResponse.d.ts → MemoryVariablesListResponse.d.ts} +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/types/index.d.ts +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/types/index.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +7 -7
- package/dist/api/resources/agents/resources/messages/client/Client.js +13 -13
- package/dist/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +1 -1
- package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -24
- package/dist/api/resources/agents/resources/messages/types/MessagesListResponse.d.ts +1 -1
- package/dist/api/resources/agents/resources/sources/client/Client.d.ts +28 -2
- package/dist/api/resources/agents/resources/sources/client/Client.js +136 -4
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.d.ts +7 -7
- package/dist/api/resources/agents/resources/tools/client/Client.js +13 -13
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +1 -15
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirection.d.ts +9 -0
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.d.ts +8 -0
- package/{api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.js} +2 -2
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.d.ts +8 -0
- package/{api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.js} +2 -2
- package/dist/api/resources/agents/types/{AgentsSearchRequestSearchItemName.d.ts → AgentsSearchRequestSearchItemOne.d.ts} +3 -2
- package/dist/api/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.d.ts → AgentsSearchRequestSearchItemOneOperator.d.ts} +2 -2
- package/dist/api/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemOneOperator.js} +2 -2
- package/{api/resources/agents/types/AgentsSearchRequestSearchItemTags.d.ts → dist/api/resources/agents/types/AgentsSearchRequestSearchItemTwo.d.ts} +2 -1
- package/{api/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts → dist/api/resources/agents/types/AgentsSearchRequestSearchItemZero.d.ts} +2 -1
- package/dist/api/resources/agents/types/index.d.ts +7 -7
- package/dist/api/resources/agents/types/index.js +7 -7
- package/dist/api/resources/blocks/client/Client.d.ts +4 -34
- package/dist/api/resources/blocks/client/Client.js +9 -141
- package/dist/api/resources/blocks/client/requests/index.d.ts +0 -2
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.d.ts +2 -2
- package/dist/api/resources/jobs/client/Client.js +6 -6
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.d.ts +11 -11
- package/dist/api/resources/providers/client/Client.js +32 -32
- package/dist/api/resources/providers/client/requests/index.d.ts +1 -1
- package/dist/api/resources/runs/client/Client.d.ts +7 -7
- package/dist/api/resources/runs/client/Client.js +14 -14
- package/dist/api/resources/runs/client/requests/{GetRunMessagesRequest.d.ts → ListRunMessagesRequest.d.ts} +1 -1
- package/dist/api/resources/runs/client/requests/index.d.ts +1 -1
- package/dist/api/resources/sources/client/Client.d.ts +4 -34
- package/dist/api/resources/sources/client/Client.js +10 -154
- package/dist/api/resources/sources/client/requests/index.d.ts +0 -2
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/tag/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.d.ts +9 -21
- package/dist/api/resources/tools/client/Client.js +20 -85
- package/dist/api/types/AgentState.d.ts +1 -1
- package/dist/api/types/{AssistantMessageOutput.d.ts → AssistantMessage.d.ts} +2 -1
- package/dist/api/types/Block.d.ts +1 -1
- package/dist/api/types/ChatCompletionMessageToolCall.d.ts +11 -0
- package/dist/api/types/ContextWindowOverview.d.ts +2 -2
- package/{api/types/FunctionCallOutput.d.ts → dist/api/types/Function.d.ts} +3 -1
- package/{api/types/FunctionSchema.d.ts → dist/api/types/FunctionDefinition.d.ts} +4 -1
- package/dist/api/types/FunctionTool.d.ts +10 -0
- package/dist/api/types/LettaMessageUnion.d.ts +1 -21
- package/dist/api/types/LettaUsageStatistics.d.ts +1 -0
- package/{api/types/LettaSchemasMessageMessage.d.ts → dist/api/types/Message.d.ts} +5 -3
- package/dist/api/types/ReasoningMessage.d.ts +1 -0
- package/dist/api/types/Source.d.ts +1 -1
- package/dist/api/types/{SystemMessageOutput.d.ts → SystemMessage.d.ts} +2 -1
- package/dist/api/types/{LettaSchemasToolTool.d.ts → Tool.d.ts} +1 -1
- package/{api/types/LettaSchemasLettaMessageToolCall.d.ts → dist/api/types/ToolCall.d.ts} +1 -1
- package/dist/api/types/ToolCallMessage.d.ts +1 -0
- package/dist/api/types/ToolCallMessageToolCall.d.ts +1 -1
- package/dist/api/types/ToolReturnMessage.d.ts +1 -0
- package/dist/api/types/ToolType.d.ts +2 -1
- package/dist/api/types/ToolType.js +1 -0
- package/dist/api/types/{UserMessageOutput.d.ts → UserMessage.d.ts} +2 -1
- package/dist/api/types/index.d.ts +10 -43
- package/dist/api/types/index.js +10 -43
- package/dist/serialization/resources/agents/client/createArchivalMemory.d.ts +11 -0
- package/{serialization/resources/agents/resources/archivalMemory/client/create.js → dist/serialization/resources/agents/client/createArchivalMemory.js} +2 -2
- package/dist/serialization/resources/agents/client/index.d.ts +3 -0
- package/dist/serialization/resources/agents/client/index.js +4 -1
- package/dist/serialization/resources/agents/client/listArchivalMemory.d.ts +11 -0
- package/dist/serialization/resources/agents/{resources/archivalMemory/client/create.js → client/listArchivalMemory.js} +2 -2
- package/dist/serialization/resources/{tools/client/getByName.d.ts → agents/client/listCoreMemoryBlocks.d.ts} +4 -2
- package/dist/serialization/resources/{tools/client/getByName.js → agents/client/listCoreMemoryBlocks.js} +2 -1
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -3
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -5
- package/dist/serialization/resources/agents/client/requests/CreateArchivalMemory.d.ts +12 -0
- package/{serialization/resources/agents/resources/archivalMemory → dist/serialization/resources/agents}/client/requests/CreateArchivalMemory.js +1 -1
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -1
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -1
- package/dist/serialization/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/index.js +3 -1
- package/dist/serialization/resources/agents/resources/index.d.ts +0 -3
- package/dist/serialization/resources/agents/resources/index.js +1 -4
- package/{serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts → dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesListResponse.d.ts} +2 -2
- package/{serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.js → dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesListResponse.js} +2 -2
- package/dist/serialization/resources/agents/resources/memoryVariables/types/index.d.ts +1 -1
- package/dist/serialization/resources/agents/resources/memoryVariables/types/index.js +1 -1
- package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
- package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +2 -2
- package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +4 -25
- package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +12 -17
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +2 -2
- package/dist/serialization/resources/agents/resources/sources/client/index.d.ts +1 -1
- package/dist/serialization/resources/agents/resources/sources/client/index.js +2 -2
- package/{serialization/resources/agents/resources/sources/client/get.d.ts → dist/serialization/resources/agents/resources/sources/client/list.d.ts} +1 -1
- package/dist/serialization/resources/agents/resources/tools/client/list.d.ts +3 -3
- package/dist/serialization/resources/agents/resources/tools/client/list.js +2 -2
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -17
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +10 -15
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirection.d.ts +16 -0
- package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemOrderBy.js → AgentsSearchRequestSearchItemDirection.js} +7 -6
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.d.ts +10 -0
- package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemDirectionDirection.js} +2 -2
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.d.ts +10 -0
- package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemOrderByValue.js → AgentsSearchRequestSearchItemDirectionValue.js} +2 -2
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOne.d.ts +15 -0
- package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemName.js → AgentsSearchRequestSearchItemOne.js} +5 -4
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOneOperator.d.ts +10 -0
- package/{serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js → dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOneOperator.js} +2 -2
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTwo.d.ts +14 -0
- package/{serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.js → dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTwo.js} +3 -2
- package/dist/serialization/resources/agents/types/{AgentsSearchRequestSearchItemTags.d.ts → AgentsSearchRequestSearchItemZero.d.ts} +4 -4
- package/{serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.js → dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemZero.js} +3 -2
- package/dist/serialization/resources/agents/types/index.d.ts +7 -7
- package/dist/serialization/resources/agents/types/index.js +7 -7
- package/dist/serialization/resources/runs/client/index.d.ts +1 -1
- package/dist/serialization/resources/runs/client/index.js +2 -2
- package/{serialization/resources/runs/client/getRunMessages.d.ts → dist/serialization/resources/runs/client/listRunMessages.d.ts} +1 -1
- package/dist/serialization/resources/sources/client/requests/SourceCreate.d.ts +1 -1
- package/dist/serialization/resources/sources/client/requests/SourceCreate.js +1 -1
- package/dist/serialization/resources/sources/client/requests/SourceUpdate.d.ts +1 -1
- package/dist/serialization/resources/sources/client/requests/SourceUpdate.js +1 -1
- package/dist/serialization/resources/tools/client/addBaseTool.d.ts +3 -3
- package/dist/serialization/resources/tools/client/addBaseTool.js +2 -2
- package/dist/serialization/resources/tools/client/index.d.ts +0 -1
- package/dist/serialization/resources/tools/client/index.js +1 -2
- package/dist/serialization/resources/tools/client/list.d.ts +3 -3
- package/dist/serialization/resources/tools/client/list.js +2 -2
- package/dist/serialization/types/AgentState.d.ts +3 -3
- package/dist/serialization/types/AgentState.js +3 -3
- package/dist/serialization/types/{AssistantMessageOutput.d.ts → AssistantMessage.d.ts} +3 -2
- package/dist/serialization/types/{AssistantMessageOutput.js → AssistantMessage.js} +3 -2
- package/dist/serialization/types/Block.d.ts +1 -1
- package/dist/serialization/types/Block.js +1 -1
- package/dist/serialization/types/BlockUpdate.d.ts +1 -1
- package/dist/serialization/types/BlockUpdate.js +1 -1
- package/dist/serialization/types/ChatCompletionMessageToolCall.d.ts +16 -0
- package/dist/serialization/types/{DeleteAssistantFileResponse.js → ChatCompletionMessageToolCall.js} +8 -5
- package/dist/serialization/types/ContextWindowOverview.d.ts +4 -4
- package/dist/serialization/types/ContextWindowOverview.js +4 -4
- package/dist/serialization/types/CreateBlock.d.ts +1 -1
- package/dist/serialization/types/CreateBlock.js +1 -1
- package/{serialization/types/FunctionCallOutput.d.ts → dist/serialization/types/Function.d.ts} +3 -2
- package/{serialization/types/FunctionCallOutput.js → dist/serialization/types/Function.js} +5 -3
- package/{serialization/types/FunctionSchema.d.ts → dist/serialization/types/FunctionDefinition.d.ts} +4 -2
- package/{serialization/types/FunctionSchema.js → dist/serialization/types/FunctionDefinition.js} +6 -3
- package/dist/serialization/types/FunctionTool.d.ts +15 -0
- package/dist/serialization/types/{ArchivalMemorySummary.js → FunctionTool.js} +8 -4
- package/dist/serialization/types/Job.d.ts +1 -1
- package/dist/serialization/types/Job.js +1 -1
- package/dist/serialization/types/LettaMessageUnion.d.ts +4 -22
- package/dist/serialization/types/LettaMessageUnion.js +11 -16
- package/dist/serialization/types/LettaUsageStatistics.d.ts +1 -0
- package/dist/serialization/types/LettaUsageStatistics.js +1 -0
- package/{serialization/types/LettaSchemasMessageMessage.d.ts → dist/serialization/types/Message.d.ts} +5 -4
- package/dist/serialization/types/{LettaSchemasMessageMessage.js → Message.js} +5 -4
- package/dist/serialization/types/Passage.d.ts +1 -1
- package/dist/serialization/types/Passage.js +1 -1
- package/dist/serialization/types/ReasoningMessage.d.ts +1 -0
- package/dist/serialization/types/ReasoningMessage.js +1 -0
- package/dist/serialization/types/Run.d.ts +1 -1
- package/dist/serialization/types/Run.js +1 -1
- package/dist/serialization/types/Source.d.ts +1 -1
- package/dist/serialization/types/Source.js +1 -1
- package/dist/serialization/types/{SystemMessageOutput.d.ts → SystemMessage.d.ts} +3 -2
- package/{serialization/types/SystemMessageOutput.js → dist/serialization/types/SystemMessage.js} +3 -2
- package/{serialization/types/LettaSchemasToolTool.d.ts → dist/serialization/types/Tool.d.ts} +2 -2
- package/{serialization/types/LettaSchemasToolTool.js → dist/serialization/types/Tool.js} +2 -2
- package/dist/serialization/types/{FunctionCallOutput.d.ts → ToolCall.d.ts} +4 -3
- package/{serialization/types/LettaSchemasLettaMessageToolCall.js → dist/serialization/types/ToolCall.js} +2 -2
- package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
- package/dist/serialization/types/ToolCallMessage.js +1 -0
- package/dist/serialization/types/ToolCallMessageToolCall.d.ts +2 -2
- package/dist/serialization/types/ToolCallMessageToolCall.js +2 -2
- package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
- package/dist/serialization/types/ToolReturnMessage.js +1 -0
- package/dist/serialization/types/ToolType.d.ts +1 -1
- package/dist/serialization/types/ToolType.js +1 -0
- package/{serialization/types/SystemMessageOutput.d.ts → dist/serialization/types/UserMessage.d.ts} +3 -2
- package/dist/serialization/types/{UserMessageOutput.js → UserMessage.js} +3 -2
- package/dist/serialization/types/index.d.ts +10 -43
- package/dist/serialization/types/index.js +10 -43
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +744 -679
- package/serialization/resources/agents/client/createArchivalMemory.d.ts +11 -0
- package/serialization/resources/agents/client/createArchivalMemory.js +42 -0
- package/serialization/resources/agents/client/index.d.ts +3 -0
- package/serialization/resources/agents/client/index.js +4 -1
- package/serialization/resources/agents/client/listArchivalMemory.d.ts +11 -0
- package/serialization/resources/agents/client/listArchivalMemory.js +42 -0
- package/serialization/resources/{tools/client/getByName.d.ts → agents/client/listCoreMemoryBlocks.d.ts} +4 -2
- package/serialization/resources/{tools/client/getByName.js → agents/client/listCoreMemoryBlocks.js} +2 -1
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -3
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -5
- package/serialization/resources/agents/client/requests/CreateArchivalMemory.d.ts +12 -0
- package/{dist/serialization/resources/agents/resources/archivalMemory → serialization/resources/agents}/client/requests/CreateArchivalMemory.js +1 -1
- package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -1
- package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -1
- package/serialization/resources/agents/client/requests/index.d.ts +1 -0
- package/serialization/resources/agents/client/requests/index.js +3 -1
- package/serialization/resources/agents/resources/index.d.ts +0 -3
- package/serialization/resources/agents/resources/index.js +1 -4
- package/{dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts → serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesListResponse.d.ts} +2 -2
- package/{dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.js → serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesListResponse.js} +2 -2
- package/serialization/resources/agents/resources/memoryVariables/types/index.d.ts +1 -1
- package/serialization/resources/agents/resources/memoryVariables/types/index.js +1 -1
- package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
- package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +2 -2
- package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +4 -25
- package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +12 -17
- package/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +2 -2
- package/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +2 -2
- package/serialization/resources/agents/resources/sources/client/index.d.ts +1 -1
- package/serialization/resources/agents/resources/sources/client/index.js +2 -2
- package/{dist/serialization/resources/agents/resources/sources/client/get.d.ts → serialization/resources/agents/resources/sources/client/list.d.ts} +1 -1
- package/serialization/resources/agents/resources/tools/client/list.d.ts +3 -3
- package/serialization/resources/agents/resources/tools/client/list.js +2 -2
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +5 -17
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +10 -15
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirection.d.ts +16 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirection.js +47 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirectionDirection.d.ts +10 -0
- package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemDirectionDirection.js} +2 -2
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemDirectionValue.js +41 -0
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOne.d.ts +15 -0
- package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemName.js → AgentsSearchRequestSearchItemOne.js} +5 -4
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOneOperator.d.ts +10 -0
- package/{dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js → serialization/resources/agents/types/AgentsSearchRequestSearchItemOneOperator.js} +2 -2
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemTwo.d.ts +14 -0
- package/{dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemTags.js → serialization/resources/agents/types/AgentsSearchRequestSearchItemTwo.js} +3 -2
- package/serialization/resources/agents/types/{AgentsSearchRequestSearchItemTags.d.ts → AgentsSearchRequestSearchItemZero.d.ts} +4 -4
- package/{dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.js → serialization/resources/agents/types/AgentsSearchRequestSearchItemZero.js} +3 -2
- package/serialization/resources/agents/types/index.d.ts +7 -7
- package/serialization/resources/agents/types/index.js +7 -7
- package/serialization/resources/runs/client/index.d.ts +1 -1
- package/serialization/resources/runs/client/index.js +2 -2
- package/{dist/serialization/resources/runs/client/getRunMessages.d.ts → serialization/resources/runs/client/listRunMessages.d.ts} +1 -1
- package/serialization/resources/sources/client/requests/SourceCreate.d.ts +1 -1
- package/serialization/resources/sources/client/requests/SourceCreate.js +1 -1
- package/serialization/resources/sources/client/requests/SourceUpdate.d.ts +1 -1
- package/serialization/resources/sources/client/requests/SourceUpdate.js +1 -1
- package/serialization/resources/tools/client/addBaseTool.d.ts +3 -3
- package/serialization/resources/tools/client/addBaseTool.js +2 -2
- package/serialization/resources/tools/client/index.d.ts +0 -1
- package/serialization/resources/tools/client/index.js +1 -2
- package/serialization/resources/tools/client/list.d.ts +3 -3
- package/serialization/resources/tools/client/list.js +2 -2
- package/serialization/types/AgentState.d.ts +3 -3
- package/serialization/types/AgentState.js +3 -3
- package/serialization/types/{AssistantMessageOutput.d.ts → AssistantMessage.d.ts} +3 -2
- package/serialization/types/{AssistantMessageOutput.js → AssistantMessage.js} +3 -2
- package/serialization/types/Block.d.ts +1 -1
- package/serialization/types/Block.js +1 -1
- package/serialization/types/BlockUpdate.d.ts +1 -1
- package/serialization/types/BlockUpdate.js +1 -1
- package/serialization/types/ChatCompletionMessageToolCall.d.ts +16 -0
- package/{dist/serialization/types/DeleteAssistantResponse.js → serialization/types/ChatCompletionMessageToolCall.js} +8 -5
- package/serialization/types/ContextWindowOverview.d.ts +4 -4
- package/serialization/types/ContextWindowOverview.js +4 -4
- package/serialization/types/CreateBlock.d.ts +1 -1
- package/serialization/types/CreateBlock.js +1 -1
- package/{dist/serialization/types/ToolCallFunctionOutput.d.ts → serialization/types/Function.d.ts} +4 -3
- package/{dist/serialization/types/FunctionCallOutput.js → serialization/types/Function.js} +5 -3
- package/{dist/serialization/types/FunctionSchema.d.ts → serialization/types/FunctionDefinition.d.ts} +4 -2
- package/{dist/serialization/types/FunctionSchema.js → serialization/types/FunctionDefinition.js} +6 -3
- package/serialization/types/FunctionTool.d.ts +15 -0
- package/{dist/serialization/types/CreateAssistantFileRequest.js → serialization/types/FunctionTool.js} +8 -4
- package/serialization/types/Job.d.ts +1 -1
- package/serialization/types/Job.js +1 -1
- package/serialization/types/LettaMessageUnion.d.ts +4 -22
- package/serialization/types/LettaMessageUnion.js +11 -16
- package/serialization/types/LettaUsageStatistics.d.ts +1 -0
- package/serialization/types/LettaUsageStatistics.js +1 -0
- package/{dist/serialization/types/LettaSchemasMessageMessage.d.ts → serialization/types/Message.d.ts} +5 -4
- package/serialization/types/{LettaSchemasMessageMessage.js → Message.js} +5 -4
- package/serialization/types/Passage.d.ts +1 -1
- package/serialization/types/Passage.js +1 -1
- package/serialization/types/ReasoningMessage.d.ts +1 -0
- package/serialization/types/ReasoningMessage.js +1 -0
- package/serialization/types/Run.d.ts +1 -1
- package/serialization/types/Run.js +1 -1
- package/serialization/types/Source.d.ts +1 -1
- package/serialization/types/Source.js +1 -1
- package/{dist/serialization/types/UserMessageOutput.d.ts → serialization/types/SystemMessage.d.ts} +3 -2
- package/serialization/types/{UserMessageOutput.js → SystemMessage.js} +3 -2
- package/{dist/serialization/types/LettaSchemasToolTool.d.ts → serialization/types/Tool.d.ts} +2 -2
- package/{dist/serialization/types/LettaSchemasToolTool.js → serialization/types/Tool.js} +2 -2
- package/serialization/types/{ToolCallFunctionOutput.d.ts → ToolCall.d.ts} +3 -2
- package/{dist/serialization/types/LettaSchemasLettaMessageToolCall.js → serialization/types/ToolCall.js} +2 -2
- package/serialization/types/ToolCallMessage.d.ts +1 -0
- package/serialization/types/ToolCallMessage.js +1 -0
- package/serialization/types/ToolCallMessageToolCall.d.ts +2 -2
- package/serialization/types/ToolCallMessageToolCall.js +2 -2
- package/serialization/types/ToolReturnMessage.d.ts +1 -0
- package/serialization/types/ToolReturnMessage.js +1 -0
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +1 -0
- package/serialization/types/{UserMessageOutput.d.ts → UserMessage.d.ts} +3 -2
- package/{dist/serialization/types/SystemMessageOutput.js → serialization/types/UserMessage.js} +3 -2
- package/serialization/types/index.d.ts +10 -43
- package/serialization/types/index.js +10 -43
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -2
- package/api/resources/agents/resources/archivalMemory/client/requests/index.js +0 -2
- package/api/resources/agents/resources/recallMemory/client/Client.d.ts +0 -44
- package/api/resources/agents/resources/recallMemory/client/Client.js +0 -134
- package/api/resources/agents/resources/recallMemory/client/index.d.ts +0 -1
- package/api/resources/agents/resources/recallMemory/client/index.js +0 -2
- package/api/resources/agents/resources/recallMemory/index.d.ts +0 -1
- package/api/resources/agents/resources/recallMemory/index.js +0 -17
- package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +0 -8
- package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +0 -8
- package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +0 -8
- package/api/resources/blocks/client/requests/LinkAgentMemoryBlockRequest.d.ts +0 -15
- package/api/resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.d.ts +0 -15
- package/api/resources/sources/client/requests/SourcesAttachRequest.d.ts +0 -15
- package/api/resources/sources/client/requests/SourcesDetachRequest.d.ts +0 -15
- package/api/types/ArchivalMemorySummary.d.ts +0 -7
- package/api/types/AssistantFile.d.ts +0 -12
- package/api/types/AssistantMessageInput.d.ts +0 -10
- package/api/types/ChatCompletionRequest.d.ts +0 -29
- package/api/types/ChatCompletionRequestFunctionCall.d.ts +0 -5
- package/api/types/ChatCompletionRequestMessagesItem.d.ts +0 -5
- package/api/types/ChatCompletionRequestStop.d.ts +0 -4
- package/api/types/ChatCompletionRequestToolChoice.d.ts +0 -5
- package/api/types/ChatCompletionResponse.d.ts +0 -16
- package/api/types/Choice.d.ts +0 -11
- package/api/types/CreateAssistantFileRequest.d.ts +0 -7
- package/api/types/CreateAssistantRequest.d.ts +0 -21
- package/api/types/DeleteAssistantFileResponse.d.ts +0 -10
- package/api/types/DeleteAssistantResponse.d.ts +0 -10
- package/api/types/FunctionCallInput.d.ts +0 -6
- package/api/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +0 -8
- package/api/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +0 -9
- package/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +0 -10
- package/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +0 -5
- package/api/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +0 -9
- package/api/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +0 -5
- package/api/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +0 -9
- package/api/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +0 -5
- package/api/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +0 -11
- package/api/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +0 -5
- package/api/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +0 -11
- package/api/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +0 -5
- package/api/types/LettaSchemasToolTool.js +0 -5
- package/api/types/LogProbToken.d.ts +0 -8
- package/api/types/LogProbToken.js +0 -5
- package/api/types/MessageContentLogProb.d.ts +0 -10
- package/api/types/MessageContentLogProb.js +0 -5
- package/api/types/OpenAiAssistant.d.ts +0 -27
- package/api/types/OpenAiAssistant.js +0 -5
- package/api/types/RecallMemorySummary.d.ts +0 -7
- package/api/types/RecallMemorySummary.js +0 -5
- package/api/types/ResponseFormat.d.ts +0 -6
- package/api/types/ResponseFormat.js +0 -5
- package/api/types/SystemMessageInput.d.ts +0 -8
- package/api/types/SystemMessageInput.js +0 -5
- package/api/types/SystemMessageOutput.js +0 -5
- package/api/types/ToolCallFunctionOutput.d.ts +0 -9
- package/api/types/ToolCallFunctionOutput.js +0 -5
- package/api/types/ToolFunctionChoice.d.ts +0 -8
- package/api/types/ToolFunctionChoice.js +0 -5
- package/api/types/ToolInput.d.ts +0 -8
- package/api/types/ToolInput.js +0 -5
- package/api/types/ToolMessage.d.ts +0 -8
- package/api/types/ToolMessage.js +0 -5
- package/api/types/UserMessageInput.d.ts +0 -9
- package/api/types/UserMessageInput.js +0 -5
- package/api/types/UserMessageInputContent.d.ts +0 -4
- package/api/types/UserMessageInputContent.js +0 -5
- package/api/types/UserMessageOutput.js +0 -5
- package/dist/api/resources/agents/resources/archivalMemory/client/requests/ArchivalMemoryListRequest.js +0 -5
- package/dist/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -2
- package/dist/api/resources/agents/resources/archivalMemory/client/requests/index.js +0 -2
- package/dist/api/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.js +0 -5
- package/dist/api/resources/agents/resources/recallMemory/client/Client.d.ts +0 -44
- package/dist/api/resources/agents/resources/recallMemory/client/Client.js +0 -134
- package/dist/api/resources/agents/resources/recallMemory/client/index.d.ts +0 -1
- package/dist/api/resources/agents/resources/recallMemory/client/index.js +0 -2
- package/dist/api/resources/agents/resources/recallMemory/index.d.ts +0 -1
- package/dist/api/resources/agents/resources/recallMemory/index.js +0 -17
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemName.js +0 -5
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +0 -8
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +0 -5
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +0 -8
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +0 -8
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemTags.js +0 -5
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemVersion.js +0 -5
- package/dist/api/resources/blocks/client/requests/LinkAgentMemoryBlockRequest.d.ts +0 -15
- package/dist/api/resources/blocks/client/requests/LinkAgentMemoryBlockRequest.js +0 -5
- package/dist/api/resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.d.ts +0 -15
- package/dist/api/resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.js +0 -5
- package/dist/api/resources/runs/client/requests/GetRunMessagesRequest.js +0 -5
- package/dist/api/resources/sources/client/requests/SourcesAttachRequest.d.ts +0 -15
- package/dist/api/resources/sources/client/requests/SourcesAttachRequest.js +0 -5
- package/dist/api/resources/sources/client/requests/SourcesDetachRequest.d.ts +0 -15
- package/dist/api/resources/sources/client/requests/SourcesDetachRequest.js +0 -5
- package/dist/api/types/ArchivalMemorySummary.d.ts +0 -7
- package/dist/api/types/ArchivalMemorySummary.js +0 -5
- package/dist/api/types/AssistantFile.d.ts +0 -12
- package/dist/api/types/AssistantFile.js +0 -5
- package/dist/api/types/AssistantMessageInput.d.ts +0 -10
- package/dist/api/types/AssistantMessageInput.js +0 -5
- package/dist/api/types/AssistantMessageOutput.js +0 -5
- package/dist/api/types/ChatCompletionRequest.d.ts +0 -29
- package/dist/api/types/ChatCompletionRequest.js +0 -5
- package/dist/api/types/ChatCompletionRequestFunctionCall.d.ts +0 -5
- package/dist/api/types/ChatCompletionRequestFunctionCall.js +0 -5
- package/dist/api/types/ChatCompletionRequestMessagesItem.d.ts +0 -5
- package/dist/api/types/ChatCompletionRequestMessagesItem.js +0 -5
- package/dist/api/types/ChatCompletionRequestStop.d.ts +0 -4
- package/dist/api/types/ChatCompletionRequestStop.js +0 -5
- package/dist/api/types/ChatCompletionRequestToolChoice.d.ts +0 -5
- package/dist/api/types/ChatCompletionRequestToolChoice.js +0 -5
- package/dist/api/types/ChatCompletionResponse.d.ts +0 -16
- package/dist/api/types/ChatCompletionResponse.js +0 -5
- package/dist/api/types/Choice.d.ts +0 -11
- package/dist/api/types/Choice.js +0 -5
- package/dist/api/types/CreateAssistantFileRequest.d.ts +0 -7
- package/dist/api/types/CreateAssistantFileRequest.js +0 -5
- package/dist/api/types/CreateAssistantRequest.d.ts +0 -21
- package/dist/api/types/CreateAssistantRequest.js +0 -5
- package/dist/api/types/DeleteAssistantFileResponse.d.ts +0 -10
- package/dist/api/types/DeleteAssistantFileResponse.js +0 -5
- package/dist/api/types/DeleteAssistantResponse.d.ts +0 -10
- package/dist/api/types/DeleteAssistantResponse.js +0 -5
- package/dist/api/types/FunctionCallInput.d.ts +0 -6
- package/dist/api/types/FunctionCallInput.js +0 -5
- package/dist/api/types/FunctionCallOutput.d.ts +0 -7
- package/dist/api/types/FunctionCallOutput.js +0 -5
- package/dist/api/types/FunctionSchema.js +0 -5
- package/dist/api/types/LettaSchemasLettaMessageToolCall.js +0 -5
- package/dist/api/types/LettaSchemasMessageMessage.js +0 -5
- package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +0 -8
- package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestTool.js +0 -5
- package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +0 -9
- package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +0 -5
- package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts +0 -7
- package/dist/api/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +0 -5
- package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +0 -10
- package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +0 -5
- package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +0 -9
- package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +0 -5
- package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +0 -9
- package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +0 -5
- package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +0 -11
- package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +0 -5
- package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +0 -11
- package/dist/api/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +0 -5
- package/dist/api/types/LettaSchemasToolTool.js +0 -5
- package/dist/api/types/LogProbToken.d.ts +0 -8
- package/dist/api/types/LogProbToken.js +0 -5
- package/dist/api/types/MessageContentLogProb.d.ts +0 -10
- package/dist/api/types/MessageContentLogProb.js +0 -5
- package/dist/api/types/OpenAiAssistant.d.ts +0 -27
- package/dist/api/types/OpenAiAssistant.js +0 -5
- package/dist/api/types/RecallMemorySummary.d.ts +0 -7
- package/dist/api/types/RecallMemorySummary.js +0 -5
- package/dist/api/types/ResponseFormat.d.ts +0 -6
- package/dist/api/types/ResponseFormat.js +0 -5
- package/dist/api/types/SystemMessageInput.d.ts +0 -8
- package/dist/api/types/SystemMessageInput.js +0 -5
- package/dist/api/types/SystemMessageOutput.js +0 -5
- package/dist/api/types/ToolCallFunctionOutput.d.ts +0 -9
- package/dist/api/types/ToolCallFunctionOutput.js +0 -5
- package/dist/api/types/ToolFunctionChoice.d.ts +0 -8
- package/dist/api/types/ToolFunctionChoice.js +0 -5
- package/dist/api/types/ToolInput.d.ts +0 -8
- package/dist/api/types/ToolInput.js +0 -5
- package/dist/api/types/ToolMessage.d.ts +0 -8
- package/dist/api/types/ToolMessage.js +0 -5
- package/dist/api/types/UserMessageInput.d.ts +0 -9
- package/dist/api/types/UserMessageInput.js +0 -5
- package/dist/api/types/UserMessageInputContent.d.ts +0 -4
- package/dist/api/types/UserMessageInputContent.js +0 -5
- package/dist/api/types/UserMessageOutput.js +0 -5
- package/dist/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +0 -11
- package/dist/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +0 -3
- package/dist/serialization/resources/agents/resources/archivalMemory/client/index.js +0 -42
- package/dist/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +0 -11
- package/dist/serialization/resources/agents/resources/archivalMemory/client/list.js +0 -42
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +0 -12
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +0 -5
- package/dist/serialization/resources/agents/resources/archivalMemory/index.d.ts +0 -1
- package/dist/serialization/resources/agents/resources/archivalMemory/index.js +0 -17
- package/dist/serialization/resources/agents/resources/coreMemory/client/getBlocks.d.ts +0 -11
- package/dist/serialization/resources/agents/resources/coreMemory/client/getBlocks.js +0 -42
- package/dist/serialization/resources/agents/resources/coreMemory/client/index.d.ts +0 -2
- package/dist/serialization/resources/agents/resources/coreMemory/client/index.js +0 -38
- package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +0 -11
- package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.js +0 -42
- package/dist/serialization/resources/agents/resources/coreMemory/index.d.ts +0 -1
- package/dist/serialization/resources/agents/resources/coreMemory/index.js +0 -17
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +0 -14
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +0 -10
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +0 -15
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +0 -10
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +0 -10
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts +0 -12
- package/dist/serialization/types/ArchivalMemorySummary.d.ts +0 -12
- package/dist/serialization/types/AssistantFile.d.ts +0 -15
- package/dist/serialization/types/AssistantFile.js +0 -46
- package/dist/serialization/types/AssistantMessageInput.d.ts +0 -16
- package/dist/serialization/types/AssistantMessageInput.js +0 -47
- package/dist/serialization/types/ChatCompletionRequest.d.ts +0 -38
- package/dist/serialization/types/ChatCompletionRequest.js +0 -69
- package/dist/serialization/types/ChatCompletionRequestFunctionCall.d.ts +0 -11
- package/dist/serialization/types/ChatCompletionRequestFunctionCall.js +0 -46
- package/dist/serialization/types/ChatCompletionRequestMessagesItem.d.ts +0 -14
- package/dist/serialization/types/ChatCompletionRequestMessagesItem.js +0 -45
- package/dist/serialization/types/ChatCompletionRequestStop.d.ts +0 -10
- package/dist/serialization/types/ChatCompletionRequestStop.js +0 -44
- package/dist/serialization/types/ChatCompletionRequestToolChoice.d.ts +0 -11
- package/dist/serialization/types/ChatCompletionRequestToolChoice.js +0 -47
- package/dist/serialization/types/ChatCompletionResponse.d.ts +0 -20
- package/dist/serialization/types/ChatCompletionResponse.js +0 -51
- package/dist/serialization/types/Choice.d.ts +0 -18
- package/dist/serialization/types/Choice.js +0 -51
- package/dist/serialization/types/CreateAssistantFileRequest.d.ts +0 -12
- package/dist/serialization/types/CreateAssistantRequest.d.ts +0 -19
- package/dist/serialization/types/CreateAssistantRequest.js +0 -50
- package/dist/serialization/types/DeleteAssistantFileResponse.d.ts +0 -14
- package/dist/serialization/types/DeleteAssistantResponse.d.ts +0 -14
- package/dist/serialization/types/FunctionCallInput.d.ts +0 -12
- package/dist/serialization/types/FunctionCallInput.js +0 -43
- package/dist/serialization/types/LettaSchemasLettaMessageToolCall.d.ts +0 -14
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +0 -14
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.js +0 -45
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +0 -15
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +0 -46
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts +0 -13
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +0 -44
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +0 -17
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +0 -48
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +0 -15
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +0 -46
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +0 -13
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +0 -44
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +0 -15
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +0 -46
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +0 -15
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +0 -46
- package/dist/serialization/types/LogProbToken.d.ts +0 -14
- package/dist/serialization/types/LogProbToken.js +0 -45
- package/dist/serialization/types/MessageContentLogProb.d.ts +0 -16
- package/dist/serialization/types/MessageContentLogProb.js +0 -47
- package/dist/serialization/types/OpenAiAssistant.d.ts +0 -21
- package/dist/serialization/types/OpenAiAssistant.js +0 -52
- package/dist/serialization/types/RecallMemorySummary.d.ts +0 -12
- package/dist/serialization/types/RecallMemorySummary.js +0 -43
- package/dist/serialization/types/ResponseFormat.d.ts +0 -12
- package/dist/serialization/types/ResponseFormat.js +0 -43
- package/dist/serialization/types/SystemMessageInput.d.ts +0 -14
- package/dist/serialization/types/SystemMessageInput.js +0 -45
- package/dist/serialization/types/ToolCallFunctionOutput.js +0 -44
- package/dist/serialization/types/ToolFunctionChoice.d.ts +0 -14
- package/dist/serialization/types/ToolFunctionChoice.js +0 -45
- package/dist/serialization/types/ToolInput.d.ts +0 -14
- package/dist/serialization/types/ToolInput.js +0 -45
- package/dist/serialization/types/ToolMessage.d.ts +0 -14
- package/dist/serialization/types/ToolMessage.js +0 -45
- package/dist/serialization/types/UserMessageInput.d.ts +0 -15
- package/dist/serialization/types/UserMessageInput.js +0 -46
- package/dist/serialization/types/UserMessageInputContent.d.ts +0 -10
- package/dist/serialization/types/UserMessageInputContent.js +0 -44
- package/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +0 -11
- package/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +0 -3
- package/serialization/resources/agents/resources/archivalMemory/client/index.js +0 -42
- package/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +0 -11
- package/serialization/resources/agents/resources/archivalMemory/client/list.js +0 -42
- package/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +0 -12
- package/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -1
- package/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +0 -5
- package/serialization/resources/agents/resources/archivalMemory/index.d.ts +0 -1
- package/serialization/resources/agents/resources/archivalMemory/index.js +0 -17
- package/serialization/resources/agents/resources/coreMemory/client/getBlocks.d.ts +0 -11
- package/serialization/resources/agents/resources/coreMemory/client/getBlocks.js +0 -42
- package/serialization/resources/agents/resources/coreMemory/client/index.d.ts +0 -2
- package/serialization/resources/agents/resources/coreMemory/client/index.js +0 -38
- package/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +0 -11
- package/serialization/resources/agents/resources/coreMemory/client/listInContext.js +0 -42
- package/serialization/resources/agents/resources/coreMemory/index.d.ts +0 -1
- package/serialization/resources/agents/resources/coreMemory/index.js +0 -17
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +0 -14
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +0 -10
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +0 -15
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +0 -46
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +0 -10
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +0 -10
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js +0 -41
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts +0 -12
- package/serialization/types/ArchivalMemorySummary.d.ts +0 -12
- package/serialization/types/ArchivalMemorySummary.js +0 -43
- package/serialization/types/AssistantFile.d.ts +0 -15
- package/serialization/types/AssistantFile.js +0 -46
- package/serialization/types/AssistantMessageInput.d.ts +0 -16
- package/serialization/types/AssistantMessageInput.js +0 -47
- package/serialization/types/ChatCompletionRequest.d.ts +0 -38
- package/serialization/types/ChatCompletionRequest.js +0 -69
- package/serialization/types/ChatCompletionRequestFunctionCall.d.ts +0 -11
- package/serialization/types/ChatCompletionRequestFunctionCall.js +0 -46
- package/serialization/types/ChatCompletionRequestMessagesItem.d.ts +0 -14
- package/serialization/types/ChatCompletionRequestMessagesItem.js +0 -45
- package/serialization/types/ChatCompletionRequestStop.d.ts +0 -10
- package/serialization/types/ChatCompletionRequestStop.js +0 -44
- package/serialization/types/ChatCompletionRequestToolChoice.d.ts +0 -11
- package/serialization/types/ChatCompletionRequestToolChoice.js +0 -47
- package/serialization/types/ChatCompletionResponse.d.ts +0 -20
- package/serialization/types/ChatCompletionResponse.js +0 -51
- package/serialization/types/Choice.d.ts +0 -18
- package/serialization/types/Choice.js +0 -51
- package/serialization/types/CreateAssistantFileRequest.d.ts +0 -12
- package/serialization/types/CreateAssistantFileRequest.js +0 -43
- package/serialization/types/CreateAssistantRequest.d.ts +0 -19
- package/serialization/types/CreateAssistantRequest.js +0 -50
- package/serialization/types/DeleteAssistantFileResponse.d.ts +0 -14
- package/serialization/types/DeleteAssistantFileResponse.js +0 -45
- package/serialization/types/DeleteAssistantResponse.d.ts +0 -14
- package/serialization/types/DeleteAssistantResponse.js +0 -45
- package/serialization/types/FunctionCallInput.d.ts +0 -12
- package/serialization/types/FunctionCallInput.js +0 -43
- package/serialization/types/LettaSchemasLettaMessageToolCall.d.ts +0 -14
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +0 -14
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.js +0 -45
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +0 -15
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +0 -46
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts +0 -13
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +0 -44
- package/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +0 -17
- package/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +0 -48
- package/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +0 -15
- package/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +0 -46
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +0 -13
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +0 -44
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +0 -15
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +0 -46
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +0 -15
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +0 -46
- package/serialization/types/LogProbToken.d.ts +0 -14
- package/serialization/types/LogProbToken.js +0 -45
- package/serialization/types/MessageContentLogProb.d.ts +0 -16
- package/serialization/types/MessageContentLogProb.js +0 -47
- package/serialization/types/OpenAiAssistant.d.ts +0 -21
- package/serialization/types/OpenAiAssistant.js +0 -52
- package/serialization/types/RecallMemorySummary.d.ts +0 -12
- package/serialization/types/RecallMemorySummary.js +0 -43
- package/serialization/types/ResponseFormat.d.ts +0 -12
- package/serialization/types/ResponseFormat.js +0 -43
- package/serialization/types/SystemMessageInput.d.ts +0 -14
- package/serialization/types/SystemMessageInput.js +0 -45
- package/serialization/types/ToolCallFunctionOutput.js +0 -44
- package/serialization/types/ToolFunctionChoice.d.ts +0 -14
- package/serialization/types/ToolFunctionChoice.js +0 -45
- package/serialization/types/ToolInput.d.ts +0 -14
- package/serialization/types/ToolInput.js +0 -45
- package/serialization/types/ToolMessage.d.ts +0 -14
- package/serialization/types/ToolMessage.js +0 -45
- package/serialization/types/UserMessageInput.d.ts +0 -15
- package/serialization/types/UserMessageInput.js +0 -46
- package/serialization/types/UserMessageInputContent.d.ts +0 -10
- package/serialization/types/UserMessageInputContent.js +0 -44
- /package/api/resources/agents/{resources/archivalMemory/client → client}/requests/CreateArchivalMemory.d.ts +0 -0
- /package/api/resources/agents/{resources/archivalMemory/client → client}/requests/CreateArchivalMemory.js +0 -0
- /package/api/resources/agents/{resources/archivalMemory/client/requests/ArchivalMemoryListRequest.js → client/requests/ListArchivalMemoryRequest.js} +0 -0
- /package/api/resources/agents/resources/memoryVariables/types/{MemoryVariablesGetResponse.js → MemoryVariablesListResponse.js} +0 -0
- /package/api/resources/agents/types/{AgentsSearchRequestSearchItemName.js → AgentsSearchRequestSearchItemDirection.js} +0 -0
- /package/api/resources/agents/types/{AgentsSearchRequestSearchItemOrderBy.js → AgentsSearchRequestSearchItemOne.js} +0 -0
- /package/api/resources/agents/types/{AgentsSearchRequestSearchItemTags.js → AgentsSearchRequestSearchItemTwo.js} +0 -0
- /package/api/resources/agents/types/{AgentsSearchRequestSearchItemVersion.js → AgentsSearchRequestSearchItemZero.js} +0 -0
- /package/api/resources/{blocks/client/requests/LinkAgentMemoryBlockRequest.js → runs/client/requests/ListRunMessagesRequest.js} +0 -0
- /package/api/{resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.js → types/AssistantMessage.js} +0 -0
- /package/api/{resources/runs/client/requests/GetRunMessagesRequest.js → types/ChatCompletionMessageToolCall.js} +0 -0
- /package/api/{resources/sources/client/requests/SourcesAttachRequest.js → types/Function.js} +0 -0
- /package/api/{resources/sources/client/requests/SourcesDetachRequest.js → types/FunctionDefinition.js} +0 -0
- /package/api/types/{ArchivalMemorySummary.js → FunctionTool.js} +0 -0
- /package/api/types/{AssistantFile.js → Message.js} +0 -0
- /package/api/types/{AssistantMessageInput.js → SystemMessage.js} +0 -0
- /package/api/types/{AssistantMessageOutput.js → Tool.js} +0 -0
- /package/api/types/{ChatCompletionRequest.js → ToolCall.js} +0 -0
- /package/api/types/{ChatCompletionRequestFunctionCall.js → UserMessage.js} +0 -0
- /package/dist/api/resources/agents/{resources/archivalMemory/client → client}/requests/CreateArchivalMemory.d.ts +0 -0
- /package/dist/api/resources/agents/{resources/archivalMemory/client → client}/requests/CreateArchivalMemory.js +0 -0
- /package/{api/types/ChatCompletionRequestMessagesItem.js → dist/api/resources/agents/client/requests/ListArchivalMemoryRequest.js} +0 -0
- /package/{api/types/ChatCompletionRequestStop.js → dist/api/resources/agents/resources/memoryVariables/types/MemoryVariablesListResponse.js} +0 -0
- /package/{api/types/ChatCompletionRequestToolChoice.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemDirection.js} +0 -0
- /package/{api/types/ChatCompletionResponse.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemOne.js} +0 -0
- /package/{api/types/Choice.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemTwo.js} +0 -0
- /package/{api/types/CreateAssistantFileRequest.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemZero.js} +0 -0
- /package/{api/types/CreateAssistantRequest.js → dist/api/resources/runs/client/requests/ListRunMessagesRequest.js} +0 -0
- /package/{api/types/DeleteAssistantFileResponse.js → dist/api/types/AssistantMessage.js} +0 -0
- /package/{api/types/DeleteAssistantResponse.js → dist/api/types/ChatCompletionMessageToolCall.js} +0 -0
- /package/{api/types/FunctionCallInput.js → dist/api/types/Function.js} +0 -0
- /package/{api/types/FunctionCallOutput.js → dist/api/types/FunctionDefinition.js} +0 -0
- /package/{api/types/FunctionSchema.js → dist/api/types/FunctionTool.js} +0 -0
- /package/{api/types/LettaSchemasLettaMessageToolCall.js → dist/api/types/Message.js} +0 -0
- /package/{api/types/LettaSchemasMessageMessage.js → dist/api/types/SystemMessage.js} +0 -0
- /package/{api/types/LettaSchemasOpenaiChatCompletionRequestTool.js → dist/api/types/Tool.js} +0 -0
- /package/{api/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js → dist/api/types/ToolCall.js} +0 -0
- /package/{api/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js → dist/api/types/UserMessage.js} +0 -0
- /package/dist/serialization/resources/agents/resources/sources/client/{get.js → list.js} +0 -0
- /package/dist/serialization/resources/runs/client/{getRunMessages.js → listRunMessages.js} +0 -0
- /package/serialization/resources/agents/resources/sources/client/{get.js → list.js} +0 -0
- /package/serialization/resources/runs/client/{getRunMessages.js → listRunMessages.js} +0 -0
package/api/types/Choice.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Letta from "../index";
|
|
5
|
-
export interface Choice {
|
|
6
|
-
finishReason: string;
|
|
7
|
-
index: number;
|
|
8
|
-
message: Letta.LettaSchemasOpenaiChatCompletionResponseMessage;
|
|
9
|
-
logprobs?: Record<string, Letta.MessageContentLogProb[] | undefined>;
|
|
10
|
-
seed?: number;
|
|
11
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface CreateAssistantRequest {
|
|
5
|
-
/** The model to use for the assistant. */
|
|
6
|
-
model: string;
|
|
7
|
-
/** The name of the assistant. */
|
|
8
|
-
name: string;
|
|
9
|
-
/** The description of the assistant. */
|
|
10
|
-
description?: string;
|
|
11
|
-
/** The instructions for the assistant. */
|
|
12
|
-
instructions: string;
|
|
13
|
-
/** The tools used by the assistant. */
|
|
14
|
-
tools?: string[];
|
|
15
|
-
/** List of file IDs associated with the assistant. */
|
|
16
|
-
fileIds?: string[];
|
|
17
|
-
/** Metadata associated with the assistant. */
|
|
18
|
-
metadata?: Record<string, unknown>;
|
|
19
|
-
/** The model to use for the assistant. */
|
|
20
|
-
embeddingModel?: string;
|
|
21
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface DeleteAssistantFileResponse {
|
|
5
|
-
/** The unique identifier of the file. */
|
|
6
|
-
id: string;
|
|
7
|
-
object?: string;
|
|
8
|
-
/** Whether the file was deleted. */
|
|
9
|
-
deleted: boolean;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface DeleteAssistantResponse {
|
|
5
|
-
/** The unique identifier of the agent. */
|
|
6
|
-
id: string;
|
|
7
|
-
object?: string;
|
|
8
|
-
/** Whether the agent was deleted. */
|
|
9
|
-
deleted: boolean;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Letta from "../index";
|
|
5
|
-
export interface LettaSchemasOpenaiChatCompletionRequestToolCall {
|
|
6
|
-
id: string;
|
|
7
|
-
type?: "function";
|
|
8
|
-
function: Letta.LettaSchemasOpenaiChatCompletionRequestToolCallFunction;
|
|
9
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Letta from "../index";
|
|
5
|
-
export interface LettaSchemasOpenaiChatCompletionResponseMessage {
|
|
6
|
-
content?: string;
|
|
7
|
-
toolCalls?: Letta.LettaSchemasOpenaiChatCompletionResponseToolCall[];
|
|
8
|
-
role: string;
|
|
9
|
-
functionCall?: Letta.FunctionCallOutput;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface LettaSchemasOpenaiChatCompletionsToolCallFunction {
|
|
5
|
-
/** The name of the function to call */
|
|
6
|
-
name: string;
|
|
7
|
-
/** The arguments to pass to the function (JSON dump) */
|
|
8
|
-
arguments: string;
|
|
9
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Letta from "../index";
|
|
5
|
-
export interface LettaSchemasOpenaiChatCompletionsToolCallInput {
|
|
6
|
-
/** The ID of the tool call */
|
|
7
|
-
id: string;
|
|
8
|
-
type?: string;
|
|
9
|
-
/** The arguments and name for the function */
|
|
10
|
-
function: Letta.LettaSchemasOpenaiChatCompletionsToolCallFunction;
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Letta from "../index";
|
|
5
|
-
export interface LettaSchemasOpenaiChatCompletionsToolCallOutput {
|
|
6
|
-
/** The ID of the tool call */
|
|
7
|
-
id: string;
|
|
8
|
-
type?: string;
|
|
9
|
-
/** The arguments and name for the function */
|
|
10
|
-
function: Letta.ToolCallFunctionOutput;
|
|
11
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Represents an OpenAI assistant (equivalent to Letta preset)
|
|
6
|
-
*/
|
|
7
|
-
export interface OpenAiAssistant {
|
|
8
|
-
/** The unique identifier of the assistant. */
|
|
9
|
-
id: string;
|
|
10
|
-
/** The name of the assistant. */
|
|
11
|
-
name: string;
|
|
12
|
-
object?: string;
|
|
13
|
-
/** The description of the assistant. */
|
|
14
|
-
description?: string;
|
|
15
|
-
/** The unix timestamp of when the assistant was created. */
|
|
16
|
-
createdAt: number;
|
|
17
|
-
/** The model used by the assistant. */
|
|
18
|
-
model: string;
|
|
19
|
-
/** The instructions for the assistant. */
|
|
20
|
-
instructions: string;
|
|
21
|
-
/** The tools used by the assistant. */
|
|
22
|
-
tools?: string[];
|
|
23
|
-
/** List of file IDs associated with the assistant. */
|
|
24
|
-
fileIds?: string[];
|
|
25
|
-
/** Metadata associated with the assistant. */
|
|
26
|
-
metadata?: Record<string, unknown>;
|
|
27
|
-
}
|
package/api/types/ToolInput.d.ts
DELETED
package/api/types/ToolInput.js
DELETED
package/api/types/ToolMessage.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
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 RecallMemory {
|
|
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 RecallMemory {
|
|
27
|
-
protected readonly _options: RecallMemory.Options;
|
|
28
|
-
constructor(_options?: RecallMemory.Options);
|
|
29
|
-
/**
|
|
30
|
-
* Retrieve the summary of the recall memory of a specific agent.
|
|
31
|
-
*
|
|
32
|
-
* @param {string} agentId
|
|
33
|
-
* @param {RecallMemory.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
-
*
|
|
35
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* await client.agents.recallMemory.getSummary("agent_id")
|
|
39
|
-
*/
|
|
40
|
-
getSummary(agentId: string, requestOptions?: RecallMemory.RequestOptions): Promise<Letta.RecallMemorySummary>;
|
|
41
|
-
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
42
|
-
Authorization: string;
|
|
43
|
-
}>;
|
|
44
|
-
}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
-
};
|
|
50
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
-
exports.RecallMemory = void 0;
|
|
52
|
-
const environments = __importStar(require("../../../../../../environments"));
|
|
53
|
-
const core = __importStar(require("../../../../../../core"));
|
|
54
|
-
const Letta = __importStar(require("../../../../../index"));
|
|
55
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
56
|
-
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
57
|
-
const errors = __importStar(require("../../../../../../errors/index"));
|
|
58
|
-
class RecallMemory {
|
|
59
|
-
constructor(_options = {}) {
|
|
60
|
-
this._options = _options;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Retrieve the summary of the recall memory of a specific agent.
|
|
64
|
-
*
|
|
65
|
-
* @param {string} agentId
|
|
66
|
-
* @param {RecallMemory.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
-
*
|
|
68
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* await client.agents.recallMemory.getSummary("agent_id")
|
|
72
|
-
*/
|
|
73
|
-
getSummary(agentId, requestOptions) {
|
|
74
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
var _a, _b, _c;
|
|
76
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
|
-
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)}/memory/recall`),
|
|
78
|
-
method: "GET",
|
|
79
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
|
|
80
|
-
contentType: "application/json",
|
|
81
|
-
requestType: "json",
|
|
82
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
83
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
85
|
-
});
|
|
86
|
-
if (_response.ok) {
|
|
87
|
-
return serializers.RecallMemorySummary.parseOrThrow(_response.body, {
|
|
88
|
-
unrecognizedObjectKeys: "passthrough",
|
|
89
|
-
allowUnrecognizedUnionMembers: true,
|
|
90
|
-
allowUnrecognizedEnumValues: true,
|
|
91
|
-
skipValidation: true,
|
|
92
|
-
breadcrumbsPrefix: ["response"],
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
if (_response.error.reason === "status-code") {
|
|
96
|
-
switch (_response.error.statusCode) {
|
|
97
|
-
case 422:
|
|
98
|
-
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
99
|
-
unrecognizedObjectKeys: "passthrough",
|
|
100
|
-
allowUnrecognizedUnionMembers: true,
|
|
101
|
-
allowUnrecognizedEnumValues: true,
|
|
102
|
-
skipValidation: true,
|
|
103
|
-
breadcrumbsPrefix: ["response"],
|
|
104
|
-
}));
|
|
105
|
-
default:
|
|
106
|
-
throw new errors.LettaError({
|
|
107
|
-
statusCode: _response.error.statusCode,
|
|
108
|
-
body: _response.error.body,
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
switch (_response.error.reason) {
|
|
113
|
-
case "non-json":
|
|
114
|
-
throw new errors.LettaError({
|
|
115
|
-
statusCode: _response.error.statusCode,
|
|
116
|
-
body: _response.error.rawBody,
|
|
117
|
-
});
|
|
118
|
-
case "timeout":
|
|
119
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/agents/{agent_id}/memory/recall.");
|
|
120
|
-
case "unknown":
|
|
121
|
-
throw new errors.LettaError({
|
|
122
|
-
message: _response.error.errorMessage,
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
_getCustomAuthorizationHeaders() {
|
|
128
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
-
const tokenValue = yield core.Supplier.get(this._options.token);
|
|
130
|
-
return { Authorization: `Bearer ${tokenValue}` };
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
exports.RecallMemory = RecallMemory;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./client";
|