@letta-ai/letta-client 0.1.176 → 0.1.177
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 +5 -3
- package/api/resources/agents/resources/messages/client/Client.js +13 -15
- package/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +15 -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/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/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 +5 -3
- package/dist/api/resources/agents/resources/messages/client/Client.js +13 -15
- package/dist/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +15 -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/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/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 +13 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +44 -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/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/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 +140 -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 +13 -0
- package/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +44 -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/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/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
|
@@ -81,7 +81,7 @@ class Tools {
|
|
|
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.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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,
|
|
@@ -157,7 +157,7 @@ class Tools {
|
|
|
157
157
|
method: "DELETE",
|
|
158
158
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
159
159
|
? yield core.Supplier.get(this._options.project)
|
|
160
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
160
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
161
161
|
contentType: "application/json",
|
|
162
162
|
requestType: "json",
|
|
163
163
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -225,7 +225,7 @@ class Tools {
|
|
|
225
225
|
method: "PATCH",
|
|
226
226
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
227
227
|
? yield core.Supplier.get(this._options.project)
|
|
228
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
228
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
229
229
|
contentType: "application/json",
|
|
230
230
|
requestType: "json",
|
|
231
231
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -307,7 +307,7 @@ class Tools {
|
|
|
307
307
|
method: "GET",
|
|
308
308
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
309
309
|
? yield core.Supplier.get(this._options.project)
|
|
310
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
310
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
311
311
|
contentType: "application/json",
|
|
312
312
|
queryParameters: _queryParams,
|
|
313
313
|
requestType: "json",
|
|
@@ -395,7 +395,7 @@ class Tools {
|
|
|
395
395
|
method: "GET",
|
|
396
396
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
397
397
|
? yield core.Supplier.get(this._options.project)
|
|
398
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
398
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
399
399
|
contentType: "application/json",
|
|
400
400
|
queryParameters: _queryParams,
|
|
401
401
|
requestType: "json",
|
|
@@ -474,7 +474,7 @@ class Tools {
|
|
|
474
474
|
method: "POST",
|
|
475
475
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
476
476
|
? yield core.Supplier.get(this._options.project)
|
|
477
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
477
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
478
478
|
contentType: "application/json",
|
|
479
479
|
requestType: "json",
|
|
480
480
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -553,7 +553,7 @@ class Tools {
|
|
|
553
553
|
method: "PUT",
|
|
554
554
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
555
555
|
? yield core.Supplier.get(this._options.project)
|
|
556
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
556
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
557
557
|
contentType: "application/json",
|
|
558
558
|
requestType: "json",
|
|
559
559
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -629,7 +629,7 @@ class Tools {
|
|
|
629
629
|
method: "POST",
|
|
630
630
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
631
631
|
? yield core.Supplier.get(this._options.project)
|
|
632
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
632
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
633
633
|
contentType: "application/json",
|
|
634
634
|
requestType: "json",
|
|
635
635
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -710,7 +710,7 @@ class Tools {
|
|
|
710
710
|
method: "POST",
|
|
711
711
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
712
712
|
? yield core.Supplier.get(this._options.project)
|
|
713
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
713
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
714
714
|
contentType: "application/json",
|
|
715
715
|
requestType: "json",
|
|
716
716
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -788,7 +788,7 @@ class Tools {
|
|
|
788
788
|
method: "GET",
|
|
789
789
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
790
790
|
? yield core.Supplier.get(this._options.project)
|
|
791
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
791
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
792
792
|
contentType: "application/json",
|
|
793
793
|
requestType: "json",
|
|
794
794
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -864,7 +864,7 @@ class Tools {
|
|
|
864
864
|
method: "GET",
|
|
865
865
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
866
866
|
? yield core.Supplier.get(this._options.project)
|
|
867
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
867
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
868
868
|
contentType: "application/json",
|
|
869
869
|
requestType: "json",
|
|
870
870
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -940,7 +940,7 @@ class Tools {
|
|
|
940
940
|
method: "POST",
|
|
941
941
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
942
942
|
? yield core.Supplier.get(this._options.project)
|
|
943
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
943
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
944
944
|
contentType: "application/json",
|
|
945
945
|
requestType: "json",
|
|
946
946
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1017,7 +1017,7 @@ class Tools {
|
|
|
1017
1017
|
method: "GET",
|
|
1018
1018
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1019
1019
|
? yield core.Supplier.get(this._options.project)
|
|
1020
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1020
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1021
1021
|
contentType: "application/json",
|
|
1022
1022
|
requestType: "json",
|
|
1023
1023
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1097,7 +1097,7 @@ class Tools {
|
|
|
1097
1097
|
method: "PUT",
|
|
1098
1098
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1099
1099
|
? yield core.Supplier.get(this._options.project)
|
|
1100
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1100
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
1101
1101
|
contentType: "application/json",
|
|
1102
1102
|
requestType: "json",
|
|
1103
1103
|
body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1174,7 +1174,7 @@ class Tools {
|
|
|
1174
1174
|
method: "GET",
|
|
1175
1175
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1176
1176
|
? yield core.Supplier.get(this._options.project)
|
|
1177
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1177
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
1178
1178
|
contentType: "application/json",
|
|
1179
1179
|
requestType: "json",
|
|
1180
1180
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1251,7 +1251,7 @@ class Tools {
|
|
|
1251
1251
|
method: "POST",
|
|
1252
1252
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1253
1253
|
? yield core.Supplier.get(this._options.project)
|
|
1254
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1254
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
1255
1255
|
contentType: "application/json",
|
|
1256
1256
|
requestType: "json",
|
|
1257
1257
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1306,7 +1306,7 @@ class Tools {
|
|
|
1306
1306
|
});
|
|
1307
1307
|
}
|
|
1308
1308
|
/**
|
|
1309
|
-
*
|
|
1309
|
+
* Delete a MCP server configuration
|
|
1310
1310
|
*
|
|
1311
1311
|
* @param {string} mcpServerName
|
|
1312
1312
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1327,7 +1327,7 @@ class Tools {
|
|
|
1327
1327
|
method: "DELETE",
|
|
1328
1328
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1329
1329
|
? yield core.Supplier.get(this._options.project)
|
|
1330
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1330
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
1331
1331
|
contentType: "application/json",
|
|
1332
1332
|
requestType: "json",
|
|
1333
1333
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1404,7 +1404,7 @@ class Tools {
|
|
|
1404
1404
|
method: "PATCH",
|
|
1405
1405
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1406
1406
|
? yield core.Supplier.get(this._options.project)
|
|
1407
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1407
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
1408
1408
|
contentType: "application/json",
|
|
1409
1409
|
requestType: "json",
|
|
1410
1410
|
body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1486,7 +1486,7 @@ class Tools {
|
|
|
1486
1486
|
method: "POST",
|
|
1487
1487
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1488
1488
|
? yield core.Supplier.get(this._options.project)
|
|
1489
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1489
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
1490
1490
|
contentType: "application/json",
|
|
1491
1491
|
requestType: "json",
|
|
1492
1492
|
body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1547,7 +1547,7 @@ class Tools {
|
|
|
1547
1547
|
method: "POST",
|
|
1548
1548
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1549
1549
|
? yield core.Supplier.get(this._options.project)
|
|
1550
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1550
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
|
|
1551
1551
|
contentType: "application/json",
|
|
1552
1552
|
requestType: "json",
|
|
1553
1553
|
body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -85,7 +85,7 @@ class Voice {
|
|
|
85
85
|
method: "POST",
|
|
86
86
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
87
87
|
? yield core.Supplier.get(this._options.project)
|
|
88
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
88
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
requestType: "json",
|
|
91
91
|
body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Schema for serialized agent file that can be exported to JSON and imported into agent server.
|
|
7
|
+
*/
|
|
8
|
+
export interface AgentFileSchema {
|
|
9
|
+
/** List of agents in this agent file */
|
|
10
|
+
agents: Letta.LettaSchemasAgentFileAgentSchema[];
|
|
11
|
+
/** List of groups in this agent file */
|
|
12
|
+
groups: Letta.GroupSchema[];
|
|
13
|
+
/** List of memory blocks in this agent file */
|
|
14
|
+
blocks: Letta.BlockSchema[];
|
|
15
|
+
/** List of files in this agent file */
|
|
16
|
+
files: Letta.FileSchema[];
|
|
17
|
+
/** List of sources in this agent file */
|
|
18
|
+
sources: Letta.SourceSchema[];
|
|
19
|
+
/** List of tools in this agent file */
|
|
20
|
+
tools: Letta.LettaSchemasAgentFileToolSchema[];
|
|
21
|
+
/** List of MCP servers in this agent file */
|
|
22
|
+
mcpServers: Letta.McpServerSchema[];
|
|
23
|
+
/** Metadata for this agent file, including revision_id and other export information. */
|
|
24
|
+
metadata?: Record<string, string>;
|
|
25
|
+
/** The timestamp when the object was created. */
|
|
26
|
+
createdAt?: Date;
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Block with human-readable ID for agent file
|
|
6
|
+
*/
|
|
7
|
+
export interface BlockSchema {
|
|
8
|
+
/** Value of the block. */
|
|
9
|
+
value: string;
|
|
10
|
+
/** Character limit of the block. */
|
|
11
|
+
limit?: number;
|
|
12
|
+
/** The associated project id. */
|
|
13
|
+
projectId?: string;
|
|
14
|
+
/** Name of the block if it is a template. */
|
|
15
|
+
name?: string;
|
|
16
|
+
isTemplate?: boolean;
|
|
17
|
+
/** Preserve the block on template migration. */
|
|
18
|
+
preserveOnMigration?: boolean;
|
|
19
|
+
/** Label of the block. */
|
|
20
|
+
label: string;
|
|
21
|
+
/** Whether the agent has read-only access to the block. */
|
|
22
|
+
readOnly?: boolean;
|
|
23
|
+
/** Description of the block. */
|
|
24
|
+
description?: string;
|
|
25
|
+
/** Metadata of the block. */
|
|
26
|
+
metadata?: Record<string, unknown>;
|
|
27
|
+
/** Human-readable identifier for this block in the file */
|
|
28
|
+
id: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface BodyExportAgentSerialized {
|
|
6
|
+
spec?: Letta.AgentFileSchema;
|
|
7
|
+
legacySpec?: Letta.LettaSerializeSchemasPydanticAgentSchemaAgentSchema;
|
|
8
|
+
}
|
|
@@ -19,8 +19,10 @@ export interface CompletionCreateParamsNonStreaming {
|
|
|
19
19
|
parallelToolCalls?: boolean;
|
|
20
20
|
prediction?: Letta.ChatCompletionPredictionContentParam;
|
|
21
21
|
presencePenalty?: number;
|
|
22
|
+
promptCacheKey?: string;
|
|
22
23
|
reasoningEffort?: Letta.CompletionCreateParamsNonStreamingReasoningEffort;
|
|
23
24
|
responseFormat?: Letta.CompletionCreateParamsNonStreamingResponseFormat;
|
|
25
|
+
safetyIdentifier?: string;
|
|
24
26
|
seed?: number;
|
|
25
27
|
serviceTier?: Letta.CompletionCreateParamsNonStreamingServiceTier;
|
|
26
28
|
stop?: Letta.CompletionCreateParamsNonStreamingStop;
|
|
@@ -19,8 +19,10 @@ export interface CompletionCreateParamsStreaming {
|
|
|
19
19
|
parallelToolCalls?: boolean;
|
|
20
20
|
prediction?: Letta.ChatCompletionPredictionContentParam;
|
|
21
21
|
presencePenalty?: number;
|
|
22
|
+
promptCacheKey?: string;
|
|
22
23
|
reasoningEffort?: Letta.CompletionCreateParamsStreamingReasoningEffort;
|
|
23
24
|
responseFormat?: Letta.CompletionCreateParamsStreamingResponseFormat;
|
|
25
|
+
safetyIdentifier?: string;
|
|
24
26
|
seed?: number;
|
|
25
27
|
serviceTier?: Letta.CompletionCreateParamsStreamingServiceTier;
|
|
26
28
|
stop?: Letta.CompletionCreateParamsStreamingStop;
|
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* The endpoint type for the model.
|
|
6
6
|
*/
|
|
7
|
-
export type EmbeddingConfigEmbeddingEndpointType = "openai" | "anthropic" | "bedrock" | "
|
|
7
|
+
export type EmbeddingConfigEmbeddingEndpointType = "openai" | "anthropic" | "bedrock" | "google_ai" | "google_vertex" | "azure" | "groq" | "ollama" | "webui" | "webui-legacy" | "lmstudio" | "lmstudio-legacy" | "llamacpp" | "koboldcpp" | "vllm" | "hugging-face" | "mistral" | "together" | "pinecone";
|
|
8
8
|
export declare const EmbeddingConfigEmbeddingEndpointType: {
|
|
9
9
|
readonly Openai: "openai";
|
|
10
10
|
readonly Anthropic: "anthropic";
|
|
11
11
|
readonly Bedrock: "bedrock";
|
|
12
|
-
readonly Cohere: "cohere";
|
|
13
12
|
readonly GoogleAi: "google_ai";
|
|
14
13
|
readonly GoogleVertex: "google_vertex";
|
|
15
14
|
readonly Azure: "azure";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* File-Agent relationship with human-readable ID for agent file
|
|
6
|
+
*/
|
|
7
|
+
export interface FileAgentSchema {
|
|
8
|
+
/** Unique identifier of the agent. */
|
|
9
|
+
agentId: string;
|
|
10
|
+
/** Unique identifier of the file. */
|
|
11
|
+
fileId: string;
|
|
12
|
+
/** Unique identifier of the source. */
|
|
13
|
+
sourceId: string;
|
|
14
|
+
/** Name of the file. */
|
|
15
|
+
fileName: string;
|
|
16
|
+
/** True if the agent currently has the file open. */
|
|
17
|
+
isOpen?: boolean;
|
|
18
|
+
/** Portion of the file the agent is focused on (may be large). */
|
|
19
|
+
visibleContent?: string;
|
|
20
|
+
/** UTC timestamp of the agent's most recent access to this file. */
|
|
21
|
+
lastAccessedAt?: Date;
|
|
22
|
+
/** Starting line number (1-indexed) when file was opened with line range. */
|
|
23
|
+
startLine?: number;
|
|
24
|
+
/** Ending line number (exclusive) when file was opened with line range. */
|
|
25
|
+
endLine?: number;
|
|
26
|
+
/** Human-readable identifier for this file-agent relationship in the file */
|
|
27
|
+
id: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* File with human-readable ID for agent file
|
|
7
|
+
*/
|
|
8
|
+
export interface FileSchema {
|
|
9
|
+
/** The unique identifier of the source associated with the document. */
|
|
10
|
+
sourceId: string;
|
|
11
|
+
/** The name of the file. */
|
|
12
|
+
fileName?: string;
|
|
13
|
+
/** The original name of the file as uploaded. */
|
|
14
|
+
originalFileName?: string;
|
|
15
|
+
/** The path to the file. */
|
|
16
|
+
filePath?: string;
|
|
17
|
+
/** The type of the file (MIME type). */
|
|
18
|
+
fileType?: string;
|
|
19
|
+
/** The size of the file in bytes. */
|
|
20
|
+
fileSize?: number;
|
|
21
|
+
/** The creation date of the file. */
|
|
22
|
+
fileCreationDate?: string;
|
|
23
|
+
/** The last modified date of the file. */
|
|
24
|
+
fileLastModifiedDate?: string;
|
|
25
|
+
/** The current processing status of the file (e.g. pending, parsing, embedding, completed, error). */
|
|
26
|
+
processingStatus?: Letta.FileProcessingStatus;
|
|
27
|
+
/** Optional error message if the file failed processing. */
|
|
28
|
+
errorMessage?: string;
|
|
29
|
+
/** Total number of chunks for the file. */
|
|
30
|
+
totalChunks?: number;
|
|
31
|
+
/** Number of chunks that have been embedded. */
|
|
32
|
+
chunksEmbedded?: number;
|
|
33
|
+
/** Optional full-text content of the file; only populated on demand due to its size. */
|
|
34
|
+
content?: string;
|
|
35
|
+
/** Human-readable identifier for this file in the file */
|
|
36
|
+
id: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Group with human-readable ID for agent file
|
|
7
|
+
*/
|
|
8
|
+
export interface GroupSchema {
|
|
9
|
+
/** */
|
|
10
|
+
agentIds: string[];
|
|
11
|
+
/** */
|
|
12
|
+
description: string;
|
|
13
|
+
/** */
|
|
14
|
+
managerConfig?: Letta.GroupSchemaManagerConfig;
|
|
15
|
+
/** The associated project id. */
|
|
16
|
+
projectId?: string;
|
|
17
|
+
/** */
|
|
18
|
+
sharedBlockIds?: string[];
|
|
19
|
+
/** Human-readable identifier for this group in the file */
|
|
20
|
+
id: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export type GroupSchemaManagerConfig = Letta.DynamicManager | Letta.RoundRobinManager | Letta.SleeptimeManager | Letta.SupervisorManager | Letta.VoiceSleeptimeManager;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Agent with human-readable ID for agent file
|
|
7
|
+
*/
|
|
8
|
+
export interface LettaSchemasAgentFileAgentSchema {
|
|
9
|
+
/** The name of the agent. */
|
|
10
|
+
name?: string;
|
|
11
|
+
/** The blocks to create in the agent's in-context memory. */
|
|
12
|
+
memoryBlocks?: Letta.CreateBlock[];
|
|
13
|
+
/** The tools used by the agent. */
|
|
14
|
+
tools?: string[];
|
|
15
|
+
/** The ids of the tools used by the agent. */
|
|
16
|
+
toolIds?: string[];
|
|
17
|
+
/** The ids of the sources used by the agent. */
|
|
18
|
+
sourceIds?: string[];
|
|
19
|
+
/** The ids of the blocks used by the agent. */
|
|
20
|
+
blockIds?: string[];
|
|
21
|
+
/** The tool rules governing the agent. */
|
|
22
|
+
toolRules?: Letta.LettaSchemasAgentFileAgentSchemaToolRulesItem[];
|
|
23
|
+
/** The tags associated with the agent. */
|
|
24
|
+
tags?: string[];
|
|
25
|
+
/** The system prompt used by the agent. */
|
|
26
|
+
system?: string;
|
|
27
|
+
/** The type of agent. */
|
|
28
|
+
agentType?: Letta.AgentType;
|
|
29
|
+
/** The LLM configuration used by the agent. */
|
|
30
|
+
llmConfig?: Letta.LlmConfig;
|
|
31
|
+
/** The embedding configuration used by the agent. */
|
|
32
|
+
embeddingConfig?: Letta.EmbeddingConfig;
|
|
33
|
+
/** The initial set of messages to put in the agent's in-context memory. */
|
|
34
|
+
initialMessageSequence?: Letta.MessageCreate[];
|
|
35
|
+
/** If true, attaches the Letta core tools (e.g. core_memory related functions). */
|
|
36
|
+
includeBaseTools?: boolean;
|
|
37
|
+
/** If true, attaches the Letta multi-agent tools (e.g. sending a message to another agent). */
|
|
38
|
+
includeMultiAgentTools?: boolean;
|
|
39
|
+
/** If true, attaches the Letta base tool rules (e.g. deny all tools not explicitly allowed). */
|
|
40
|
+
includeBaseToolRules?: boolean;
|
|
41
|
+
/** If true, automatically creates and attaches a default data source for this agent. */
|
|
42
|
+
includeDefaultSource?: boolean;
|
|
43
|
+
/** The description of the agent. */
|
|
44
|
+
description?: string;
|
|
45
|
+
/** The metadata of the agent. */
|
|
46
|
+
metadata?: Record<string, unknown>;
|
|
47
|
+
/** The LLM configuration handle used by the agent, specified in the format provider/model-name, as an alternative to specifying llm_config. */
|
|
48
|
+
model?: string;
|
|
49
|
+
/** The embedding configuration handle used by the agent, specified in the format provider/model-name. */
|
|
50
|
+
embedding?: string;
|
|
51
|
+
/** The context window limit used by the agent. */
|
|
52
|
+
contextWindowLimit?: number;
|
|
53
|
+
/** The embedding chunk size used by the agent. */
|
|
54
|
+
embeddingChunkSize?: number;
|
|
55
|
+
/** The maximum number of tokens to generate, including reasoning step. If not set, the model will use its default value. */
|
|
56
|
+
maxTokens?: number;
|
|
57
|
+
/** The maximum number of tokens to generate for reasoning step. If not set, the model will use its default value. */
|
|
58
|
+
maxReasoningTokens?: number;
|
|
59
|
+
/** Whether to enable internal extended thinking step for a reasoner model. */
|
|
60
|
+
enableReasoner?: boolean;
|
|
61
|
+
/** Whether to enable reasoning for this agent. */
|
|
62
|
+
reasoning?: boolean;
|
|
63
|
+
/** The template id used to configure the agent */
|
|
64
|
+
fromTemplate?: string;
|
|
65
|
+
/** Whether the agent is a template */
|
|
66
|
+
template?: boolean;
|
|
67
|
+
/** Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below. */
|
|
68
|
+
project?: string;
|
|
69
|
+
/** The environment variables for tool execution specific to this agent. */
|
|
70
|
+
toolExecEnvironmentVariables?: Record<string, string | undefined>;
|
|
71
|
+
/** The variables that should be set for the agent. */
|
|
72
|
+
memoryVariables?: Record<string, string | undefined>;
|
|
73
|
+
/** The id of the project the agent belongs to. */
|
|
74
|
+
projectId?: string;
|
|
75
|
+
/** The id of the template the agent belongs to. */
|
|
76
|
+
templateId?: string;
|
|
77
|
+
/** The base template id of the agent. */
|
|
78
|
+
baseTemplateId?: string;
|
|
79
|
+
/** The ids of the identities associated with this agent. */
|
|
80
|
+
identityIds?: string[];
|
|
81
|
+
/** If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case. */
|
|
82
|
+
messageBufferAutoclear?: boolean;
|
|
83
|
+
/** If set to True, memory management will move to a background agent thread. */
|
|
84
|
+
enableSleeptime?: boolean;
|
|
85
|
+
/** The response format for the agent. */
|
|
86
|
+
responseFormat?: Letta.LettaSchemasAgentFileAgentSchemaResponseFormat;
|
|
87
|
+
/** The timezone of the agent (IANA format). */
|
|
88
|
+
timezone?: string;
|
|
89
|
+
/** Maximum number of files that can be open at once for this agent. Setting this too high may exceed the context window, which will break the agent. */
|
|
90
|
+
maxFilesOpen?: number;
|
|
91
|
+
/** The per-file view window character limit for this agent. Setting this too high may exceed the context window, which will break the agent. */
|
|
92
|
+
perFileViewWindowCharLimit?: number;
|
|
93
|
+
/** If set to True, the agent will be hidden. */
|
|
94
|
+
hidden?: boolean;
|
|
95
|
+
/** Human-readable identifier for this agent in the file */
|
|
96
|
+
id: string;
|
|
97
|
+
/** List of message IDs that are currently in the agent's context */
|
|
98
|
+
inContextMessageIds?: string[];
|
|
99
|
+
/** List of messages in the agent's conversation history */
|
|
100
|
+
messages?: Letta.LettaSchemasAgentFileMessageSchema[];
|
|
101
|
+
/** List of file-agent relationships for this agent */
|
|
102
|
+
filesAgents?: Letta.FileAgentSchema[];
|
|
103
|
+
/** List of groups that the agent manages */
|
|
104
|
+
groupIds?: string[];
|
|
105
|
+
}
|