@letta-ai/letta-client 0.1.176 → 0.1.178
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 +9 -3
- package/api/resources/agents/client/Client.js +31 -16
- package/api/resources/agents/client/requests/AgentsExportFileRequest.d.ts +14 -0
- package/api/resources/agents/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/files/client/Client.js +3 -3
- package/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +3 -3
- package/api/resources/agents/resources/messages/client/Client.js +14 -18
- package/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +11 -0
- package/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +2 -0
- package/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +2 -0
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/embeddingModels/client/Client.js +1 -1
- package/api/resources/folders/client/Client.js +9 -9
- package/api/resources/folders/resources/files/client/Client.js +3 -3
- package/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.d.ts +15 -3
- package/api/resources/providers/client/Client.js +64 -8
- package/{dist/api/types → api/resources/providers/client/requests}/ProviderCheck.d.ts +12 -1
- package/api/resources/providers/client/requests/ProviderCreate.d.ts +4 -0
- package/api/resources/providers/client/requests/ProviderUpdate.d.ts +4 -0
- package/api/resources/providers/client/requests/index.d.ts +1 -0
- package/api/resources/runs/client/Client.js +4 -4
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +10 -10
- 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/steps/client/Client.d.ts +13 -0
- package/api/resources/steps/client/Client.js +78 -2
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +4 -0
- package/api/resources/tools/client/Client.d.ts +1 -1
- package/api/resources/tools/client/Client.js +21 -21
- package/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/AgentFileSchema.d.ts +27 -0
- package/api/types/BlockSchema.d.ts +29 -0
- package/api/types/BodyExportAgentSerialized.d.ts +8 -0
- package/api/types/CodeInput.d.ts +3 -1
- package/api/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
- package/api/types/CompletionCreateParamsStreaming.d.ts +2 -0
- package/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -2
- package/api/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
- package/api/types/FileAgentSchema.d.ts +28 -0
- package/api/types/FileSchema.d.ts +37 -0
- package/api/types/GroupSchema.d.ts +21 -0
- package/api/types/GroupSchemaManagerConfig.d.ts +8 -0
- package/api/types/ImportedAgentsResponse.d.ts +10 -0
- package/api/types/ImportedAgentsResponse.js +5 -0
- package/api/types/LettaSchemasAgentFileAgentSchema.d.ts +105 -0
- package/api/types/LettaSchemasAgentFileAgentSchema.js +5 -0
- package/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +5 -0
- package/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +5 -0
- package/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +5 -0
- package/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +5 -0
- package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +29 -0
- package/api/types/LettaSchemasAgentFileMessageSchema.js +5 -0
- package/api/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +8 -0
- package/api/types/LettaSchemasAgentFileMessageSchemaContent.js +5 -0
- package/api/types/LettaSchemasAgentFileToolSchema.d.ts +39 -0
- package/api/types/LettaSchemasAgentFileToolSchema.js +5 -0
- package/api/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +4 -4
- package/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js +5 -0
- package/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts +5 -0
- package/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js +5 -0
- package/api/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +1 -1
- package/api/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js +5 -0
- package/api/types/{ToolSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +1 -1
- package/api/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js +5 -0
- package/api/types/LlmConfig.d.ts +1 -1
- package/api/types/LlmConfigModelEndpointType.d.ts +1 -2
- package/api/types/LlmConfigModelEndpointType.js +0 -1
- package/api/types/LlmConfigReasoningEffort.d.ts +2 -1
- package/api/types/LlmConfigReasoningEffort.js +1 -0
- package/api/types/McpServerSchema.d.ts +15 -0
- package/api/types/McpServerSchema.js +5 -0
- package/api/types/McpToolExecuteRequest.d.ts +7 -0
- package/api/types/McpToolExecuteRequest.js +5 -0
- package/api/types/Provider.d.ts +2 -0
- package/api/types/ProviderType.d.ts +1 -2
- package/api/types/ProviderType.js +0 -1
- package/api/types/SourceSchema.d.ts +25 -0
- package/api/types/SourceSchema.js +5 -0
- package/api/types/StepMetrics.d.ts +25 -0
- package/api/types/StepMetrics.js +5 -0
- package/api/types/index.d.ts +22 -5
- package/api/types/index.js +22 -5
- package/dist/api/resources/agents/client/Client.d.ts +9 -3
- package/dist/api/resources/agents/client/Client.js +31 -16
- package/dist/api/resources/agents/client/requests/AgentsExportFileRequest.d.ts +14 -0
- package/dist/api/resources/agents/client/requests/AgentsExportFileRequest.js +5 -0
- package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/files/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +3 -3
- package/dist/api/resources/agents/resources/messages/client/Client.js +14 -18
- package/dist/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +11 -0
- package/dist/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +5 -0
- package/dist/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +2 -0
- package/dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +2 -0
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/embeddingModels/client/Client.js +1 -1
- package/dist/api/resources/folders/client/Client.js +9 -9
- package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
- package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.js +5 -5
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.d.ts +15 -3
- package/dist/api/resources/providers/client/Client.js +64 -8
- package/{api/types → dist/api/resources/providers/client/requests}/ProviderCheck.d.ts +12 -1
- package/dist/api/resources/providers/client/requests/ProviderCheck.js +5 -0
- package/dist/api/resources/providers/client/requests/ProviderCreate.d.ts +4 -0
- package/dist/api/resources/providers/client/requests/ProviderUpdate.d.ts +4 -0
- package/dist/api/resources/providers/client/requests/index.d.ts +1 -0
- package/dist/api/resources/runs/client/Client.js +4 -4
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +10 -10
- 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/steps/client/Client.d.ts +13 -0
- package/dist/api/resources/steps/client/Client.js +78 -2
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +4 -0
- package/dist/api/resources/tools/client/Client.d.ts +1 -1
- package/dist/api/resources/tools/client/Client.js +21 -21
- package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/AgentFileSchema.d.ts +27 -0
- package/dist/api/types/AgentFileSchema.js +5 -0
- package/dist/api/types/BlockSchema.d.ts +29 -0
- package/dist/api/types/BlockSchema.js +5 -0
- package/dist/api/types/BodyExportAgentSerialized.d.ts +8 -0
- package/dist/api/types/BodyExportAgentSerialized.js +5 -0
- package/dist/api/types/CodeInput.d.ts +3 -1
- package/dist/api/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
- package/dist/api/types/CompletionCreateParamsStreaming.d.ts +2 -0
- package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -2
- package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
- package/dist/api/types/FileAgentSchema.d.ts +28 -0
- package/dist/api/types/FileAgentSchema.js +5 -0
- package/dist/api/types/FileSchema.d.ts +37 -0
- package/dist/api/types/FileSchema.js +5 -0
- package/dist/api/types/GroupSchema.d.ts +21 -0
- package/dist/api/types/GroupSchema.js +5 -0
- package/dist/api/types/GroupSchemaManagerConfig.d.ts +8 -0
- package/dist/api/types/GroupSchemaManagerConfig.js +5 -0
- package/dist/api/types/ImportedAgentsResponse.d.ts +10 -0
- package/dist/api/types/ImportedAgentsResponse.js +5 -0
- package/dist/api/types/LettaSchemasAgentFileAgentSchema.d.ts +105 -0
- package/dist/api/types/LettaSchemasAgentFileAgentSchema.js +5 -0
- package/dist/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +5 -0
- package/dist/api/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +5 -0
- package/dist/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +5 -0
- package/dist/api/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +5 -0
- package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +29 -0
- package/dist/api/types/LettaSchemasAgentFileMessageSchema.js +5 -0
- package/dist/api/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +8 -0
- package/dist/api/types/LettaSchemasAgentFileMessageSchemaContent.js +5 -0
- package/dist/api/types/LettaSchemasAgentFileToolSchema.d.ts +39 -0
- package/dist/api/types/LettaSchemasAgentFileToolSchema.js +5 -0
- package/dist/api/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +4 -4
- package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js +5 -0
- package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts +5 -0
- package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js +5 -0
- package/dist/api/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +1 -1
- package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js +5 -0
- package/dist/api/types/{ToolSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +1 -1
- package/dist/api/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js +5 -0
- package/dist/api/types/LlmConfig.d.ts +1 -1
- package/dist/api/types/LlmConfigModelEndpointType.d.ts +1 -2
- package/dist/api/types/LlmConfigModelEndpointType.js +0 -1
- package/dist/api/types/LlmConfigReasoningEffort.d.ts +2 -1
- package/dist/api/types/LlmConfigReasoningEffort.js +1 -0
- package/dist/api/types/McpServerSchema.d.ts +15 -0
- package/dist/api/types/McpServerSchema.js +5 -0
- package/dist/api/types/McpToolExecuteRequest.d.ts +7 -0
- package/dist/api/types/McpToolExecuteRequest.js +5 -0
- package/dist/api/types/Provider.d.ts +2 -0
- package/dist/api/types/ProviderType.d.ts +1 -2
- package/dist/api/types/ProviderType.js +0 -1
- package/dist/api/types/SourceSchema.d.ts +25 -0
- package/dist/api/types/SourceSchema.js +5 -0
- package/dist/api/types/StepMetrics.d.ts +25 -0
- package/dist/api/types/StepMetrics.js +5 -0
- package/dist/api/types/index.d.ts +22 -5
- package/dist/api/types/index.js +22 -5
- package/dist/serialization/resources/agents/resources/messages/client/cancel.d.ts +0 -4
- package/dist/serialization/resources/agents/resources/messages/client/cancel.js +1 -2
- package/dist/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +12 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +43 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/index.js +3 -1
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js +1 -0
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +1 -0
- package/dist/serialization/resources/providers/client/requests/ProviderCheck.d.ts +18 -0
- package/{serialization/types → dist/serialization/resources/providers/client/requests}/ProviderCheck.js +4 -2
- package/dist/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
- package/dist/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
- package/dist/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +2 -0
- package/dist/serialization/resources/providers/client/requests/ProviderUpdate.js +2 -0
- package/dist/serialization/resources/providers/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/providers/client/requests/index.js +3 -1
- package/dist/serialization/resources/templates/types/TemplatesListResponse.d.ts +1 -1
- package/dist/serialization/resources/templates/types/TemplatesListResponse.js +1 -1
- package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +3 -0
- package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +3 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
- package/dist/serialization/types/AgentFileSchema.d.ts +27 -0
- package/dist/serialization/types/AgentFileSchema.js +58 -0
- package/dist/serialization/types/BlockSchema.d.ts +22 -0
- package/dist/serialization/types/BlockSchema.js +53 -0
- package/dist/serialization/types/BodyExportAgentSerialized.d.ts +15 -0
- package/dist/serialization/types/BodyExportAgentSerialized.js +46 -0
- package/dist/serialization/types/CodeInput.d.ts +1 -0
- package/dist/serialization/types/CodeInput.js +1 -0
- package/dist/serialization/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
- package/dist/serialization/types/CompletionCreateParamsNonStreaming.js +2 -0
- package/dist/serialization/types/CompletionCreateParamsStreaming.d.ts +2 -0
- package/dist/serialization/types/CompletionCreateParamsStreaming.js +2 -0
- package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
- package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
- package/dist/serialization/types/FileAgentSchema.d.ts +21 -0
- package/dist/serialization/types/FileAgentSchema.js +52 -0
- package/dist/serialization/types/FileSchema.d.ts +26 -0
- package/dist/serialization/types/FileSchema.js +57 -0
- package/dist/serialization/types/GroupSchema.d.ts +18 -0
- package/dist/serialization/types/GroupSchema.js +49 -0
- package/dist/serialization/types/GroupSchemaManagerConfig.d.ts +15 -0
- package/dist/serialization/types/GroupSchemaManagerConfig.js +52 -0
- package/dist/serialization/types/ImportedAgentsResponse.d.ts +12 -0
- package/dist/serialization/types/ImportedAgentsResponse.js +43 -0
- package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +68 -0
- package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.js +99 -0
- package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +13 -0
- package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +44 -0
- package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +18 -0
- package/dist/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +58 -0
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +23 -0
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +54 -0
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +11 -0
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaContent.js +45 -0
- package/dist/serialization/types/LettaSchemasAgentFileToolSchema.d.ts +29 -0
- package/dist/serialization/types/LettaSchemasAgentFileToolSchema.js +60 -0
- package/dist/serialization/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +8 -8
- package/dist/serialization/types/{AgentSchema.js → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js} +8 -8
- package/{serialization/types/AgentSchemaToolRulesItem.d.ts → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts} +2 -2
- package/{serialization/types/AgentSchemaToolRulesItem.js → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js} +2 -2
- package/dist/serialization/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +2 -2
- package/{serialization/types/MessageSchema.js → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js} +2 -2
- package/{serialization/types/ToolSchema.d.ts → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +2 -2
- package/{serialization/types/ToolSchema.js → dist/serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js} +2 -2
- package/dist/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
- package/dist/serialization/types/LlmConfigModelEndpointType.js +0 -1
- package/dist/serialization/types/LlmConfigReasoningEffort.d.ts +1 -1
- package/dist/serialization/types/LlmConfigReasoningEffort.js +1 -1
- package/dist/serialization/types/McpServerSchema.d.ts +17 -0
- package/dist/serialization/types/McpServerSchema.js +48 -0
- package/dist/serialization/types/McpToolExecuteRequest.d.ts +12 -0
- package/dist/serialization/types/McpToolExecuteRequest.js +43 -0
- package/dist/serialization/types/Provider.d.ts +1 -0
- package/dist/serialization/types/Provider.js +1 -0
- package/dist/serialization/types/ProviderType.d.ts +1 -1
- package/dist/serialization/types/ProviderType.js +0 -1
- package/dist/serialization/types/SourceSchema.d.ts +20 -0
- package/dist/serialization/types/SourceSchema.js +51 -0
- package/dist/serialization/types/StepMetrics.d.ts +21 -0
- package/dist/serialization/types/StepMetrics.js +52 -0
- package/dist/serialization/types/index.d.ts +22 -5
- package/dist/serialization/types/index.js +22 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +138 -11
- package/serialization/resources/agents/resources/messages/client/cancel.d.ts +0 -4
- package/serialization/resources/agents/resources/messages/client/cancel.js +1 -2
- package/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +12 -0
- package/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +43 -0
- package/serialization/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
- package/serialization/resources/agents/resources/messages/client/requests/index.js +3 -1
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +1 -0
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.js +1 -0
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +1 -0
- package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +1 -0
- package/serialization/resources/providers/client/requests/ProviderCheck.d.ts +18 -0
- package/{dist/serialization/types → serialization/resources/providers/client/requests}/ProviderCheck.js +4 -2
- package/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
- package/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
- package/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +2 -0
- package/serialization/resources/providers/client/requests/ProviderUpdate.js +2 -0
- package/serialization/resources/providers/client/requests/index.d.ts +1 -0
- package/serialization/resources/providers/client/requests/index.js +3 -1
- package/serialization/resources/templates/types/TemplatesListResponse.d.ts +1 -1
- package/serialization/resources/templates/types/TemplatesListResponse.js +1 -1
- package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +3 -0
- package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +3 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
- package/serialization/types/AgentFileSchema.d.ts +27 -0
- package/serialization/types/AgentFileSchema.js +58 -0
- package/serialization/types/BlockSchema.d.ts +22 -0
- package/serialization/types/BlockSchema.js +53 -0
- package/serialization/types/BodyExportAgentSerialized.d.ts +15 -0
- package/serialization/types/BodyExportAgentSerialized.js +46 -0
- package/serialization/types/CodeInput.d.ts +1 -0
- package/serialization/types/CodeInput.js +1 -0
- package/serialization/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
- package/serialization/types/CompletionCreateParamsNonStreaming.js +2 -0
- package/serialization/types/CompletionCreateParamsStreaming.d.ts +2 -0
- package/serialization/types/CompletionCreateParamsStreaming.js +2 -0
- package/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
- package/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +0 -1
- package/serialization/types/FileAgentSchema.d.ts +21 -0
- package/serialization/types/FileAgentSchema.js +52 -0
- package/serialization/types/FileSchema.d.ts +26 -0
- package/serialization/types/FileSchema.js +57 -0
- package/serialization/types/GroupSchema.d.ts +18 -0
- package/serialization/types/GroupSchema.js +49 -0
- package/serialization/types/GroupSchemaManagerConfig.d.ts +15 -0
- package/serialization/types/GroupSchemaManagerConfig.js +52 -0
- package/serialization/types/ImportedAgentsResponse.d.ts +12 -0
- package/serialization/types/ImportedAgentsResponse.js +43 -0
- package/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +68 -0
- package/serialization/types/LettaSchemasAgentFileAgentSchema.js +99 -0
- package/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.d.ts +13 -0
- package/serialization/types/LettaSchemasAgentFileAgentSchemaResponseFormat.js +44 -0
- package/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.d.ts +18 -0
- package/serialization/types/LettaSchemasAgentFileAgentSchemaToolRulesItem.js +58 -0
- package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +23 -0
- package/serialization/types/LettaSchemasAgentFileMessageSchema.js +54 -0
- package/serialization/types/LettaSchemasAgentFileMessageSchemaContent.d.ts +11 -0
- package/serialization/types/LettaSchemasAgentFileMessageSchemaContent.js +45 -0
- package/serialization/types/LettaSchemasAgentFileToolSchema.d.ts +29 -0
- package/serialization/types/LettaSchemasAgentFileToolSchema.js +60 -0
- package/serialization/types/{AgentSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.d.ts} +8 -8
- package/serialization/types/{AgentSchema.js → LettaSerializeSchemasPydanticAgentSchemaAgentSchema.js} +8 -8
- package/{dist/serialization/types/AgentSchemaToolRulesItem.d.ts → serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.d.ts} +2 -2
- package/{dist/serialization/types/AgentSchemaToolRulesItem.js → serialization/types/LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem.js} +2 -2
- package/serialization/types/{MessageSchema.d.ts → LettaSerializeSchemasPydanticAgentSchemaMessageSchema.d.ts} +2 -2
- package/{dist/serialization/types/MessageSchema.js → serialization/types/LettaSerializeSchemasPydanticAgentSchemaMessageSchema.js} +2 -2
- package/{dist/serialization/types/ToolSchema.d.ts → serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.d.ts} +2 -2
- package/{dist/serialization/types/ToolSchema.js → serialization/types/LettaSerializeSchemasPydanticAgentSchemaToolSchema.js} +2 -2
- package/serialization/types/LlmConfigModelEndpointType.d.ts +1 -1
- package/serialization/types/LlmConfigModelEndpointType.js +0 -1
- package/serialization/types/LlmConfigReasoningEffort.d.ts +1 -1
- package/serialization/types/LlmConfigReasoningEffort.js +1 -1
- package/serialization/types/McpServerSchema.d.ts +17 -0
- package/serialization/types/McpServerSchema.js +48 -0
- package/serialization/types/McpToolExecuteRequest.d.ts +12 -0
- package/serialization/types/McpToolExecuteRequest.js +43 -0
- package/serialization/types/Provider.d.ts +1 -0
- package/serialization/types/Provider.js +1 -0
- package/serialization/types/ProviderType.d.ts +1 -1
- package/serialization/types/ProviderType.js +0 -1
- package/serialization/types/SourceSchema.d.ts +20 -0
- package/serialization/types/SourceSchema.js +51 -0
- package/serialization/types/StepMetrics.d.ts +21 -0
- package/serialization/types/StepMetrics.js +52 -0
- package/serialization/types/index.d.ts +22 -5
- package/serialization/types/index.js +22 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/AgentSchemaToolRulesItem.d.ts +0 -5
- package/dist/api/types/AgentSchemaToolRulesItem.d.ts +0 -5
- package/dist/serialization/types/ProviderCheck.d.ts +0 -16
- package/serialization/types/ProviderCheck.d.ts +0 -16
- /package/api/{types/AgentSchema.js → resources/agents/client/requests/AgentsExportFileRequest.js} +0 -0
- /package/api/{types/AgentSchemaToolRulesItem.js → resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js} +0 -0
- /package/api/{types → resources/providers/client/requests}/ProviderCheck.js +0 -0
- /package/api/types/{MessageSchema.js → AgentFileSchema.js} +0 -0
- /package/api/types/{ToolSchema.js → BlockSchema.js} +0 -0
- /package/{dist/api/types/AgentSchema.js → api/types/BodyExportAgentSerialized.js} +0 -0
- /package/{dist/api/types/AgentSchemaToolRulesItem.js → api/types/FileAgentSchema.js} +0 -0
- /package/{dist/api/types/MessageSchema.js → api/types/FileSchema.js} +0 -0
- /package/{dist/api/types/ProviderCheck.js → api/types/GroupSchema.js} +0 -0
- /package/{dist/api/types/ToolSchema.js → api/types/GroupSchemaManagerConfig.js} +0 -0
package/api/types/index.d.ts
CHANGED
|
@@ -8,8 +8,7 @@ export * from "./ActionModel";
|
|
|
8
8
|
export * from "./ActionParametersModel";
|
|
9
9
|
export * from "./ActionResponseModel";
|
|
10
10
|
export * from "./AgentEnvironmentVariable";
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./AgentSchema";
|
|
11
|
+
export * from "./AgentFileSchema";
|
|
13
12
|
export * from "./AgentStateToolRulesItem";
|
|
14
13
|
export * from "./AgentStateResponseFormat";
|
|
15
14
|
export * from "./AgentState";
|
|
@@ -27,7 +26,9 @@ export * from "./Base64Image";
|
|
|
27
26
|
export * from "./BaseToolRuleSchema";
|
|
28
27
|
export * from "./BatchJob";
|
|
29
28
|
export * from "./Block";
|
|
29
|
+
export * from "./BlockSchema";
|
|
30
30
|
export * from "./BlockUpdate";
|
|
31
|
+
export * from "./BodyExportAgentSerialized";
|
|
31
32
|
export * from "./ChatCompletionAssistantMessageParamContentItem";
|
|
32
33
|
export * from "./ChatCompletionAssistantMessageParamContent";
|
|
33
34
|
export * from "./ChatCompletionAssistantMessageParam";
|
|
@@ -93,10 +94,12 @@ export * from "./EmbeddingConfigEmbeddingEndpointType";
|
|
|
93
94
|
export * from "./EmbeddingConfig";
|
|
94
95
|
export * from "./FeedbackType";
|
|
95
96
|
export * from "./File_";
|
|
97
|
+
export * from "./FileAgentSchema";
|
|
96
98
|
export * from "./FileBlock";
|
|
97
99
|
export * from "./FileFile";
|
|
98
100
|
export * from "./FileMetadata";
|
|
99
101
|
export * from "./FileProcessingStatus";
|
|
102
|
+
export * from "./FileSchema";
|
|
100
103
|
export * from "./FileStats";
|
|
101
104
|
export * from "./Folder";
|
|
102
105
|
export * from "./FunctionOutput";
|
|
@@ -107,6 +110,8 @@ export * from "./FunctionTool";
|
|
|
107
110
|
export * from "./GenerateToolInput";
|
|
108
111
|
export * from "./GenerateToolOutput";
|
|
109
112
|
export * from "./Group";
|
|
113
|
+
export * from "./GroupSchemaManagerConfig";
|
|
114
|
+
export * from "./GroupSchema";
|
|
110
115
|
export * from "./HttpValidationError";
|
|
111
116
|
export * from "./Health";
|
|
112
117
|
export * from "./HiddenReasoningMessageState";
|
|
@@ -120,6 +125,7 @@ export * from "./ImageContentSource";
|
|
|
120
125
|
export * from "./ImageContent";
|
|
121
126
|
export * from "./ImageUrlDetail";
|
|
122
127
|
export * from "./ImageUrl";
|
|
128
|
+
export * from "./ImportedAgentsResponse";
|
|
123
129
|
export * from "./InitToolRule";
|
|
124
130
|
export * from "./InputAudioFormat";
|
|
125
131
|
export * from "./InputAudio";
|
|
@@ -143,8 +149,10 @@ export * from "./LettaStopReason";
|
|
|
143
149
|
export * from "./LettaStreamingRequest";
|
|
144
150
|
export * from "./LettaUsageStatistics";
|
|
145
151
|
export * from "./LocalSandboxConfig";
|
|
152
|
+
export * from "./McpServerSchema";
|
|
146
153
|
export * from "./McpServerType";
|
|
147
154
|
export * from "./McpTool";
|
|
155
|
+
export * from "./McpToolExecuteRequest";
|
|
148
156
|
export * from "./ManagerType";
|
|
149
157
|
export * from "./MaxCountPerStepToolRule";
|
|
150
158
|
export * from "./MaxCountPerStepToolRuleSchema";
|
|
@@ -155,7 +163,6 @@ export * from "./MessageCreateRole";
|
|
|
155
163
|
export * from "./MessageCreateContent";
|
|
156
164
|
export * from "./MessageCreate";
|
|
157
165
|
export * from "./MessageRole";
|
|
158
|
-
export * from "./MessageSchema";
|
|
159
166
|
export * from "./MessageType";
|
|
160
167
|
export * from "./ModalSandboxConfigLanguage";
|
|
161
168
|
export * from "./ModalSandboxConfig";
|
|
@@ -172,7 +179,6 @@ export * from "./Passage";
|
|
|
172
179
|
export * from "./PipRequirement";
|
|
173
180
|
export * from "./Provider";
|
|
174
181
|
export * from "./ProviderCategory";
|
|
175
|
-
export * from "./ProviderCheck";
|
|
176
182
|
export * from "./ProviderTrace";
|
|
177
183
|
export * from "./ProviderType";
|
|
178
184
|
export * from "./ReasoningContent";
|
|
@@ -200,11 +206,13 @@ export * from "./SleeptimeManager";
|
|
|
200
206
|
export * from "./SleeptimeManagerUpdate";
|
|
201
207
|
export * from "./Source";
|
|
202
208
|
export * from "./SourceCreate";
|
|
209
|
+
export * from "./SourceSchema";
|
|
203
210
|
export * from "./SourceStats";
|
|
204
211
|
export * from "./SourceUpdate";
|
|
205
212
|
export * from "./StdioServerConfig";
|
|
206
213
|
export * from "./StepFeedback";
|
|
207
214
|
export * from "./Step";
|
|
215
|
+
export * from "./StepMetrics";
|
|
208
216
|
export * from "./StepStatus";
|
|
209
217
|
export * from "./StopReasonType";
|
|
210
218
|
export * from "./StreamableHttpServerConfig";
|
|
@@ -230,7 +238,6 @@ export * from "./ToolReturn";
|
|
|
230
238
|
export * from "./ToolReturnContent";
|
|
231
239
|
export * from "./ToolReturnMessageStatus";
|
|
232
240
|
export * from "./ToolReturnMessage";
|
|
233
|
-
export * from "./ToolSchema";
|
|
234
241
|
export * from "./ToolType";
|
|
235
242
|
export * from "./UpdateAssistantMessageContent";
|
|
236
243
|
export * from "./UpdateAssistantMessage";
|
|
@@ -258,6 +265,16 @@ export * from "./WebSearchOptionsSearchContextSize";
|
|
|
258
265
|
export * from "./WebSearchOptions";
|
|
259
266
|
export * from "./WebSearchOptionsUserLocation";
|
|
260
267
|
export * from "./WebSearchOptionsUserLocationApproximate";
|
|
268
|
+
export * from "./LettaSchemasAgentFileAgentSchemaToolRulesItem";
|
|
269
|
+
export * from "./LettaSchemasAgentFileAgentSchemaResponseFormat";
|
|
270
|
+
export * from "./LettaSchemasAgentFileAgentSchema";
|
|
271
|
+
export * from "./LettaSchemasAgentFileMessageSchemaContent";
|
|
272
|
+
export * from "./LettaSchemasAgentFileMessageSchema";
|
|
273
|
+
export * from "./LettaSchemasAgentFileToolSchema";
|
|
274
|
+
export * from "./LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem";
|
|
275
|
+
export * from "./LettaSerializeSchemasPydanticAgentSchemaAgentSchema";
|
|
276
|
+
export * from "./LettaSerializeSchemasPydanticAgentSchemaMessageSchema";
|
|
277
|
+
export * from "./LettaSerializeSchemasPydanticAgentSchemaToolSchema";
|
|
261
278
|
export * from "./OpenaiTypesChatChatCompletionMessageToolCallParamFunction";
|
|
262
279
|
export * from "./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction";
|
|
263
280
|
export * from "./OpenaiTypesChatCompletionCreateParamsFunction";
|
package/api/types/index.js
CHANGED
|
@@ -24,8 +24,7 @@ __exportStar(require("./ActionModel"), exports);
|
|
|
24
24
|
__exportStar(require("./ActionParametersModel"), exports);
|
|
25
25
|
__exportStar(require("./ActionResponseModel"), exports);
|
|
26
26
|
__exportStar(require("./AgentEnvironmentVariable"), exports);
|
|
27
|
-
__exportStar(require("./
|
|
28
|
-
__exportStar(require("./AgentSchema"), exports);
|
|
27
|
+
__exportStar(require("./AgentFileSchema"), exports);
|
|
29
28
|
__exportStar(require("./AgentStateToolRulesItem"), exports);
|
|
30
29
|
__exportStar(require("./AgentStateResponseFormat"), exports);
|
|
31
30
|
__exportStar(require("./AgentState"), exports);
|
|
@@ -43,7 +42,9 @@ __exportStar(require("./Base64Image"), exports);
|
|
|
43
42
|
__exportStar(require("./BaseToolRuleSchema"), exports);
|
|
44
43
|
__exportStar(require("./BatchJob"), exports);
|
|
45
44
|
__exportStar(require("./Block"), exports);
|
|
45
|
+
__exportStar(require("./BlockSchema"), exports);
|
|
46
46
|
__exportStar(require("./BlockUpdate"), exports);
|
|
47
|
+
__exportStar(require("./BodyExportAgentSerialized"), exports);
|
|
47
48
|
__exportStar(require("./ChatCompletionAssistantMessageParamContentItem"), exports);
|
|
48
49
|
__exportStar(require("./ChatCompletionAssistantMessageParamContent"), exports);
|
|
49
50
|
__exportStar(require("./ChatCompletionAssistantMessageParam"), exports);
|
|
@@ -109,10 +110,12 @@ __exportStar(require("./EmbeddingConfigEmbeddingEndpointType"), exports);
|
|
|
109
110
|
__exportStar(require("./EmbeddingConfig"), exports);
|
|
110
111
|
__exportStar(require("./FeedbackType"), exports);
|
|
111
112
|
__exportStar(require("./File_"), exports);
|
|
113
|
+
__exportStar(require("./FileAgentSchema"), exports);
|
|
112
114
|
__exportStar(require("./FileBlock"), exports);
|
|
113
115
|
__exportStar(require("./FileFile"), exports);
|
|
114
116
|
__exportStar(require("./FileMetadata"), exports);
|
|
115
117
|
__exportStar(require("./FileProcessingStatus"), exports);
|
|
118
|
+
__exportStar(require("./FileSchema"), exports);
|
|
116
119
|
__exportStar(require("./FileStats"), exports);
|
|
117
120
|
__exportStar(require("./Folder"), exports);
|
|
118
121
|
__exportStar(require("./FunctionOutput"), exports);
|
|
@@ -123,6 +126,8 @@ __exportStar(require("./FunctionTool"), exports);
|
|
|
123
126
|
__exportStar(require("./GenerateToolInput"), exports);
|
|
124
127
|
__exportStar(require("./GenerateToolOutput"), exports);
|
|
125
128
|
__exportStar(require("./Group"), exports);
|
|
129
|
+
__exportStar(require("./GroupSchemaManagerConfig"), exports);
|
|
130
|
+
__exportStar(require("./GroupSchema"), exports);
|
|
126
131
|
__exportStar(require("./HttpValidationError"), exports);
|
|
127
132
|
__exportStar(require("./Health"), exports);
|
|
128
133
|
__exportStar(require("./HiddenReasoningMessageState"), exports);
|
|
@@ -136,6 +141,7 @@ __exportStar(require("./ImageContentSource"), exports);
|
|
|
136
141
|
__exportStar(require("./ImageContent"), exports);
|
|
137
142
|
__exportStar(require("./ImageUrlDetail"), exports);
|
|
138
143
|
__exportStar(require("./ImageUrl"), exports);
|
|
144
|
+
__exportStar(require("./ImportedAgentsResponse"), exports);
|
|
139
145
|
__exportStar(require("./InitToolRule"), exports);
|
|
140
146
|
__exportStar(require("./InputAudioFormat"), exports);
|
|
141
147
|
__exportStar(require("./InputAudio"), exports);
|
|
@@ -159,8 +165,10 @@ __exportStar(require("./LettaStopReason"), exports);
|
|
|
159
165
|
__exportStar(require("./LettaStreamingRequest"), exports);
|
|
160
166
|
__exportStar(require("./LettaUsageStatistics"), exports);
|
|
161
167
|
__exportStar(require("./LocalSandboxConfig"), exports);
|
|
168
|
+
__exportStar(require("./McpServerSchema"), exports);
|
|
162
169
|
__exportStar(require("./McpServerType"), exports);
|
|
163
170
|
__exportStar(require("./McpTool"), exports);
|
|
171
|
+
__exportStar(require("./McpToolExecuteRequest"), exports);
|
|
164
172
|
__exportStar(require("./ManagerType"), exports);
|
|
165
173
|
__exportStar(require("./MaxCountPerStepToolRule"), exports);
|
|
166
174
|
__exportStar(require("./MaxCountPerStepToolRuleSchema"), exports);
|
|
@@ -171,7 +179,6 @@ __exportStar(require("./MessageCreateRole"), exports);
|
|
|
171
179
|
__exportStar(require("./MessageCreateContent"), exports);
|
|
172
180
|
__exportStar(require("./MessageCreate"), exports);
|
|
173
181
|
__exportStar(require("./MessageRole"), exports);
|
|
174
|
-
__exportStar(require("./MessageSchema"), exports);
|
|
175
182
|
__exportStar(require("./MessageType"), exports);
|
|
176
183
|
__exportStar(require("./ModalSandboxConfigLanguage"), exports);
|
|
177
184
|
__exportStar(require("./ModalSandboxConfig"), exports);
|
|
@@ -188,7 +195,6 @@ __exportStar(require("./Passage"), exports);
|
|
|
188
195
|
__exportStar(require("./PipRequirement"), exports);
|
|
189
196
|
__exportStar(require("./Provider"), exports);
|
|
190
197
|
__exportStar(require("./ProviderCategory"), exports);
|
|
191
|
-
__exportStar(require("./ProviderCheck"), exports);
|
|
192
198
|
__exportStar(require("./ProviderTrace"), exports);
|
|
193
199
|
__exportStar(require("./ProviderType"), exports);
|
|
194
200
|
__exportStar(require("./ReasoningContent"), exports);
|
|
@@ -216,11 +222,13 @@ __exportStar(require("./SleeptimeManager"), exports);
|
|
|
216
222
|
__exportStar(require("./SleeptimeManagerUpdate"), exports);
|
|
217
223
|
__exportStar(require("./Source"), exports);
|
|
218
224
|
__exportStar(require("./SourceCreate"), exports);
|
|
225
|
+
__exportStar(require("./SourceSchema"), exports);
|
|
219
226
|
__exportStar(require("./SourceStats"), exports);
|
|
220
227
|
__exportStar(require("./SourceUpdate"), exports);
|
|
221
228
|
__exportStar(require("./StdioServerConfig"), exports);
|
|
222
229
|
__exportStar(require("./StepFeedback"), exports);
|
|
223
230
|
__exportStar(require("./Step"), exports);
|
|
231
|
+
__exportStar(require("./StepMetrics"), exports);
|
|
224
232
|
__exportStar(require("./StepStatus"), exports);
|
|
225
233
|
__exportStar(require("./StopReasonType"), exports);
|
|
226
234
|
__exportStar(require("./StreamableHttpServerConfig"), exports);
|
|
@@ -246,7 +254,6 @@ __exportStar(require("./ToolReturn"), exports);
|
|
|
246
254
|
__exportStar(require("./ToolReturnContent"), exports);
|
|
247
255
|
__exportStar(require("./ToolReturnMessageStatus"), exports);
|
|
248
256
|
__exportStar(require("./ToolReturnMessage"), exports);
|
|
249
|
-
__exportStar(require("./ToolSchema"), exports);
|
|
250
257
|
__exportStar(require("./ToolType"), exports);
|
|
251
258
|
__exportStar(require("./UpdateAssistantMessageContent"), exports);
|
|
252
259
|
__exportStar(require("./UpdateAssistantMessage"), exports);
|
|
@@ -274,6 +281,16 @@ __exportStar(require("./WebSearchOptionsSearchContextSize"), exports);
|
|
|
274
281
|
__exportStar(require("./WebSearchOptions"), exports);
|
|
275
282
|
__exportStar(require("./WebSearchOptionsUserLocation"), exports);
|
|
276
283
|
__exportStar(require("./WebSearchOptionsUserLocationApproximate"), exports);
|
|
284
|
+
__exportStar(require("./LettaSchemasAgentFileAgentSchemaToolRulesItem"), exports);
|
|
285
|
+
__exportStar(require("./LettaSchemasAgentFileAgentSchemaResponseFormat"), exports);
|
|
286
|
+
__exportStar(require("./LettaSchemasAgentFileAgentSchema"), exports);
|
|
287
|
+
__exportStar(require("./LettaSchemasAgentFileMessageSchemaContent"), exports);
|
|
288
|
+
__exportStar(require("./LettaSchemasAgentFileMessageSchema"), exports);
|
|
289
|
+
__exportStar(require("./LettaSchemasAgentFileToolSchema"), exports);
|
|
290
|
+
__exportStar(require("./LettaSerializeSchemasPydanticAgentSchemaAgentSchemaToolRulesItem"), exports);
|
|
291
|
+
__exportStar(require("./LettaSerializeSchemasPydanticAgentSchemaAgentSchema"), exports);
|
|
292
|
+
__exportStar(require("./LettaSerializeSchemasPydanticAgentSchemaMessageSchema"), exports);
|
|
293
|
+
__exportStar(require("./LettaSerializeSchemasPydanticAgentSchemaToolSchema"), exports);
|
|
277
294
|
__exportStar(require("./OpenaiTypesChatChatCompletionMessageToolCallParamFunction"), exports);
|
|
278
295
|
__exportStar(require("./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction"), exports);
|
|
279
296
|
__exportStar(require("./OpenaiTypesChatCompletionCreateParamsFunction"), exports);
|
|
@@ -112,7 +112,12 @@ export declare class Agents {
|
|
|
112
112
|
/**
|
|
113
113
|
* Export the serialized JSON representation of an agent, formatted with indentation.
|
|
114
114
|
*
|
|
115
|
+
* Supports two export formats:
|
|
116
|
+
* - Legacy format (use_legacy_format=true): Single agent with inline tools/blocks
|
|
117
|
+
* - New format (default): Multi-entity format with separate agents, tools, blocks, files, etc.
|
|
118
|
+
*
|
|
115
119
|
* @param {string} agentId
|
|
120
|
+
* @param {Letta.AgentsExportFileRequest} request
|
|
116
121
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
117
122
|
*
|
|
118
123
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
@@ -120,10 +125,11 @@ export declare class Agents {
|
|
|
120
125
|
* @example
|
|
121
126
|
* await client.agents.exportFile("agent_id")
|
|
122
127
|
*/
|
|
123
|
-
exportFile(agentId: string, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<string>;
|
|
128
|
+
exportFile(agentId: string, request?: Letta.AgentsExportFileRequest, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<string>;
|
|
124
129
|
private __exportFile;
|
|
125
130
|
/**
|
|
126
|
-
* Import a serialized agent file and recreate the agent in the system.
|
|
131
|
+
* Import a serialized agent file and recreate the agent(s) in the system.
|
|
132
|
+
* Returns the IDs of all imported agents.
|
|
127
133
|
*
|
|
128
134
|
* @param {File | fs.ReadStream | Blob} file
|
|
129
135
|
* @param {Letta.BodyImportAgentSerialized} request
|
|
@@ -134,7 +140,7 @@ export declare class Agents {
|
|
|
134
140
|
* @example
|
|
135
141
|
* await client.agents.importFile(fs.createReadStream("/path/to/your/file"), {})
|
|
136
142
|
*/
|
|
137
|
-
importFile(file: File | fs.ReadStream | Blob, request: Letta.BodyImportAgentSerialized, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.
|
|
143
|
+
importFile(file: File | fs.ReadStream | Blob, request: Letta.BodyImportAgentSerialized, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.ImportedAgentsResponse>;
|
|
138
144
|
private __importFile;
|
|
139
145
|
/**
|
|
140
146
|
* Get the state of the agent.
|
|
@@ -207,7 +207,7 @@ class Agents {
|
|
|
207
207
|
method: "GET",
|
|
208
208
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
209
209
|
? yield core.Supplier.get(this._options.project)
|
|
210
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
210
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
211
211
|
contentType: "application/json",
|
|
212
212
|
queryParameters: _queryParams,
|
|
213
213
|
requestType: "json",
|
|
@@ -284,7 +284,7 @@ class Agents {
|
|
|
284
284
|
method: "POST",
|
|
285
285
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
286
286
|
? yield core.Supplier.get(this._options.project)
|
|
287
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
287
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
288
288
|
contentType: "application/json",
|
|
289
289
|
requestType: "json",
|
|
290
290
|
body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -360,7 +360,7 @@ class Agents {
|
|
|
360
360
|
method: "GET",
|
|
361
361
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
362
362
|
? yield core.Supplier.get(this._options.project)
|
|
363
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
363
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
364
364
|
contentType: "application/json",
|
|
365
365
|
requestType: "json",
|
|
366
366
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -417,7 +417,12 @@ class Agents {
|
|
|
417
417
|
/**
|
|
418
418
|
* Export the serialized JSON representation of an agent, formatted with indentation.
|
|
419
419
|
*
|
|
420
|
+
* Supports two export formats:
|
|
421
|
+
* - Legacy format (use_legacy_format=true): Single agent with inline tools/blocks
|
|
422
|
+
* - New format (default): Multi-entity format with separate agents, tools, blocks, files, etc.
|
|
423
|
+
*
|
|
420
424
|
* @param {string} agentId
|
|
425
|
+
* @param {Letta.AgentsExportFileRequest} request
|
|
421
426
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
422
427
|
*
|
|
423
428
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
@@ -425,19 +430,28 @@ class Agents {
|
|
|
425
430
|
* @example
|
|
426
431
|
* await client.agents.exportFile("agent_id")
|
|
427
432
|
*/
|
|
428
|
-
exportFile(agentId, requestOptions) {
|
|
429
|
-
return core.HttpResponsePromise.fromPromise(this.__exportFile(agentId, requestOptions));
|
|
433
|
+
exportFile(agentId, request = {}, requestOptions) {
|
|
434
|
+
return core.HttpResponsePromise.fromPromise(this.__exportFile(agentId, request, requestOptions));
|
|
430
435
|
}
|
|
431
|
-
__exportFile(
|
|
432
|
-
return __awaiter(this,
|
|
436
|
+
__exportFile(agentId_1) {
|
|
437
|
+
return __awaiter(this, arguments, void 0, function* (agentId, request = {}, requestOptions) {
|
|
433
438
|
var _a, _b, _c;
|
|
439
|
+
const { maxSteps, useLegacyFormat } = request;
|
|
440
|
+
const _queryParams = {};
|
|
441
|
+
if (maxSteps != null) {
|
|
442
|
+
_queryParams["max_steps"] = maxSteps.toString();
|
|
443
|
+
}
|
|
444
|
+
if (useLegacyFormat != null) {
|
|
445
|
+
_queryParams["use_legacy_format"] = useLegacyFormat.toString();
|
|
446
|
+
}
|
|
434
447
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
435
448
|
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)}/export`),
|
|
436
449
|
method: "GET",
|
|
437
450
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
438
451
|
? yield core.Supplier.get(this._options.project)
|
|
439
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
452
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
440
453
|
contentType: "application/json",
|
|
454
|
+
queryParameters: _queryParams,
|
|
441
455
|
requestType: "json",
|
|
442
456
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
443
457
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -491,7 +505,8 @@ class Agents {
|
|
|
491
505
|
});
|
|
492
506
|
}
|
|
493
507
|
/**
|
|
494
|
-
* Import a serialized agent file and recreate the agent in the system.
|
|
508
|
+
* Import a serialized agent file and recreate the agent(s) in the system.
|
|
509
|
+
* Returns the IDs of all imported agents.
|
|
495
510
|
*
|
|
496
511
|
* @param {File | fs.ReadStream | Blob} file
|
|
497
512
|
* @param {Letta.BodyImportAgentSerialized} request
|
|
@@ -531,7 +546,7 @@ class Agents {
|
|
|
531
546
|
method: "POST",
|
|
532
547
|
headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
533
548
|
? yield core.Supplier.get(this._options.project)
|
|
534
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
549
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
535
550
|
requestType: "file",
|
|
536
551
|
duplex: _maybeEncodedRequest.duplex,
|
|
537
552
|
body: _maybeEncodedRequest.body,
|
|
@@ -541,7 +556,7 @@ class Agents {
|
|
|
541
556
|
});
|
|
542
557
|
if (_response.ok) {
|
|
543
558
|
return {
|
|
544
|
-
data: serializers.
|
|
559
|
+
data: serializers.ImportedAgentsResponse.parseOrThrow(_response.body, {
|
|
545
560
|
unrecognizedObjectKeys: "passthrough",
|
|
546
561
|
allowUnrecognizedUnionMembers: true,
|
|
547
562
|
allowUnrecognizedEnumValues: true,
|
|
@@ -619,7 +634,7 @@ class Agents {
|
|
|
619
634
|
method: "GET",
|
|
620
635
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
621
636
|
? yield core.Supplier.get(this._options.project)
|
|
622
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
637
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
623
638
|
contentType: "application/json",
|
|
624
639
|
queryParameters: _queryParams,
|
|
625
640
|
requestType: "json",
|
|
@@ -696,7 +711,7 @@ class Agents {
|
|
|
696
711
|
method: "DELETE",
|
|
697
712
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
698
713
|
? yield core.Supplier.get(this._options.project)
|
|
699
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
714
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
700
715
|
contentType: "application/json",
|
|
701
716
|
requestType: "json",
|
|
702
717
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -764,7 +779,7 @@ class Agents {
|
|
|
764
779
|
method: "PATCH",
|
|
765
780
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
766
781
|
? yield core.Supplier.get(this._options.project)
|
|
767
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
782
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
768
783
|
contentType: "application/json",
|
|
769
784
|
requestType: "json",
|
|
770
785
|
body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -850,7 +865,7 @@ class Agents {
|
|
|
850
865
|
method: "POST",
|
|
851
866
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
852
867
|
? yield core.Supplier.get(this._options.project)
|
|
853
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
868
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
854
869
|
contentType: "application/json",
|
|
855
870
|
queryParameters: _queryParams,
|
|
856
871
|
requestType: "json",
|
|
@@ -918,7 +933,7 @@ class Agents {
|
|
|
918
933
|
method: "POST",
|
|
919
934
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
920
935
|
? yield core.Supplier.get(this._options.project)
|
|
921
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
936
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
922
937
|
contentType: "application/json",
|
|
923
938
|
requestType: "json",
|
|
924
939
|
body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface AgentsExportFileRequest {
|
|
9
|
+
maxSteps?: number;
|
|
10
|
+
/**
|
|
11
|
+
* If true, exports using the legacy single-agent format. If false, exports using the new multi-entity format.
|
|
12
|
+
*/
|
|
13
|
+
useLegacyFormat?: boolean;
|
|
14
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { type AgentsListRequest } from "./AgentsListRequest";
|
|
2
2
|
export { type CreateAgentRequest } from "./CreateAgentRequest";
|
|
3
|
+
export { type AgentsExportFileRequest } from "./AgentsExportFileRequest";
|
|
3
4
|
export { type BodyImportAgentSerialized } from "./BodyImportAgentSerialized";
|
|
4
5
|
export { type AgentsRetrieveRequest } from "./AgentsRetrieveRequest";
|
|
5
6
|
export { type UpdateAgent } from "./UpdateAgent";
|
|
@@ -82,7 +82,7 @@ class Blocks {
|
|
|
82
82
|
method: "GET",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -160,7 +160,7 @@ class Blocks {
|
|
|
160
160
|
method: "PATCH",
|
|
161
161
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
162
162
|
? yield core.Supplier.get(this._options.project)
|
|
163
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
163
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
164
164
|
contentType: "application/json",
|
|
165
165
|
requestType: "json",
|
|
166
166
|
body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -237,7 +237,7 @@ class Blocks {
|
|
|
237
237
|
method: "GET",
|
|
238
238
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
239
239
|
? yield core.Supplier.get(this._options.project)
|
|
240
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
240
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
241
241
|
contentType: "application/json",
|
|
242
242
|
requestType: "json",
|
|
243
243
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -314,7 +314,7 @@ class Blocks {
|
|
|
314
314
|
method: "PATCH",
|
|
315
315
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
316
316
|
? yield core.Supplier.get(this._options.project)
|
|
317
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
317
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
318
318
|
contentType: "application/json",
|
|
319
319
|
requestType: "json",
|
|
320
320
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -391,7 +391,7 @@ class Blocks {
|
|
|
391
391
|
method: "PATCH",
|
|
392
392
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
393
393
|
? yield core.Supplier.get(this._options.project)
|
|
394
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
394
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
395
395
|
contentType: "application/json",
|
|
396
396
|
requestType: "json",
|
|
397
397
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -81,7 +81,7 @@ class Context {
|
|
|
81
81
|
method: "GET",
|
|
82
82
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
83
83
|
? yield core.Supplier.get(this._options.project)
|
|
84
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -82,7 +82,7 @@ class CoreMemory {
|
|
|
82
82
|
method: "GET",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -84,7 +84,7 @@ class Files {
|
|
|
84
84
|
method: "PATCH",
|
|
85
85
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
86
86
|
? yield core.Supplier.get(this._options.project)
|
|
87
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
87
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
requestType: "json",
|
|
90
90
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -165,7 +165,7 @@ class Files {
|
|
|
165
165
|
method: "PATCH",
|
|
166
166
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
167
167
|
? yield core.Supplier.get(this._options.project)
|
|
168
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
168
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
169
169
|
contentType: "application/json",
|
|
170
170
|
requestType: "json",
|
|
171
171
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -245,7 +245,7 @@ class Files {
|
|
|
245
245
|
method: "PATCH",
|
|
246
246
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
247
247
|
? yield core.Supplier.get(this._options.project)
|
|
248
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
248
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
249
249
|
contentType: "application/json",
|
|
250
250
|
requestType: "json",
|
|
251
251
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -82,7 +82,7 @@ class Folders {
|
|
|
82
82
|
method: "PATCH",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -159,7 +159,7 @@ class Folders {
|
|
|
159
159
|
method: "PATCH",
|
|
160
160
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
161
161
|
? yield core.Supplier.get(this._options.project)
|
|
162
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
162
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
163
163
|
contentType: "application/json",
|
|
164
164
|
requestType: "json",
|
|
165
165
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -235,7 +235,7 @@ class Folders {
|
|
|
235
235
|
method: "GET",
|
|
236
236
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
237
237
|
? yield core.Supplier.get(this._options.project)
|
|
238
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
238
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
239
239
|
contentType: "application/json",
|
|
240
240
|
requestType: "json",
|
|
241
241
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -87,7 +87,7 @@ class Groups {
|
|
|
87
87
|
method: "GET",
|
|
88
88
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
89
89
|
? yield core.Supplier.get(this._options.project)
|
|
90
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
90
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
91
91
|
contentType: "application/json",
|
|
92
92
|
queryParameters: _queryParams,
|
|
93
93
|
requestType: "json",
|
|
@@ -83,7 +83,7 @@ class MemoryVariables {
|
|
|
83
83
|
method: "GET",
|
|
84
84
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
85
85
|
? yield core.Supplier.get(this._options.project)
|
|
86
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
86
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
requestType: "json",
|
|
89
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|