@letta-ai/letta-react 0.1.0 → 0.1.1
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/dist/hooks/agentsHooks/index.d.ts +22 -22
- package/dist/hooks/agentsHooks/useAgents/index.d.ts +4 -4
- package/dist/hooks/blocksHooks/index.d.ts +6 -6
- package/dist/hooks/groupsHooks/index.d.ts +8 -8
- package/dist/hooks/healthHooks/index.d.ts +2 -2
- package/dist/hooks/identitiesHooks/index.d.ts +6 -6
- package/dist/hooks/index.d.ts +84 -84
- package/dist/hooks/jobsHooks/index.d.ts +6 -6
- package/dist/hooks/modelsHooks/index.d.ts +3 -3
- package/dist/hooks/providersHooks/index.d.ts +3 -3
- package/dist/hooks/runsHooks/index.d.ts +10 -10
- package/dist/hooks/sourcesHooks/index.d.ts +10 -10
- package/dist/hooks/stepsHooks/index.d.ts +4 -4
- package/dist/hooks/tagHooks/index.d.ts +2 -2
- package/dist/hooks/toolsHooks/index.d.ts +16 -16
- package/dist/hooks/voiceHooks/index.d.ts +1 -1
- package/dist/index.d.ts +137 -137
- package/dist/index.js +1242 -1618
- package/dist/index.js.map +4 -4
- package/dist/types/agents/index.d.ts +1 -1
- package/dist/types/clientSideAccessTokens/index.d.ts +1 -1
- package/dist/types/index.d.ts +67 -67
- package/hooks/agentsHooks/index.d.ts +22 -22
- package/hooks/agentsHooks/useAgents/index.d.ts +4 -4
- package/hooks/blocksHooks/index.d.ts +6 -6
- package/hooks/groupsHooks/index.d.ts +8 -8
- package/hooks/healthHooks/index.d.ts +2 -2
- package/hooks/identitiesHooks/index.d.ts +6 -6
- package/hooks/index.d.ts +84 -84
- package/hooks/jobsHooks/index.d.ts +6 -6
- package/hooks/modelsHooks/index.d.ts +3 -3
- package/hooks/providersHooks/index.d.ts +3 -3
- package/hooks/runsHooks/index.d.ts +10 -10
- package/hooks/sourcesHooks/index.d.ts +10 -10
- package/hooks/stepsHooks/index.d.ts +4 -4
- package/hooks/tagHooks/index.d.ts +2 -2
- package/hooks/toolsHooks/index.d.ts +16 -16
- package/hooks/voiceHooks/index.d.ts +1 -1
- package/index.d.ts +137 -137
- package/index.js +1242 -1618
- package/index.js.map +4 -4
- package/package.json +9 -7
- package/src/hooks/agentsHooks/index.ts +171 -72
- package/src/hooks/agentsHooks/useAgents/createTemplateFromAgent.ts +48 -22
- package/src/hooks/agentsHooks/useAgents/getAgentVariables.ts +69 -31
- package/src/hooks/agentsHooks/useAgents/getAgentVariablesSuspense.ts +68 -31
- package/src/hooks/agentsHooks/useAgents/index.ts +28 -12
- package/src/hooks/agentsHooks/useAgents/migrateAgent.ts +57 -25
- package/src/hooks/agentsHooks/useAgents/searchDeployedAgents.ts +43 -21
- package/src/hooks/agentsHooks/useAgents/versionAgentTemplate.ts +56 -29
- package/src/hooks/agentsHooks/useCreateAgent.ts +41 -21
- package/src/hooks/agentsHooks/useCreateAgentMessageAsync.ts +48 -23
- package/src/hooks/agentsHooks/useCreateAgentMessageStream.ts +48 -22
- package/src/hooks/agentsHooks/useCreatePassage.ts +53 -23
- package/src/hooks/agentsHooks/useDeleteAgent.ts +40 -21
- package/src/hooks/agentsHooks/useDeletePassage.ts +48 -23
- package/src/hooks/agentsHooks/useExportAgentSerialized.ts +74 -31
- package/src/hooks/agentsHooks/useExportAgentSerializedSuspense.ts +75 -31
- package/src/hooks/agentsHooks/useImportAgentSerialized.ts +60 -29
- package/src/hooks/agentsHooks/useListAgentSources.ts +71 -31
- package/src/hooks/agentsHooks/useListAgentSourcesSuspense.ts +72 -32
- package/src/hooks/agentsHooks/useListAgentTools.ts +75 -32
- package/src/hooks/agentsHooks/useListAgentToolsSuspense.ts +74 -32
- package/src/hooks/agentsHooks/useListAgents.ts +77 -32
- package/src/hooks/agentsHooks/useListAgentsSuspense.ts +78 -32
- package/src/hooks/agentsHooks/useListCoreMemoryBlocks.ts +72 -31
- package/src/hooks/agentsHooks/useListCoreMemoryBlocksSuspense.ts +72 -31
- package/src/hooks/agentsHooks/useListMessages.ts +74 -32
- package/src/hooks/agentsHooks/useListMessagesSuspense.ts +75 -32
- package/src/hooks/agentsHooks/useListPassages.ts +77 -32
- package/src/hooks/agentsHooks/useListPassagesSuspense.ts +78 -32
- package/src/hooks/agentsHooks/useRetrieveAgent.ts +72 -32
- package/src/hooks/agentsHooks/useRetrieveAgentContextWindow.ts +59 -30
- package/src/hooks/agentsHooks/useRetrieveAgentContextWindowSuspense.ts +66 -31
- package/src/hooks/agentsHooks/useRetrieveAgentMemory.ts +69 -31
- package/src/hooks/agentsHooks/useRetrieveAgentMemorySuspense.ts +69 -31
- package/src/hooks/agentsHooks/useRetrieveAgentSuspense.ts +71 -32
- package/src/hooks/agentsHooks/useRetrieveCoreMemoryBlock.ts +70 -31
- package/src/hooks/agentsHooks/useRetrieveCoreMemoryBlockSuspense.ts +72 -31
- package/src/hooks/agentsHooks/useSendMessage.ts +50 -23
- package/src/hooks/blocksHooks/index.ts +44 -16
- package/src/hooks/blocksHooks/useCreateBlock.ts +46 -22
- package/src/hooks/blocksHooks/useDeleteBlock.ts +40 -21
- package/src/hooks/blocksHooks/useListAgentsForBlock.ts +72 -31
- package/src/hooks/blocksHooks/useListAgentsForBlockSuspense.ts +72 -32
- package/src/hooks/blocksHooks/useListBlocks.ts +77 -32
- package/src/hooks/blocksHooks/useListBlocksSuspense.ts +78 -32
- package/src/hooks/blocksHooks/useRetrieveBlock.ts +72 -32
- package/src/hooks/blocksHooks/useRetrieveBlockSuspense.ts +71 -32
- package/src/hooks/clientSideAccessTokensHooks/index.ts +4 -4
- package/src/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/createClientSideAccessToken.ts +45 -21
- package/src/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/deleteClientSideAccessToken.ts +54 -22
- package/src/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/index.ts +4 -4
- package/src/hooks/groupsHooks/index.ts +56 -20
- package/src/hooks/groupsHooks/useCreateGroup.ts +41 -21
- package/src/hooks/groupsHooks/useDeleteGroup.ts +40 -21
- package/src/hooks/groupsHooks/useListGroupMessages.ts +68 -31
- package/src/hooks/groupsHooks/useListGroupMessagesSuspense.ts +72 -32
- package/src/hooks/groupsHooks/useListGroups.ts +77 -32
- package/src/hooks/groupsHooks/useListGroupsSuspense.ts +78 -32
- package/src/hooks/groupsHooks/useRetrieveGroup.ts +72 -32
- package/src/hooks/groupsHooks/useRetrieveGroupSuspense.ts +71 -32
- package/src/hooks/groupsHooks/useSendGroupMessage.ts +48 -23
- package/src/hooks/groupsHooks/useSendGroupMessageStreaming.ts +48 -22
- package/src/hooks/healthHooks/index.ts +14 -4
- package/src/hooks/healthHooks/useHealthCheck.ts +65 -30
- package/src/hooks/healthHooks/useHealthCheckSuspense.ts +68 -29
- package/src/hooks/identitiesHooks/index.ts +42 -16
- package/src/hooks/identitiesHooks/useCreateIdentity.ts +48 -23
- package/src/hooks/identitiesHooks/useDeleteIdentity.ts +43 -21
- package/src/hooks/identitiesHooks/useListIdentities.ts +71 -31
- package/src/hooks/identitiesHooks/useListIdentitiesSuspense.ts +74 -31
- package/src/hooks/identitiesHooks/useRetrieveIdentity.ts +72 -31
- package/src/hooks/identitiesHooks/useRetrieveIdentitySuspense.ts +75 -32
- package/src/hooks/identitiesHooks/useUpsertIdentity.ts +48 -23
- package/src/hooks/identitiesHooks/useUpsertIdentityProperties.ts +48 -22
- package/src/hooks/index.ts +657 -274
- package/src/hooks/jobsHooks/index.ts +43 -14
- package/src/hooks/jobsHooks/useDeleteJob.ts +46 -22
- package/src/hooks/jobsHooks/useListActiveJobs.ts +67 -31
- package/src/hooks/jobsHooks/useListActiveJobsSuspense.ts +68 -31
- package/src/hooks/jobsHooks/useListJobs.ts +76 -31
- package/src/hooks/jobsHooks/useListJobsSuspense.ts +77 -31
- package/src/hooks/jobsHooks/useRetrieveJob.ts +80 -37
- package/src/hooks/jobsHooks/useRetrieveJobSuspense.ts +83 -37
- package/src/hooks/modelsHooks/index.ts +23 -8
- package/src/hooks/modelsHooks/useListEmbeddingModels.ts +66 -31
- package/src/hooks/modelsHooks/useListEmbeddingModelsSuspense.ts +66 -31
- package/src/hooks/modelsHooks/useListModels.ts +65 -30
- package/src/hooks/modelsHooks/useListModelsSuspense.ts +68 -29
- package/src/hooks/providersHooks/index.ts +21 -8
- package/src/hooks/providersHooks/useCreateProvider.ts +50 -22
- package/src/hooks/providersHooks/useDeleteProvider.ts +49 -22
- package/src/hooks/providersHooks/useListProviders.ts +71 -31
- package/src/hooks/providersHooks/useListProvidersSuspense.ts +74 -31
- package/src/hooks/runsHooks/index.ts +75 -26
- package/src/hooks/runsHooks/useDeleteRun.ts +46 -22
- package/src/hooks/runsHooks/useListActiveRuns.ts +71 -31
- package/src/hooks/runsHooks/useListActiveRunsSuspense.ts +74 -31
- package/src/hooks/runsHooks/useListRunMessages.ts +73 -31
- package/src/hooks/runsHooks/useListRunMessagesSuspense.ts +76 -32
- package/src/hooks/runsHooks/useListRunSteps.ts +74 -32
- package/src/hooks/runsHooks/useListRunStepsSuspense.ts +75 -32
- package/src/hooks/runsHooks/useListRuns.ts +76 -31
- package/src/hooks/runsHooks/useListRunsSuspense.ts +77 -31
- package/src/hooks/runsHooks/useRetrieveRun.ts +80 -37
- package/src/hooks/runsHooks/useRetrieveRunSuspense.ts +83 -37
- package/src/hooks/runsHooks/useRetrieveRunUsage.ts +71 -31
- package/src/hooks/runsHooks/useRetrieveRunUsageSuspense.ts +72 -32
- package/src/hooks/sourcesHooks/index.ts +74 -28
- package/src/hooks/sourcesHooks/useCreateSource.ts +48 -22
- package/src/hooks/sourcesHooks/useDeleteFileFromSource.ts +48 -23
- package/src/hooks/sourcesHooks/useDeleteSource.ts +42 -21
- package/src/hooks/sourcesHooks/useGetSourceIdByName.ts +72 -31
- package/src/hooks/sourcesHooks/useGetSourceIdByNameSuspense.ts +75 -32
- package/src/hooks/sourcesHooks/useListSourceFiles.ts +73 -31
- package/src/hooks/sourcesHooks/useListSourceFilesSuspense.ts +77 -32
- package/src/hooks/sourcesHooks/useListSourcePassages.ts +72 -31
- package/src/hooks/sourcesHooks/useListSourcePassagesSuspense.ts +75 -32
- package/src/hooks/sourcesHooks/useListSources.ts +70 -34
- package/src/hooks/sourcesHooks/useListSourcesSuspense.ts +75 -35
- package/src/hooks/sourcesHooks/useRetrieveSource.ts +75 -32
- package/src/hooks/sourcesHooks/useRetrieveSourceSuspense.ts +71 -32
- package/src/hooks/sourcesHooks/useUploadFileToSource.ts +60 -29
- package/src/hooks/stepsHooks/index.ts +28 -8
- package/src/hooks/stepsHooks/useListSteps.ts +76 -31
- package/src/hooks/stepsHooks/useListStepsSuspense.ts +77 -31
- package/src/hooks/stepsHooks/useRetrieveStep.ts +72 -31
- package/src/hooks/stepsHooks/useRetrieveStepSuspense.ts +74 -32
- package/src/hooks/tagHooks/index.ts +14 -4
- package/src/hooks/tagHooks/useListTags.ts +76 -31
- package/src/hooks/tagHooks/useListTagsSuspense.ts +77 -31
- package/src/hooks/templatesHooks/index.ts +2 -2
- package/src/hooks/templatesHooks/useTemplates/createAgentsFromTemplate.ts +52 -27
- package/src/hooks/templatesHooks/useTemplates/index.ts +2 -2
- package/src/hooks/toolsHooks/index.ts +113 -42
- package/src/hooks/toolsHooks/useAddBaseTools.ts +51 -22
- package/src/hooks/toolsHooks/useAddComposioTool.ts +43 -22
- package/src/hooks/toolsHooks/useAddMcpServer.ts +49 -22
- package/src/hooks/toolsHooks/useAddMcpTool.ts +45 -23
- package/src/hooks/toolsHooks/useCreateTool.ts +49 -22
- package/src/hooks/toolsHooks/useDeleteMcpServer.ts +40 -21
- package/src/hooks/toolsHooks/useDeleteTool.ts +46 -22
- package/src/hooks/toolsHooks/useListComposioActionsByApp.ts +63 -30
- package/src/hooks/toolsHooks/useListComposioActionsByAppSuspense.ts +69 -31
- package/src/hooks/toolsHooks/useListComposioApps.ts +70 -30
- package/src/hooks/toolsHooks/useListComposioAppsSuspense.ts +73 -31
- package/src/hooks/toolsHooks/useListMcpServers.ts +71 -31
- package/src/hooks/toolsHooks/useListMcpServersSuspense.ts +72 -31
- package/src/hooks/toolsHooks/useListMcpToolsByServer.ts +72 -31
- package/src/hooks/toolsHooks/useListMcpToolsByServerSuspense.ts +73 -31
- package/src/hooks/toolsHooks/useListTools.ts +76 -31
- package/src/hooks/toolsHooks/useListToolsSuspense.ts +77 -31
- package/src/hooks/toolsHooks/useRetrieveTool.ts +72 -31
- package/src/hooks/toolsHooks/useRetrieveToolSuspense.ts +74 -32
- package/src/hooks/toolsHooks/useRunToolFromSource.ts +44 -21
- package/src/hooks/toolsHooks/useUpsertTool.ts +49 -22
- package/src/hooks/voiceHooks/index.ts +6 -2
- package/src/hooks/voiceHooks/useCreateVoiceChatCompletions.ts +47 -26
- package/src/index.ts +1232 -602
- package/src/schemas/HTTPValidationError.json +26 -1
- package/src/schemas/JSONSchema.json +19 -1
- package/src/schemas/LLMConfig.json +93 -1
- package/src/schemas/MCPServerType.json +6 -1
- package/src/schemas/MCPTool.json +20 -1
- package/src/schemas/SSEServerConfig.json +25 -1
- package/src/schemas/actionModel.json +93 -1
- package/src/schemas/actionParametersModel.json +27 -1
- package/src/schemas/actionResponseModel.json +27 -1
- package/src/schemas/agentEnvironmentVariable.json +62 -1
- package/src/schemas/agentSchema.json +562 -1
- package/src/schemas/agentState.json +995 -1
- package/src/schemas/agentType.json +7 -1
- package/src/schemas/appAuthScheme.json +95 -1
- package/src/schemas/appModel.json +159 -1
- package/src/schemas/assistantMessage.json +67 -1
- package/src/schemas/audio.json +7 -1
- package/src/schemas/authRequest.json +12 -1
- package/src/schemas/authResponse.json +19 -1
- package/src/schemas/authSchemeField.json +30 -1
- package/src/schemas/baseToolRuleSchema.json +10 -1
- package/src/schemas/block.json +67 -1
- package/src/schemas/blockUpdate.json +48 -1
- package/src/schemas/bodyImportAgentSerialized.json +9 -1
- package/src/schemas/bodyUploadFileToSource.json +9 -1
- package/src/schemas/chatCompletionAssistantMessageParam.json +103 -1
- package/src/schemas/chatCompletionAudioParam.json +35 -1
- package/src/schemas/chatCompletionContentPartImageParam.json +23 -1
- package/src/schemas/chatCompletionContentPartInputAudioParam.json +23 -1
- package/src/schemas/chatCompletionContentPartRefusalParam.json +10 -1
- package/src/schemas/chatCompletionContentPartTextParam.json +10 -1
- package/src/schemas/chatCompletionDeveloperMessageParam.json +29 -1
- package/src/schemas/chatCompletionFunctionCallOptionParam.json +7 -1
- package/src/schemas/chatCompletionFunctionMessageParam.json +14 -1
- package/src/schemas/chatCompletionMessageToolCall.json +22 -1
- package/src/schemas/chatCompletionMessageToolCallParam.json +20 -1
- package/src/schemas/chatCompletionNamedToolChoiceParam.json +16 -1
- package/src/schemas/chatCompletionPredictionContentParam.json +28 -1
- package/src/schemas/chatCompletionStreamOptionsParam.json +8 -1
- package/src/schemas/chatCompletionSystemMessageParam.json +29 -1
- package/src/schemas/chatCompletionToolMessageParam.json +29 -1
- package/src/schemas/chatCompletionToolParam.json +28 -1
- package/src/schemas/chatCompletionUserMessageParam.json +106 -1
- package/src/schemas/childToolRule.json +27 -1
- package/src/schemas/childToolRuleSchema.json +15 -1
- package/src/schemas/completionCreateParamsNonStreaming.json +797 -1
- package/src/schemas/completionCreateParamsStreaming.json +794 -1
- package/src/schemas/conditionalToolRule.json +38 -1
- package/src/schemas/conditionalToolRuleSchema.json +29 -1
- package/src/schemas/contextWindowOverview.json +491 -1
- package/src/schemas/continueToolRule.json +21 -1
- package/src/schemas/coreMemoryBlockSchema.json +38 -1
- package/src/schemas/createAgentRequest.json +883 -1
- package/src/schemas/createArchivalMemory.json +13 -1
- package/src/schemas/createBlock.json +49 -1
- package/src/schemas/dynamicManager.json +31 -1
- package/src/schemas/dynamicManagerUpdate.json +29 -1
- package/src/schemas/e2BSandboxConfig.json +26 -1
- package/src/schemas/embeddingConfig.json +76 -1
- package/src/schemas/file.json +19 -1
- package/src/schemas/fileFile.json +10 -1
- package/src/schemas/fileMetadata.json +74 -1
- package/src/schemas/functionCall.json +10 -1
- package/src/schemas/functionDefinitionInput.json +19 -1
- package/src/schemas/functionDefinitionOutput.json +25 -1
- package/src/schemas/functionOutput.json +11 -1
- package/src/schemas/functionTool.json +35 -1
- package/src/schemas/group.json +69 -1
- package/src/schemas/groupCreate.json +137 -1
- package/src/schemas/groupUpdate.json +140 -1
- package/src/schemas/health.json +11 -1
- package/src/schemas/hiddenReasoningMessage.json +35 -1
- package/src/schemas/identity.json +94 -1
- package/src/schemas/identityCreate.json +90 -1
- package/src/schemas/identityProperty.json +33 -1
- package/src/schemas/identityPropertyType.json +7 -1
- package/src/schemas/identityType.json +7 -1
- package/src/schemas/identityUpdate.json +90 -1
- package/src/schemas/identityUpsert.json +90 -1
- package/src/schemas/imageURL.json +14 -1
- package/src/schemas/initToolRule.json +21 -1
- package/src/schemas/inputAudio.json +10 -1
- package/src/schemas/job.json +82 -1
- package/src/schemas/jobStatus.json +15 -1
- package/src/schemas/jobType.json +6 -1
- package/src/schemas/lettaAssistantMessageContentUnion.json +31 -1
- package/src/schemas/lettaMessageContentUnion.json +184 -1
- package/src/schemas/lettaMessageUnion.json +382 -1
- package/src/schemas/lettaRequest.json +250 -1
- package/src/schemas/lettaRequestConfig.json +25 -1
- package/src/schemas/lettaResponse.json +860 -1
- package/src/schemas/lettaStreamingRequest.json +256 -1
- package/src/schemas/lettaUsageStatistics.json +411 -1
- package/src/schemas/lettaUserMessageContentUnion.json +31 -1
- package/src/schemas/localSandboxConfig.json +48 -1
- package/src/schemas/managerType.json +6 -1
- package/src/schemas/maxCountPerStepToolRule.json +26 -1
- package/src/schemas/maxCountPerStepToolRuleSchema.json +11 -1
- package/src/schemas/memory.json +87 -1
- package/src/schemas/message.json +336 -1
- package/src/schemas/messageCreate.json +219 -1
- package/src/schemas/messageRole.json +6 -1
- package/src/schemas/messageSchema.json +65 -1
- package/src/schemas/omittedReasoningContent.json +21 -1
- package/src/schemas/openaiTypesChatChatCompletionMessageToolCallParamFunction.json +10 -1
- package/src/schemas/openaiTypesChatChatCompletionNamedToolChoiceParamFunction.json +7 -1
- package/src/schemas/openaiTypesChatCompletionCreateParamsFunction.json +15 -1
- package/src/schemas/organization.json +35 -1
- package/src/schemas/organizationCreate.json +19 -1
- package/src/schemas/organizationUpdate.json +19 -1
- package/src/schemas/parameterProperties.json +13 -1
- package/src/schemas/parametersSchema.json +35 -1
- package/src/schemas/parentToolRule.json +27 -1
- package/src/schemas/passage.json +170 -1
- package/src/schemas/passageUpdate.json +169 -1
- package/src/schemas/pipRequirement.json +19 -1
- package/src/schemas/provider.json +32 -1
- package/src/schemas/providerCreate.json +19 -1
- package/src/schemas/providerUpdate.json +19 -1
- package/src/schemas/reasoningContent.json +31 -1
- package/src/schemas/reasoningMessage.json +37 -1
- package/src/schemas/redactedReasoningContent.json +21 -1
- package/src/schemas/responseFormatJSONObject.json +9 -1
- package/src/schemas/responseFormatJSONSchema.json +28 -1
- package/src/schemas/responseFormatText.json +9 -1
- package/src/schemas/roundRobinManager.json +19 -1
- package/src/schemas/roundRobinManagerUpdate.json +19 -1
- package/src/schemas/run.json +112 -1
- package/src/schemas/sandboxConfig.json +54 -1
- package/src/schemas/sandboxConfigCreate.json +89 -1
- package/src/schemas/sandboxConfigUpdate.json +89 -1
- package/src/schemas/sandboxEnvironmentVariable.json +62 -1
- package/src/schemas/sandboxEnvironmentVariableCreate.json +24 -1
- package/src/schemas/sandboxEnvironmentVariableUpdate.json +23 -1
- package/src/schemas/sandboxType.json +6 -1
- package/src/schemas/sleeptimeManager.json +25 -1
- package/src/schemas/sleeptimeManagerUpdate.json +24 -1
- package/src/schemas/source.json +141 -1
- package/src/schemas/sourceCreate.json +124 -1
- package/src/schemas/sourceUpdate.json +113 -1
- package/src/schemas/stdioServerConfig.json +39 -1
- package/src/schemas/step.json +440 -1
- package/src/schemas/supervisorManager.json +20 -1
- package/src/schemas/supervisorManagerUpdate.json +20 -1
- package/src/schemas/systemMessage.json +31 -1
- package/src/schemas/tagSchema.json +7 -1
- package/src/schemas/terminalToolRule.json +21 -1
- package/src/schemas/textContent.json +21 -1
- package/src/schemas/tool.json +100 -1
- package/src/schemas/toolCall.json +11 -1
- package/src/schemas/toolCallContent.json +32 -1
- package/src/schemas/toolCallDelta.json +19 -1
- package/src/schemas/toolCallMessage.json +61 -1
- package/src/schemas/toolCreate.json +54 -1
- package/src/schemas/toolEnvVarSchema.json +16 -1
- package/src/schemas/toolJSONSchema.json +56 -1
- package/src/schemas/toolReturn.json +30 -1
- package/src/schemas/toolReturnContent.json +30 -1
- package/src/schemas/toolReturnMessage.json +54 -1
- package/src/schemas/toolRunFromSource.json +52 -1
- package/src/schemas/toolSchema.json +99 -1
- package/src/schemas/toolType.json +15 -1
- package/src/schemas/toolUpdate.json +51 -1
- package/src/schemas/updateAgent.json +513 -1
- package/src/schemas/updateAssistantMessage.json +55 -1
- package/src/schemas/updateReasoningMessage.json +15 -1
- package/src/schemas/updateSystemMessage.json +19 -1
- package/src/schemas/updateUserMessage.json +55 -1
- package/src/schemas/usageStatistics.json +18 -1
- package/src/schemas/user.json +44 -1
- package/src/schemas/userCreate.json +14 -1
- package/src/schemas/userMessage.json +67 -1
- package/src/schemas/userUpdate.json +19 -1
- package/src/schemas/validationError.json +15 -1
- package/src/schemas/webSearchOptions.json +41 -1
- package/src/schemas/webSearchOptionsUserLocation.json +20 -1
- package/src/schemas/webSearchOptionsUserLocationApproximate.json +11 -1
- package/src/types/ActionModel.ts +15 -15
- package/src/types/ActionParametersModel.ts +7 -7
- package/src/types/ActionResponseModel.ts +7 -7
- package/src/types/AddBaseTools.ts +8 -8
- package/src/types/AddComposioTool.ts +11 -11
- package/src/types/AddMcpServer.ts +11 -11
- package/src/types/AddMcpTool.ts +12 -12
- package/src/types/AgentEnvironmentVariable.ts +10 -10
- package/src/types/AgentSchema.ts +37 -32
- package/src/types/AgentState.ts +53 -43
- package/src/types/AgentType.ts +3 -3
- package/src/types/AppAuthScheme.ts +16 -15
- package/src/types/AppModel.ts +20 -20
- package/src/types/AssistantMessage.ts +11 -10
- package/src/types/AttachCoreMemoryBlock.ts +12 -12
- package/src/types/AttachSourceToAgent.ts +12 -12
- package/src/types/AttachTool.ts +12 -12
- package/src/types/Audio.ts +2 -2
- package/src/types/AuthRequest.ts +2 -2
- package/src/types/AuthResponse.ts +3 -3
- package/src/types/AuthSchemeField.ts +9 -9
- package/src/types/BaseToolRuleSchema.ts +3 -3
- package/src/types/Block.ts +12 -12
- package/src/types/BlockUpdate.ts +9 -9
- package/src/types/BodyImportAgentSerialized.ts +2 -2
- package/src/types/BodyUploadFileToSource.ts +2 -2
- package/src/types/ChatCompletionAssistantMessageParam.ts +19 -13
- package/src/types/ChatCompletionAudioParam.ts +9 -7
- package/src/types/ChatCompletionContentPartImageParam.ts +4 -4
- package/src/types/ChatCompletionContentPartInputAudioParam.ts +4 -4
- package/src/types/ChatCompletionContentPartRefusalParam.ts +3 -3
- package/src/types/ChatCompletionContentPartTextParam.ts +3 -3
- package/src/types/ChatCompletionDeveloperMessageParam.ts +5 -5
- package/src/types/ChatCompletionFunctionCallOptionParam.ts +2 -2
- package/src/types/ChatCompletionFunctionMessageParam.ts +4 -4
- package/src/types/ChatCompletionMessageToolCall.ts +6 -6
- package/src/types/ChatCompletionMessageToolCallParam.ts +5 -5
- package/src/types/ChatCompletionNamedToolChoiceParam.ts +4 -4
- package/src/types/ChatCompletionPredictionContentParam.ts +4 -4
- package/src/types/ChatCompletionStreamOptionsParam.ts +2 -2
- package/src/types/ChatCompletionSystemMessageParam.ts +5 -5
- package/src/types/ChatCompletionToolMessageParam.ts +5 -5
- package/src/types/ChatCompletionToolParam.ts +4 -4
- package/src/types/ChatCompletionUserMessageParam.ts +15 -8
- package/src/types/ChildToolRule.ts +4 -4
- package/src/types/ChildToolRuleSchema.ts +4 -4
- package/src/types/CompletionCreateParamsNonStreaming.ts +74 -65
- package/src/types/CompletionCreateParamsStreaming.ts +75 -65
- package/src/types/ConditionalToolRule.ts +7 -7
- package/src/types/ConditionalToolRuleSchema.ts +7 -7
- package/src/types/ContextWindowOverview.ts +20 -20
- package/src/types/ContinueToolRule.ts +3 -3
- package/src/types/CoreMemoryBlockSchema.ts +11 -11
- package/src/types/CreateAgent.ts +14 -14
- package/src/types/CreateAgentMessageAsync.ts +15 -14
- package/src/types/CreateAgentMessageStream.ts +14 -13
- package/src/types/CreateAgentRequest.ts +62 -52
- package/src/types/CreateArchivalMemory.ts +2 -2
- package/src/types/CreateBlock.ts +19 -19
- package/src/types/CreateGroup.ts +14 -14
- package/src/types/CreateIdentity.ts +14 -14
- package/src/types/CreatePassage.ts +14 -14
- package/src/types/CreateProvider.ts +11 -11
- package/src/types/CreateSource.ts +11 -11
- package/src/types/CreateTool.ts +11 -11
- package/src/types/CreateVoiceChatCompletions.ts +20 -17
- package/src/types/DeleteAgent.ts +10 -10
- package/src/types/DeleteBlock.ts +11 -11
- package/src/types/DeleteFileFromSource.ts +11 -11
- package/src/types/DeleteGroup.ts +10 -10
- package/src/types/DeleteIdentity.ts +10 -10
- package/src/types/DeleteJob.ts +11 -11
- package/src/types/DeleteMcpServer.ts +12 -12
- package/src/types/DeletePassage.ts +11 -11
- package/src/types/DeleteProvider.ts +10 -10
- package/src/types/DeleteRun.ts +11 -11
- package/src/types/DeleteSource.ts +10 -10
- package/src/types/DeleteTool.ts +10 -10
- package/src/types/DetachCoreMemoryBlock.ts +12 -12
- package/src/types/DetachSourceFromAgent.ts +12 -12
- package/src/types/DetachTool.ts +12 -12
- package/src/types/DynamicManager.ts +5 -5
- package/src/types/DynamicManagerUpdate.ts +5 -5
- package/src/types/E2BSandboxConfig.ts +4 -4
- package/src/types/EmbeddingConfig.ts +13 -12
- package/src/types/ExportAgentSerialized.ts +13 -13
- package/src/types/File.ts +4 -4
- package/src/types/FileFile.ts +4 -4
- package/src/types/FileMetadata.ts +12 -12
- package/src/types/FunctionCall.ts +3 -3
- package/src/types/FunctionDefinitionInput.ts +6 -6
- package/src/types/FunctionDefinitionOutput.ts +7 -7
- package/src/types/FunctionOutput.ts +4 -4
- package/src/types/FunctionTool.ts +5 -5
- package/src/types/GetSourceIdByName.ts +10 -10
- package/src/types/Group.ts +13 -13
- package/src/types/GroupCreate.ts +13 -9
- package/src/types/GroupUpdate.ts +16 -9
- package/src/types/HTTPValidationError.ts +3 -3
- package/src/types/Health.ts +3 -3
- package/src/types/HealthCheck.ts +6 -6
- package/src/types/HiddenReasoningMessage.ts +14 -12
- package/src/types/Identity.ts +11 -11
- package/src/types/IdentityCreate.ts +10 -10
- package/src/types/IdentityProperty.ts +6 -6
- package/src/types/IdentityPropertyType.ts +4 -3
- package/src/types/IdentityType.ts +4 -3
- package/src/types/IdentityUpdate.ts +9 -9
- package/src/types/IdentityUpsert.ts +10 -10
- package/src/types/ImageURL.ts +6 -5
- package/src/types/ImportAgentSerialized.ts +17 -17
- package/src/types/InitToolRule.ts +3 -3
- package/src/types/InputAudio.ts +6 -5
- package/src/types/JSONSchema.ts +6 -6
- package/src/types/Job.ts +13 -13
- package/src/types/JobStatus.ts +3 -3
- package/src/types/JobType.ts +3 -3
- package/src/types/LLMConfig.ts +15 -14
- package/src/types/LettaAssistantMessageContentUnion.ts +5 -5
- package/src/types/LettaMessageContentUnion.ts +16 -15
- package/src/types/LettaMessageUnion.ts +18 -17
- package/src/types/LettaRequest.ts +6 -6
- package/src/types/LettaRequestConfig.ts +4 -4
- package/src/types/LettaResponse.ts +5 -5
- package/src/types/LettaStreamingRequest.ts +7 -7
- package/src/types/LettaUsageStatistics.ts +9 -9
- package/src/types/LettaUserMessageContentUnion.ts +6 -5
- package/src/types/ListActiveJobs.ts +8 -8
- package/src/types/ListActiveRuns.ts +11 -11
- package/src/types/ListAgentSources.ts +11 -11
- package/src/types/ListAgentTools.ts +11 -11
- package/src/types/ListAgents.ts +24 -24
- package/src/types/ListAgentsForBlock.ts +11 -11
- package/src/types/ListBlocks.ts +15 -15
- package/src/types/ListComposioActionsByApp.ts +11 -11
- package/src/types/ListComposioApps.ts +11 -11
- package/src/types/ListCoreMemoryBlocks.ts +11 -11
- package/src/types/ListEmbeddingModels.ts +6 -6
- package/src/types/ListGroupMessages.ts +19 -19
- package/src/types/ListGroups.ts +16 -16
- package/src/types/ListIdentities.ts +18 -18
- package/src/types/ListJobs.ts +11 -11
- package/src/types/ListMcpServers.ts +13 -13
- package/src/types/ListMcpToolsByServer.ts +11 -11
- package/src/types/ListMessages.ts +20 -20
- package/src/types/ListModels.ts +6 -6
- package/src/types/ListPassages.ts +18 -18
- package/src/types/ListProviders.ts +12 -12
- package/src/types/ListRunMessages.ts +19 -19
- package/src/types/ListRunSteps.ts +17 -17
- package/src/types/ListRuns.ts +11 -11
- package/src/types/ListSourceFiles.ts +15 -15
- package/src/types/ListSourcePassages.ts +11 -11
- package/src/types/ListSources.ts +8 -8
- package/src/types/ListSteps.ts +18 -18
- package/src/types/ListTags.ts +12 -12
- package/src/types/ListTools.ts +13 -13
- package/src/types/LocalSandboxConfig.ts +6 -6
- package/src/types/MCPServerType.ts +4 -3
- package/src/types/MCPTool.ts +6 -6
- package/src/types/ManagerType.ts +4 -3
- package/src/types/MaxCountPerStepToolRule.ts +4 -4
- package/src/types/MaxCountPerStepToolRuleSchema.ts +4 -4
- package/src/types/Memory.ts +4 -4
- package/src/types/Message.ts +35 -26
- package/src/types/MessageCreate.ts +9 -8
- package/src/types/MessageRole.ts +4 -3
- package/src/types/MessageSchema.ts +12 -12
- package/src/types/ModifyAgent.ts +14 -14
- package/src/types/ModifyBlock.ts +14 -14
- package/src/types/ModifyCoreMemoryBlock.ts +15 -15
- package/src/types/ModifyGroup.ts +17 -17
- package/src/types/ModifyGroupMessage.ts +28 -24
- package/src/types/ModifyMessage.ts +35 -24
- package/src/types/ModifyPassage.ts +15 -15
- package/src/types/ModifyProvider.ts +11 -11
- package/src/types/ModifySource.ts +14 -14
- package/src/types/ModifyTool.ts +14 -14
- package/src/types/OmittedReasoningContent.ts +6 -5
- package/src/types/OpenaiTypesChatChatCompletionMessageToolCallParamFunction.ts +3 -3
- package/src/types/OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction.ts +2 -2
- package/src/types/OpenaiTypesChatCompletionCreateParamsFunction.ts +5 -5
- package/src/types/Organization.ts +5 -5
- package/src/types/OrganizationCreate.ts +3 -3
- package/src/types/OrganizationUpdate.ts +3 -3
- package/src/types/ParameterProperties.ts +3 -3
- package/src/types/ParametersSchema.ts +6 -6
- package/src/types/ParentToolRule.ts +4 -4
- package/src/types/Passage.ts +16 -16
- package/src/types/PassageUpdate.ts +16 -16
- package/src/types/PipRequirement.ts +3 -3
- package/src/types/Provider.ts +5 -5
- package/src/types/ProviderCreate.ts +3 -3
- package/src/types/ProviderUpdate.ts +3 -3
- package/src/types/ReasoningContent.ts +8 -7
- package/src/types/ReasoningMessage.ts +15 -13
- package/src/types/RedactedReasoningContent.ts +6 -5
- package/src/types/ResetGroupMessages.ts +10 -10
- package/src/types/ResetMessages.ts +14 -14
- package/src/types/ResponseFormatJSONObject.ts +2 -2
- package/src/types/ResponseFormatJSONSchema.ts +4 -4
- package/src/types/ResponseFormatText.ts +2 -2
- package/src/types/RetrieveAgent.ts +11 -11
- package/src/types/RetrieveAgentContextWindow.ts +12 -11
- package/src/types/RetrieveAgentMemory.ts +11 -11
- package/src/types/RetrieveBlock.ts +11 -11
- package/src/types/RetrieveCoreMemoryBlock.ts +12 -12
- package/src/types/RetrieveGroup.ts +11 -11
- package/src/types/RetrieveIdentity.ts +11 -11
- package/src/types/RetrieveJob.ts +11 -11
- package/src/types/RetrieveRun.ts +11 -11
- package/src/types/RetrieveRunUsage.ts +11 -11
- package/src/types/RetrieveSource.ts +11 -11
- package/src/types/RetrieveStep.ts +11 -11
- package/src/types/RetrieveTool.ts +11 -11
- package/src/types/RoundRobinManager.ts +3 -3
- package/src/types/RoundRobinManagerUpdate.ts +3 -3
- package/src/types/Run.ts +15 -15
- package/src/types/RunToolFromSource.ts +11 -11
- package/src/types/SSEServerConfig.ts +5 -5
- package/src/types/SandboxConfig.ts +10 -10
- package/src/types/SandboxConfigCreate.ts +4 -4
- package/src/types/SandboxConfigUpdate.ts +4 -4
- package/src/types/SandboxEnvironmentVariable.ts +10 -10
- package/src/types/SandboxEnvironmentVariableCreate.ts +4 -4
- package/src/types/SandboxEnvironmentVariableUpdate.ts +4 -4
- package/src/types/SandboxType.ts +4 -3
- package/src/types/SendGroupMessage.ts +14 -14
- package/src/types/SendGroupMessageStreaming.ts +14 -13
- package/src/types/SendMessage.ts +14 -14
- package/src/types/SleeptimeManager.ts +4 -4
- package/src/types/SleeptimeManagerUpdate.ts +4 -4
- package/src/types/Source.ts +12 -12
- package/src/types/SourceCreate.ts +9 -9
- package/src/types/SourceUpdate.ts +7 -7
- package/src/types/StdioServerConfig.ts +8 -8
- package/src/types/Step.ts +20 -20
- package/src/types/SupervisorManager.ts +3 -3
- package/src/types/SupervisorManagerUpdate.ts +3 -3
- package/src/types/SystemMessage.ts +10 -9
- package/src/types/TagSchema.ts +2 -2
- package/src/types/TerminalToolRule.ts +3 -3
- package/src/types/TextContent.ts +6 -5
- package/src/types/Tool.ts +18 -18
- package/src/types/ToolCall.ts +4 -4
- package/src/types/ToolCallContent.ts +9 -8
- package/src/types/ToolCallDelta.ts +4 -4
- package/src/types/ToolCallMessage.ts +12 -11
- package/src/types/ToolCreate.ts +10 -10
- package/src/types/ToolEnvVarSchema.ts +6 -6
- package/src/types/ToolJSONSchema.ts +7 -7
- package/src/types/ToolReturn.ts +7 -6
- package/src/types/ToolReturnContent.ts +5 -5
- package/src/types/ToolReturnMessage.ts +17 -15
- package/src/types/ToolRunFromSource.ts +12 -12
- package/src/types/ToolSchema.ts +15 -15
- package/src/types/ToolType.ts +3 -3
- package/src/types/ToolUpdate.ts +10 -10
- package/src/types/UpdateAgent.ts +43 -33
- package/src/types/UpdateAssistantMessage.ts +4 -4
- package/src/types/UpdateIdentity.ts +14 -14
- package/src/types/UpdateReasoningMessage.ts +3 -3
- package/src/types/UpdateSystemMessage.ts +3 -3
- package/src/types/UpdateUserMessage.ts +4 -4
- package/src/types/UploadFileToSource.ts +14 -14
- package/src/types/UpsertIdentity.ts +14 -14
- package/src/types/UpsertIdentityProperties.ts +14 -13
- package/src/types/UpsertTool.ts +11 -11
- package/src/types/UsageStatistics.ts +4 -4
- package/src/types/User.ts +6 -6
- package/src/types/UserCreate.ts +2 -2
- package/src/types/UserMessage.ts +11 -10
- package/src/types/UserUpdate.ts +3 -3
- package/src/types/ValidationError.ts +4 -4
- package/src/types/WebSearchOptions.ts +7 -6
- package/src/types/WebSearchOptionsUserLocation.ts +4 -4
- package/src/types/WebSearchOptionsUserLocationApproximate.ts +5 -5
- package/src/types/agents/CreateTemplateFromAgent.ts +18 -17
- package/src/types/agents/GetAgentVariables.ts +15 -14
- package/src/types/agents/MigrateAgent.ts +35 -30
- package/src/types/agents/SearchDeployedAgents.ts +50 -42
- package/src/types/agents/VersionAgentTemplate.ts +26 -23
- package/src/types/agents/index.ts +13 -10
- package/src/types/clientSideAccessTokens/CreateClientSideAccessToken.ts +39 -34
- package/src/types/clientSideAccessTokens/DeleteClientSideAccessToken.ts +14 -12
- package/src/types/clientSideAccessTokens/index.ts +9 -3
- package/src/types/index.ts +653 -328
- package/src/types/templates/CreateAgentsFromTemplate.ts +21 -20
- package/src/types/templates/index.ts +1 -1
- package/types/agents/index.d.ts +1 -1
- package/types/clientSideAccessTokens/index.d.ts +1 -1
- package/types/index.d.ts +67 -67
@@ -1 +1,995 @@
|
|
1
|
-
{"properties":{"created_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Id","description":"The id of the user that made this object."},"last_updated_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Updated By Id","description":"The id of the user that made this object."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"The timestamp when the object was created."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"The timestamp when the object was last updated."},"id":{"type":"string","title":"Id","description":"The id of the agent. Assigned by the database."},"name":{"type":"string","title":"Name","description":"The name of the agent."},"tool_rules":{"anyOf":[{"items":{"oneOf":[{"properties":{"tool_name":{"type":"string","title":"Tool Name","description":"The name of the tool. Must exist in the database for the user's organization."},"type":{"type":"string","const":"constrain_child_tools","title":"Type","default":"constrain_child_tools"},"children":{"items":{"type":"string"},"type":"array","title":"Children","description":"The children tools that can be invoked."}},"additionalProperties":false,"type":"object","required":["tool_name","children"],"title":"ChildToolRule","description":"A ToolRule represents a tool that can be invoked by the agent.","x-readme-ref-name":"ChildToolRule"},{"properties":{"tool_name":{"type":"string","title":"Tool Name","description":"The name of the tool. Must exist in the database for the user's organization."},"type":{"type":"string","const":"run_first","title":"Type","default":"run_first"}},"additionalProperties":false,"type":"object","required":["tool_name"],"title":"InitToolRule","description":"Represents the initial tool rule configuration.","x-readme-ref-name":"InitToolRule"},{"properties":{"tool_name":{"type":"string","title":"Tool Name","description":"The name of the tool. Must exist in the database for the user's organization."},"type":{"type":"string","const":"exit_loop","title":"Type","default":"exit_loop"}},"additionalProperties":false,"type":"object","required":["tool_name"],"title":"TerminalToolRule","description":"Represents a terminal tool rule configuration where if this tool gets called, it must end the agent loop.","x-readme-ref-name":"TerminalToolRule"},{"properties":{"tool_name":{"type":"string","title":"Tool Name","description":"The name of the tool. Must exist in the database for the user's organization."},"type":{"type":"string","const":"conditional","title":"Type","default":"conditional"},"default_child":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Child","description":"The default child tool to be called. If None, any tool can be called."},"child_output_mapping":{"additionalProperties":{"type":"string"},"type":"object","title":"Child Output Mapping","description":"The output case to check for mapping"},"require_output_mapping":{"type":"boolean","title":"Require Output Mapping","description":"Whether to throw an error when output doesn't match any case","default":false}},"additionalProperties":false,"type":"object","required":["tool_name","child_output_mapping"],"title":"ConditionalToolRule","description":"A ToolRule that conditionally maps to different child tools based on the output.","x-readme-ref-name":"ConditionalToolRule"},{"properties":{"tool_name":{"type":"string","title":"Tool Name","description":"The name of the tool. Must exist in the database for the user's organization."},"type":{"type":"string","const":"continue_loop","title":"Type","default":"continue_loop"}},"additionalProperties":false,"type":"object","required":["tool_name"],"title":"ContinueToolRule","description":"Represents a tool rule configuration where if this tool gets called, it must continue the agent loop.","x-readme-ref-name":"ContinueToolRule"},{"properties":{"tool_name":{"type":"string","title":"Tool Name","description":"The name of the tool. Must exist in the database for the user's organization."},"type":{"type":"string","const":"max_count_per_step","title":"Type","default":"max_count_per_step"},"max_count_limit":{"type":"integer","title":"Max Count Limit","description":"The max limit for the total number of times this tool can be invoked in a single step."}},"additionalProperties":false,"type":"object","required":["tool_name","max_count_limit"],"title":"MaxCountPerStepToolRule","description":"Represents a tool rule configuration which constrains the total number of times this tool can be invoked in a single step.","x-readme-ref-name":"MaxCountPerStepToolRule"},{"properties":{"tool_name":{"type":"string","title":"Tool Name","description":"The name of the tool. Must exist in the database for the user's organization."},"type":{"type":"string","const":"parent_last_tool","title":"Type","default":"parent_last_tool"},"children":{"items":{"type":"string"},"type":"array","title":"Children","description":"The children tools that can be invoked."}},"additionalProperties":false,"type":"object","required":["tool_name","children"],"title":"ParentToolRule","description":"A ToolRule that only allows a child tool to be called if the parent has been called.","x-readme-ref-name":"ParentToolRule"}],"discriminator":{"propertyName":"type","mapping":{"conditional":"#/components/schemas/ConditionalToolRule","constrain_child_tools":"#/components/schemas/ChildToolRule","continue_loop":"#/components/schemas/ContinueToolRule","exit_loop":"#/components/schemas/TerminalToolRule","max_count_per_step":"#/components/schemas/MaxCountPerStepToolRule","parent_last_tool":"#/components/schemas/ParentToolRule","run_first":"#/components/schemas/InitToolRule"}}},"type":"array"},{"type":"null"}],"title":"Tool Rules","description":"The list of tool rules."},"message_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Message Ids","description":"The ids of the messages in the agent's in-context memory."},"system":{"type":"string","title":"System","description":"The system prompt used by the agent."},"agent_type":{"description":"The type of agent.","type":"string","enum":["memgpt_agent","split_thread_agent","sleeptime_agent"],"title":"AgentType","x-readme-ref-name":"AgentType"},"llm_config":{"description":"The LLM configuration used by the agent.","properties":{"model":{"type":"string","title":"Model","description":"LLM model name. "},"model_endpoint_type":{"type":"string","enum":["openai","anthropic","cohere","google_ai","google_vertex","azure","groq","ollama","webui","webui-legacy","lmstudio","lmstudio-legacy","lmstudio-chatcompletions","llamacpp","koboldcpp","vllm","hugging-face","mistral","together","bedrock","deepseek","xai"],"title":"Model Endpoint Type","description":"The endpoint type for the model."},"model_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Endpoint","description":"The endpoint for the model."},"model_wrapper":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Wrapper","description":"The wrapper for the model."},"context_window":{"type":"integer","title":"Context Window","description":"The context window size for the model."},"put_inner_thoughts_in_kwargs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Put Inner Thoughts In Kwargs","description":"Puts 'inner_thoughts' as a kwarg in the function call if this is set to True. This helps with function calling performance and also the generation of inner thoughts.","default":true},"handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle","description":"The handle for this config, in the format provider/model-name."},"temperature":{"type":"number","title":"Temperature","description":"The temperature to use when generating text with the model. A higher temperature will result in more random text.","default":0.7},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens","description":"The maximum number of tokens to generate. If not set, the model will use its default value.","default":4096},"enable_reasoner":{"type":"boolean","title":"Enable Reasoner","description":"Whether or not the model should use extended thinking if it is a 'reasoning' style model","default":false},"max_reasoning_tokens":{"type":"integer","title":"Max Reasoning Tokens","description":"Configurable thinking budget for extended thinking, only used if enable_reasoner is True. Minimum value is 1024.","default":0}},"type":"object","required":["model","model_endpoint_type","context_window"],"title":"LLMConfig","x-readme-ref-name":"LLMConfig"},"embedding_config":{"properties":{"embedding_endpoint_type":{"type":"string","enum":["openai","anthropic","bedrock","cohere","google_ai","google_vertex","azure","groq","ollama","webui","webui-legacy","lmstudio","lmstudio-legacy","llamacpp","koboldcpp","vllm","hugging-face","mistral","together"],"title":"Embedding Endpoint Type","description":"The endpoint type for the model."},"embedding_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Embedding Endpoint","description":"The endpoint for the model (`None` if local)."},"embedding_model":{"type":"string","title":"Embedding Model","description":"The model for the embedding."},"embedding_dim":{"type":"integer","title":"Embedding Dim","description":"The dimension of the embedding."},"embedding_chunk_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Embedding Chunk Size","description":"The chunk size of the embedding.","default":300},"handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle","description":"The handle for this config, in the format provider/model-name."},"azure_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Azure Endpoint","description":"The Azure endpoint for the model."},"azure_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Azure Version","description":"The Azure version for the model."},"azure_deployment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Azure Deployment","description":"The Azure deployment for the model."}},"type":"object","required":["embedding_endpoint_type","embedding_model","embedding_dim"],"title":"EmbeddingConfig","description":"The embedding configuration used by the agent.","x-readme-ref-name":"EmbeddingConfig"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the agent."},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"The metadata of the agent."},"memory":{"description":"The in-context memory of the agent.","properties":{"blocks":{"items":{"properties":{"value":{"type":"string","title":"Value","description":"Value of the block."},"limit":{"type":"integer","title":"Limit","description":"Character limit of the block.","default":5000},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Name of the block if it is a template."},"is_template":{"type":"boolean","title":"Is Template","description":"Whether the block is a template (e.g. saved human/persona options).","default":false},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","description":"Label of the block (e.g. 'human', 'persona') in the context window."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the block."},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Metadata of the block.","default":{}},"id":{"type":"string","pattern":"^block-[a-fA-F0-9]{8}","title":"Id","description":"The human-friendly ID of the Block","examples":["block-123e4567-e89b-12d3-a456-426614174000"]},"created_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Id","description":"The id of the user that made this Block."},"last_updated_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Updated By Id","description":"The id of the user that last updated this Block."}},"type":"object","required":["value"],"title":"Block","description":"A Block represents a reserved section of the LLM's context window which is editable. `Block` objects contained in the `Memory` object, which is able to edit the Block values.\n\nParameters:\n label (str): The label of the block (e.g. 'human', 'persona'). This defines a category for the block.\n value (str): The value of the block. This is the string that is represented in the context window.\n limit (int): The character limit of the block.\n is_template (bool): Whether the block is a template (e.g. saved human/persona options). Non-template blocks are not stored in the database and are ephemeral, while templated blocks are stored in the database.\n label (str): The label of the block (e.g. 'human', 'persona'). This defines a category for the block.\n template_name (str): The name of the block template (if it is a template).\n description (str): Description of the block.\n metadata (Dict): Metadata of the block.\n user_id (str): The unique identifier of the user associated with the block.","x-readme-ref-name":"Block"},"type":"array","title":"Blocks","description":"Memory blocks contained in the agent's in-context memory"},"prompt_template":{"type":"string","title":"Prompt Template","description":"Jinja2 template for compiling memory blocks into a prompt string","default":"{% for block in blocks %}<{{ block.label }} characters=\"{{ block.value|length }}/{{ block.limit }}\">\n{{ block.value }}\n</{{ block.label }}>{% if not loop.last %}\n{% endif %}{% endfor %}"}},"type":"object","required":["blocks"],"title":"Memory","x-readme-ref-name":"Memory"},"tools":{"items":{"properties":{"id":{"type":"string","pattern":"^tool-[a-fA-F0-9]{8}","title":"Id","description":"The human-friendly ID of the Tool","examples":["tool-123e4567-e89b-12d3-a456-426614174000"]},"tool_type":{"description":"The type of the tool.","default":"custom","type":"string","enum":["custom","letta_core","letta_memory_core","letta_multi_agent_core","letta_sleeptime_core","external_composio","external_langchain","external_mcp"],"title":"ToolType","x-readme-ref-name":"ToolType"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the tool."},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type","description":"The type of the source code."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The name of the function."},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","description":"Metadata tags.","default":[]},"source_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Code","description":"The source code of the function."},"json_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Json Schema","description":"The JSON schema of the function."},"args_json_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Args Json Schema","description":"The args JSON schema of the function."},"return_char_limit":{"type":"integer","title":"Return Char Limit","description":"The maximum number of characters in the response.","default":6000},"created_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Id","description":"The id of the user that made this Tool."},"last_updated_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Updated By Id","description":"The id of the user that made this Tool."},"metadata_":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"A dictionary of additional metadata for the tool."}},"additionalProperties":false,"type":"object","title":"Tool","description":"Representation of a tool, which is a function that can be called by the agent.\n\nParameters:\n id (str): The unique identifier of the tool.\n name (str): The name of the function.\n tags (List[str]): Metadata tags.\n source_code (str): The source code of the function.\n json_schema (Dict): The JSON schema of the function.","x-readme-ref-name":"Tool"},"type":"array","title":"Tools","description":"The tools used by the agent."},"sources":{"items":{"properties":{"id":{"type":"string","pattern":"^source-[a-fA-F0-9]{8}","title":"Id","description":"The human-friendly ID of the Source","examples":["source-123e4567-e89b-12d3-a456-426614174000"]},"name":{"type":"string","title":"Name","description":"The name of the source."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"The description of the source."},"embedding_config":{"description":"The embedding configuration used by the source.","properties":{"embedding_endpoint_type":{"type":"string","enum":["openai","anthropic","bedrock","cohere","google_ai","google_vertex","azure","groq","ollama","webui","webui-legacy","lmstudio","lmstudio-legacy","llamacpp","koboldcpp","vllm","hugging-face","mistral","together"],"title":"Embedding Endpoint Type","description":"The endpoint type for the model."},"embedding_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Embedding Endpoint","description":"The endpoint for the model (`None` if local)."},"embedding_model":{"type":"string","title":"Embedding Model","description":"The model for the embedding."},"embedding_dim":{"type":"integer","title":"Embedding Dim","description":"The dimension of the embedding."},"embedding_chunk_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Embedding Chunk Size","description":"The chunk size of the embedding.","default":300},"handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle","description":"The handle for this config, in the format provider/model-name."},"azure_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Azure Endpoint","description":"The Azure endpoint for the model."},"azure_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Azure Version","description":"The Azure version for the model."},"azure_deployment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Azure Deployment","description":"The Azure deployment for the model."}},"type":"object","required":["embedding_endpoint_type","embedding_model","embedding_dim"],"title":"EmbeddingConfig","x-readme-ref-name":"EmbeddingConfig"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Metadata associated with the source."},"created_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Id","description":"The id of the user that made this Tool."},"last_updated_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Updated By Id","description":"The id of the user that made this Tool."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"The timestamp when the source was created."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"The timestamp when the source was last updated."}},"additionalProperties":false,"type":"object","required":["name","embedding_config"],"title":"Source","description":"Representation of a source, which is a collection of files and passages.\n\nParameters:\n id (str): The ID of the source\n name (str): The name of the source.\n embedding_config (EmbeddingConfig): The embedding configuration used by the source.\n user_id (str): The ID of the user that created the source.\n metadata (dict): Metadata associated with the source.\n description (str): The description of the source.","x-readme-ref-name":"Source"},"type":"array","title":"Sources","description":"The sources used by the agent."},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","description":"The tags associated with the agent."},"tool_exec_environment_variables":{"items":{"properties":{"created_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Id","description":"The id of the user that made this object."},"last_updated_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Updated By Id","description":"The id of the user that made this object."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"The timestamp when the object was created."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"The timestamp when the object was last updated."},"id":{"type":"string","pattern":"^agent-env-[a-fA-F0-9]{8}","title":"Id","description":"The human-friendly ID of the Agent-env","examples":["agent-env-123e4567-e89b-12d3-a456-426614174000"]},"key":{"type":"string","title":"Key","description":"The name of the environment variable."},"value":{"type":"string","title":"Value","description":"The value of the environment variable."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"An optional description of the environment variable."},"agent_id":{"type":"string","title":"Agent Id","description":"The ID of the agent this environment variable belongs to."}},"additionalProperties":false,"type":"object","required":["key","value","agent_id"],"title":"AgentEnvironmentVariable","x-readme-ref-name":"AgentEnvironmentVariable"},"type":"array","title":"Tool Exec Environment Variables","description":"The environment variables for tool execution specific to this agent."},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id","description":"The id of the project the agent belongs to."},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id","description":"The id of the template the agent belongs to."},"base_template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Template Id","description":"The base template id of the agent."},"identity_ids":{"items":{"type":"string"},"type":"array","title":"Identity Ids","description":"The ids of the identities associated with this agent.","default":[]},"message_buffer_autoclear":{"type":"boolean","title":"Message Buffer Autoclear","description":"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.","default":false},"enable_sleeptime":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Sleeptime","description":"If set to True, memory management will move to a background agent thread."},"multi_agent_group":{"anyOf":[{"properties":{"id":{"type":"string","title":"Id","description":"The id of the group. Assigned by the database."},"manager_type":{"description":"","type":"string","enum":["round_robin","supervisor","dynamic","sleeptime","swarm"],"title":"ManagerType","x-readme-ref-name":"ManagerType"},"agent_ids":{"items":{"type":"string"},"type":"array","title":"Agent Ids","description":""},"description":{"type":"string","title":"Description","description":""},"shared_block_ids":{"items":{"type":"string"},"type":"array","title":"Shared Block Ids","description":"","default":[]},"manager_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manager Agent Id","description":""},"termination_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Termination Token","description":""},"max_turns":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Turns","description":""},"sleeptime_agent_frequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sleeptime Agent Frequency","description":""},"turns_counter":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turns Counter","description":""},"last_processed_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Processed Message Id","description":""}},"additionalProperties":false,"type":"object","required":["id","manager_type","agent_ids","description"],"title":"Group","x-readme-ref-name":"Group"},{"type":"null"}],"description":"The multi-agent group that this agent manages"}},"additionalProperties":false,"type":"object","required":["id","name","system","agent_type","llm_config","embedding_config","memory","tools","sources","tags"],"title":"AgentState","description":"Representation of an agent's state. This is the state of the agent at a given time, and is persisted in the DB backend. The state has all the information needed to recreate a persisted agent.\n\nParameters:\n id (str): The unique identifier of the agent.\n name (str): The name of the agent (must be unique to the user).\n created_at (datetime): The datetime the agent was created.\n message_ids (List[str]): The ids of the messages in the agent's in-context memory.\n memory (Memory): The in-context memory of the agent.\n tools (List[str]): The tools used by the agent. This includes any memory editing functions specified in `memory`.\n system (str): The system prompt used by the agent.\n llm_config (LLMConfig): The LLM configuration used by the agent.\n embedding_config (EmbeddingConfig): The embedding configuration used by the agent.","x-readme-ref-name":"AgentState"}
|
1
|
+
{
|
2
|
+
"properties": {
|
3
|
+
"created_by_id": {
|
4
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
5
|
+
"title": "Created By Id",
|
6
|
+
"description": "The id of the user that made this object."
|
7
|
+
},
|
8
|
+
"last_updated_by_id": {
|
9
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
10
|
+
"title": "Last Updated By Id",
|
11
|
+
"description": "The id of the user that made this object."
|
12
|
+
},
|
13
|
+
"created_at": {
|
14
|
+
"anyOf": [
|
15
|
+
{ "type": "string", "format": "date-time" },
|
16
|
+
{ "type": "null" }
|
17
|
+
],
|
18
|
+
"title": "Created At",
|
19
|
+
"description": "The timestamp when the object was created."
|
20
|
+
},
|
21
|
+
"updated_at": {
|
22
|
+
"anyOf": [
|
23
|
+
{ "type": "string", "format": "date-time" },
|
24
|
+
{ "type": "null" }
|
25
|
+
],
|
26
|
+
"title": "Updated At",
|
27
|
+
"description": "The timestamp when the object was last updated."
|
28
|
+
},
|
29
|
+
"id": {
|
30
|
+
"type": "string",
|
31
|
+
"title": "Id",
|
32
|
+
"description": "The id of the agent. Assigned by the database."
|
33
|
+
},
|
34
|
+
"name": {
|
35
|
+
"type": "string",
|
36
|
+
"title": "Name",
|
37
|
+
"description": "The name of the agent."
|
38
|
+
},
|
39
|
+
"tool_rules": {
|
40
|
+
"anyOf": [
|
41
|
+
{
|
42
|
+
"items": {
|
43
|
+
"oneOf": [
|
44
|
+
{
|
45
|
+
"properties": {
|
46
|
+
"tool_name": {
|
47
|
+
"type": "string",
|
48
|
+
"title": "Tool Name",
|
49
|
+
"description": "The name of the tool. Must exist in the database for the user's organization."
|
50
|
+
},
|
51
|
+
"type": {
|
52
|
+
"type": "string",
|
53
|
+
"const": "constrain_child_tools",
|
54
|
+
"title": "Type",
|
55
|
+
"default": "constrain_child_tools"
|
56
|
+
},
|
57
|
+
"children": {
|
58
|
+
"items": { "type": "string" },
|
59
|
+
"type": "array",
|
60
|
+
"title": "Children",
|
61
|
+
"description": "The children tools that can be invoked."
|
62
|
+
}
|
63
|
+
},
|
64
|
+
"additionalProperties": false,
|
65
|
+
"type": "object",
|
66
|
+
"required": ["tool_name", "children"],
|
67
|
+
"title": "ChildToolRule",
|
68
|
+
"description": "A ToolRule represents a tool that can be invoked by the agent.",
|
69
|
+
"x-readme-ref-name": "ChildToolRule"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"properties": {
|
73
|
+
"tool_name": {
|
74
|
+
"type": "string",
|
75
|
+
"title": "Tool Name",
|
76
|
+
"description": "The name of the tool. Must exist in the database for the user's organization."
|
77
|
+
},
|
78
|
+
"type": {
|
79
|
+
"type": "string",
|
80
|
+
"const": "run_first",
|
81
|
+
"title": "Type",
|
82
|
+
"default": "run_first"
|
83
|
+
}
|
84
|
+
},
|
85
|
+
"additionalProperties": false,
|
86
|
+
"type": "object",
|
87
|
+
"required": ["tool_name"],
|
88
|
+
"title": "InitToolRule",
|
89
|
+
"description": "Represents the initial tool rule configuration.",
|
90
|
+
"x-readme-ref-name": "InitToolRule"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"properties": {
|
94
|
+
"tool_name": {
|
95
|
+
"type": "string",
|
96
|
+
"title": "Tool Name",
|
97
|
+
"description": "The name of the tool. Must exist in the database for the user's organization."
|
98
|
+
},
|
99
|
+
"type": {
|
100
|
+
"type": "string",
|
101
|
+
"const": "exit_loop",
|
102
|
+
"title": "Type",
|
103
|
+
"default": "exit_loop"
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"additionalProperties": false,
|
107
|
+
"type": "object",
|
108
|
+
"required": ["tool_name"],
|
109
|
+
"title": "TerminalToolRule",
|
110
|
+
"description": "Represents a terminal tool rule configuration where if this tool gets called, it must end the agent loop.",
|
111
|
+
"x-readme-ref-name": "TerminalToolRule"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"properties": {
|
115
|
+
"tool_name": {
|
116
|
+
"type": "string",
|
117
|
+
"title": "Tool Name",
|
118
|
+
"description": "The name of the tool. Must exist in the database for the user's organization."
|
119
|
+
},
|
120
|
+
"type": {
|
121
|
+
"type": "string",
|
122
|
+
"const": "conditional",
|
123
|
+
"title": "Type",
|
124
|
+
"default": "conditional"
|
125
|
+
},
|
126
|
+
"default_child": {
|
127
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
128
|
+
"title": "Default Child",
|
129
|
+
"description": "The default child tool to be called. If None, any tool can be called."
|
130
|
+
},
|
131
|
+
"child_output_mapping": {
|
132
|
+
"additionalProperties": { "type": "string" },
|
133
|
+
"type": "object",
|
134
|
+
"title": "Child Output Mapping",
|
135
|
+
"description": "The output case to check for mapping"
|
136
|
+
},
|
137
|
+
"require_output_mapping": {
|
138
|
+
"type": "boolean",
|
139
|
+
"title": "Require Output Mapping",
|
140
|
+
"description": "Whether to throw an error when output doesn't match any case",
|
141
|
+
"default": false
|
142
|
+
}
|
143
|
+
},
|
144
|
+
"additionalProperties": false,
|
145
|
+
"type": "object",
|
146
|
+
"required": ["tool_name", "child_output_mapping"],
|
147
|
+
"title": "ConditionalToolRule",
|
148
|
+
"description": "A ToolRule that conditionally maps to different child tools based on the output.",
|
149
|
+
"x-readme-ref-name": "ConditionalToolRule"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"properties": {
|
153
|
+
"tool_name": {
|
154
|
+
"type": "string",
|
155
|
+
"title": "Tool Name",
|
156
|
+
"description": "The name of the tool. Must exist in the database for the user's organization."
|
157
|
+
},
|
158
|
+
"type": {
|
159
|
+
"type": "string",
|
160
|
+
"const": "continue_loop",
|
161
|
+
"title": "Type",
|
162
|
+
"default": "continue_loop"
|
163
|
+
}
|
164
|
+
},
|
165
|
+
"additionalProperties": false,
|
166
|
+
"type": "object",
|
167
|
+
"required": ["tool_name"],
|
168
|
+
"title": "ContinueToolRule",
|
169
|
+
"description": "Represents a tool rule configuration where if this tool gets called, it must continue the agent loop.",
|
170
|
+
"x-readme-ref-name": "ContinueToolRule"
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"properties": {
|
174
|
+
"tool_name": {
|
175
|
+
"type": "string",
|
176
|
+
"title": "Tool Name",
|
177
|
+
"description": "The name of the tool. Must exist in the database for the user's organization."
|
178
|
+
},
|
179
|
+
"type": {
|
180
|
+
"type": "string",
|
181
|
+
"const": "max_count_per_step",
|
182
|
+
"title": "Type",
|
183
|
+
"default": "max_count_per_step"
|
184
|
+
},
|
185
|
+
"max_count_limit": {
|
186
|
+
"type": "integer",
|
187
|
+
"title": "Max Count Limit",
|
188
|
+
"description": "The max limit for the total number of times this tool can be invoked in a single step."
|
189
|
+
}
|
190
|
+
},
|
191
|
+
"additionalProperties": false,
|
192
|
+
"type": "object",
|
193
|
+
"required": ["tool_name", "max_count_limit"],
|
194
|
+
"title": "MaxCountPerStepToolRule",
|
195
|
+
"description": "Represents a tool rule configuration which constrains the total number of times this tool can be invoked in a single step.",
|
196
|
+
"x-readme-ref-name": "MaxCountPerStepToolRule"
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"properties": {
|
200
|
+
"tool_name": {
|
201
|
+
"type": "string",
|
202
|
+
"title": "Tool Name",
|
203
|
+
"description": "The name of the tool. Must exist in the database for the user's organization."
|
204
|
+
},
|
205
|
+
"type": {
|
206
|
+
"type": "string",
|
207
|
+
"const": "parent_last_tool",
|
208
|
+
"title": "Type",
|
209
|
+
"default": "parent_last_tool"
|
210
|
+
},
|
211
|
+
"children": {
|
212
|
+
"items": { "type": "string" },
|
213
|
+
"type": "array",
|
214
|
+
"title": "Children",
|
215
|
+
"description": "The children tools that can be invoked."
|
216
|
+
}
|
217
|
+
},
|
218
|
+
"additionalProperties": false,
|
219
|
+
"type": "object",
|
220
|
+
"required": ["tool_name", "children"],
|
221
|
+
"title": "ParentToolRule",
|
222
|
+
"description": "A ToolRule that only allows a child tool to be called if the parent has been called.",
|
223
|
+
"x-readme-ref-name": "ParentToolRule"
|
224
|
+
}
|
225
|
+
],
|
226
|
+
"discriminator": {
|
227
|
+
"propertyName": "type",
|
228
|
+
"mapping": {
|
229
|
+
"conditional": "#/components/schemas/ConditionalToolRule",
|
230
|
+
"constrain_child_tools": "#/components/schemas/ChildToolRule",
|
231
|
+
"continue_loop": "#/components/schemas/ContinueToolRule",
|
232
|
+
"exit_loop": "#/components/schemas/TerminalToolRule",
|
233
|
+
"max_count_per_step": "#/components/schemas/MaxCountPerStepToolRule",
|
234
|
+
"parent_last_tool": "#/components/schemas/ParentToolRule",
|
235
|
+
"run_first": "#/components/schemas/InitToolRule"
|
236
|
+
}
|
237
|
+
}
|
238
|
+
},
|
239
|
+
"type": "array"
|
240
|
+
},
|
241
|
+
{ "type": "null" }
|
242
|
+
],
|
243
|
+
"title": "Tool Rules",
|
244
|
+
"description": "The list of tool rules."
|
245
|
+
},
|
246
|
+
"message_ids": {
|
247
|
+
"anyOf": [
|
248
|
+
{ "items": { "type": "string" }, "type": "array" },
|
249
|
+
{ "type": "null" }
|
250
|
+
],
|
251
|
+
"title": "Message Ids",
|
252
|
+
"description": "The ids of the messages in the agent's in-context memory."
|
253
|
+
},
|
254
|
+
"system": {
|
255
|
+
"type": "string",
|
256
|
+
"title": "System",
|
257
|
+
"description": "The system prompt used by the agent."
|
258
|
+
},
|
259
|
+
"agent_type": {
|
260
|
+
"description": "The type of agent.",
|
261
|
+
"type": "string",
|
262
|
+
"enum": ["memgpt_agent", "split_thread_agent", "sleeptime_agent"],
|
263
|
+
"title": "AgentType",
|
264
|
+
"x-readme-ref-name": "AgentType"
|
265
|
+
},
|
266
|
+
"llm_config": {
|
267
|
+
"description": "The LLM configuration used by the agent.",
|
268
|
+
"properties": {
|
269
|
+
"model": {
|
270
|
+
"type": "string",
|
271
|
+
"title": "Model",
|
272
|
+
"description": "LLM model name. "
|
273
|
+
},
|
274
|
+
"model_endpoint_type": {
|
275
|
+
"type": "string",
|
276
|
+
"enum": [
|
277
|
+
"openai",
|
278
|
+
"anthropic",
|
279
|
+
"cohere",
|
280
|
+
"google_ai",
|
281
|
+
"google_vertex",
|
282
|
+
"azure",
|
283
|
+
"groq",
|
284
|
+
"ollama",
|
285
|
+
"webui",
|
286
|
+
"webui-legacy",
|
287
|
+
"lmstudio",
|
288
|
+
"lmstudio-legacy",
|
289
|
+
"lmstudio-chatcompletions",
|
290
|
+
"llamacpp",
|
291
|
+
"koboldcpp",
|
292
|
+
"vllm",
|
293
|
+
"hugging-face",
|
294
|
+
"mistral",
|
295
|
+
"together",
|
296
|
+
"bedrock",
|
297
|
+
"deepseek",
|
298
|
+
"xai"
|
299
|
+
],
|
300
|
+
"title": "Model Endpoint Type",
|
301
|
+
"description": "The endpoint type for the model."
|
302
|
+
},
|
303
|
+
"model_endpoint": {
|
304
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
305
|
+
"title": "Model Endpoint",
|
306
|
+
"description": "The endpoint for the model."
|
307
|
+
},
|
308
|
+
"model_wrapper": {
|
309
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
310
|
+
"title": "Model Wrapper",
|
311
|
+
"description": "The wrapper for the model."
|
312
|
+
},
|
313
|
+
"context_window": {
|
314
|
+
"type": "integer",
|
315
|
+
"title": "Context Window",
|
316
|
+
"description": "The context window size for the model."
|
317
|
+
},
|
318
|
+
"put_inner_thoughts_in_kwargs": {
|
319
|
+
"anyOf": [{ "type": "boolean" }, { "type": "null" }],
|
320
|
+
"title": "Put Inner Thoughts In Kwargs",
|
321
|
+
"description": "Puts 'inner_thoughts' as a kwarg in the function call if this is set to True. This helps with function calling performance and also the generation of inner thoughts.",
|
322
|
+
"default": true
|
323
|
+
},
|
324
|
+
"handle": {
|
325
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
326
|
+
"title": "Handle",
|
327
|
+
"description": "The handle for this config, in the format provider/model-name."
|
328
|
+
},
|
329
|
+
"temperature": {
|
330
|
+
"type": "number",
|
331
|
+
"title": "Temperature",
|
332
|
+
"description": "The temperature to use when generating text with the model. A higher temperature will result in more random text.",
|
333
|
+
"default": 0.7
|
334
|
+
},
|
335
|
+
"max_tokens": {
|
336
|
+
"anyOf": [{ "type": "integer" }, { "type": "null" }],
|
337
|
+
"title": "Max Tokens",
|
338
|
+
"description": "The maximum number of tokens to generate. If not set, the model will use its default value.",
|
339
|
+
"default": 4096
|
340
|
+
},
|
341
|
+
"enable_reasoner": {
|
342
|
+
"type": "boolean",
|
343
|
+
"title": "Enable Reasoner",
|
344
|
+
"description": "Whether or not the model should use extended thinking if it is a 'reasoning' style model",
|
345
|
+
"default": false
|
346
|
+
},
|
347
|
+
"max_reasoning_tokens": {
|
348
|
+
"type": "integer",
|
349
|
+
"title": "Max Reasoning Tokens",
|
350
|
+
"description": "Configurable thinking budget for extended thinking, only used if enable_reasoner is True. Minimum value is 1024.",
|
351
|
+
"default": 0
|
352
|
+
}
|
353
|
+
},
|
354
|
+
"type": "object",
|
355
|
+
"required": ["model", "model_endpoint_type", "context_window"],
|
356
|
+
"title": "LLMConfig",
|
357
|
+
"x-readme-ref-name": "LLMConfig"
|
358
|
+
},
|
359
|
+
"embedding_config": {
|
360
|
+
"properties": {
|
361
|
+
"embedding_endpoint_type": {
|
362
|
+
"type": "string",
|
363
|
+
"enum": [
|
364
|
+
"openai",
|
365
|
+
"anthropic",
|
366
|
+
"bedrock",
|
367
|
+
"cohere",
|
368
|
+
"google_ai",
|
369
|
+
"google_vertex",
|
370
|
+
"azure",
|
371
|
+
"groq",
|
372
|
+
"ollama",
|
373
|
+
"webui",
|
374
|
+
"webui-legacy",
|
375
|
+
"lmstudio",
|
376
|
+
"lmstudio-legacy",
|
377
|
+
"llamacpp",
|
378
|
+
"koboldcpp",
|
379
|
+
"vllm",
|
380
|
+
"hugging-face",
|
381
|
+
"mistral",
|
382
|
+
"together"
|
383
|
+
],
|
384
|
+
"title": "Embedding Endpoint Type",
|
385
|
+
"description": "The endpoint type for the model."
|
386
|
+
},
|
387
|
+
"embedding_endpoint": {
|
388
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
389
|
+
"title": "Embedding Endpoint",
|
390
|
+
"description": "The endpoint for the model (`None` if local)."
|
391
|
+
},
|
392
|
+
"embedding_model": {
|
393
|
+
"type": "string",
|
394
|
+
"title": "Embedding Model",
|
395
|
+
"description": "The model for the embedding."
|
396
|
+
},
|
397
|
+
"embedding_dim": {
|
398
|
+
"type": "integer",
|
399
|
+
"title": "Embedding Dim",
|
400
|
+
"description": "The dimension of the embedding."
|
401
|
+
},
|
402
|
+
"embedding_chunk_size": {
|
403
|
+
"anyOf": [{ "type": "integer" }, { "type": "null" }],
|
404
|
+
"title": "Embedding Chunk Size",
|
405
|
+
"description": "The chunk size of the embedding.",
|
406
|
+
"default": 300
|
407
|
+
},
|
408
|
+
"handle": {
|
409
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
410
|
+
"title": "Handle",
|
411
|
+
"description": "The handle for this config, in the format provider/model-name."
|
412
|
+
},
|
413
|
+
"azure_endpoint": {
|
414
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
415
|
+
"title": "Azure Endpoint",
|
416
|
+
"description": "The Azure endpoint for the model."
|
417
|
+
},
|
418
|
+
"azure_version": {
|
419
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
420
|
+
"title": "Azure Version",
|
421
|
+
"description": "The Azure version for the model."
|
422
|
+
},
|
423
|
+
"azure_deployment": {
|
424
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
425
|
+
"title": "Azure Deployment",
|
426
|
+
"description": "The Azure deployment for the model."
|
427
|
+
}
|
428
|
+
},
|
429
|
+
"type": "object",
|
430
|
+
"required": [
|
431
|
+
"embedding_endpoint_type",
|
432
|
+
"embedding_model",
|
433
|
+
"embedding_dim"
|
434
|
+
],
|
435
|
+
"title": "EmbeddingConfig",
|
436
|
+
"description": "The embedding configuration used by the agent.",
|
437
|
+
"x-readme-ref-name": "EmbeddingConfig"
|
438
|
+
},
|
439
|
+
"description": {
|
440
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
441
|
+
"title": "Description",
|
442
|
+
"description": "The description of the agent."
|
443
|
+
},
|
444
|
+
"metadata": {
|
445
|
+
"anyOf": [
|
446
|
+
{ "additionalProperties": true, "type": "object" },
|
447
|
+
{ "type": "null" }
|
448
|
+
],
|
449
|
+
"title": "Metadata",
|
450
|
+
"description": "The metadata of the agent."
|
451
|
+
},
|
452
|
+
"memory": {
|
453
|
+
"description": "The in-context memory of the agent.",
|
454
|
+
"properties": {
|
455
|
+
"blocks": {
|
456
|
+
"items": {
|
457
|
+
"properties": {
|
458
|
+
"value": {
|
459
|
+
"type": "string",
|
460
|
+
"title": "Value",
|
461
|
+
"description": "Value of the block."
|
462
|
+
},
|
463
|
+
"limit": {
|
464
|
+
"type": "integer",
|
465
|
+
"title": "Limit",
|
466
|
+
"description": "Character limit of the block.",
|
467
|
+
"default": 5000
|
468
|
+
},
|
469
|
+
"name": {
|
470
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
471
|
+
"title": "Name",
|
472
|
+
"description": "Name of the block if it is a template."
|
473
|
+
},
|
474
|
+
"is_template": {
|
475
|
+
"type": "boolean",
|
476
|
+
"title": "Is Template",
|
477
|
+
"description": "Whether the block is a template (e.g. saved human/persona options).",
|
478
|
+
"default": false
|
479
|
+
},
|
480
|
+
"label": {
|
481
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
482
|
+
"title": "Label",
|
483
|
+
"description": "Label of the block (e.g. 'human', 'persona') in the context window."
|
484
|
+
},
|
485
|
+
"description": {
|
486
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
487
|
+
"title": "Description",
|
488
|
+
"description": "Description of the block."
|
489
|
+
},
|
490
|
+
"metadata": {
|
491
|
+
"anyOf": [
|
492
|
+
{ "additionalProperties": true, "type": "object" },
|
493
|
+
{ "type": "null" }
|
494
|
+
],
|
495
|
+
"title": "Metadata",
|
496
|
+
"description": "Metadata of the block.",
|
497
|
+
"default": {}
|
498
|
+
},
|
499
|
+
"id": {
|
500
|
+
"type": "string",
|
501
|
+
"pattern": "^block-[a-fA-F0-9]{8}",
|
502
|
+
"title": "Id",
|
503
|
+
"description": "The human-friendly ID of the Block",
|
504
|
+
"examples": ["block-123e4567-e89b-12d3-a456-426614174000"]
|
505
|
+
},
|
506
|
+
"created_by_id": {
|
507
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
508
|
+
"title": "Created By Id",
|
509
|
+
"description": "The id of the user that made this Block."
|
510
|
+
},
|
511
|
+
"last_updated_by_id": {
|
512
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
513
|
+
"title": "Last Updated By Id",
|
514
|
+
"description": "The id of the user that last updated this Block."
|
515
|
+
}
|
516
|
+
},
|
517
|
+
"type": "object",
|
518
|
+
"required": ["value"],
|
519
|
+
"title": "Block",
|
520
|
+
"description": "A Block represents a reserved section of the LLM's context window which is editable. `Block` objects contained in the `Memory` object, which is able to edit the Block values.\n\nParameters:\n label (str): The label of the block (e.g. 'human', 'persona'). This defines a category for the block.\n value (str): The value of the block. This is the string that is represented in the context window.\n limit (int): The character limit of the block.\n is_template (bool): Whether the block is a template (e.g. saved human/persona options). Non-template blocks are not stored in the database and are ephemeral, while templated blocks are stored in the database.\n label (str): The label of the block (e.g. 'human', 'persona'). This defines a category for the block.\n template_name (str): The name of the block template (if it is a template).\n description (str): Description of the block.\n metadata (Dict): Metadata of the block.\n user_id (str): The unique identifier of the user associated with the block.",
|
521
|
+
"x-readme-ref-name": "Block"
|
522
|
+
},
|
523
|
+
"type": "array",
|
524
|
+
"title": "Blocks",
|
525
|
+
"description": "Memory blocks contained in the agent's in-context memory"
|
526
|
+
},
|
527
|
+
"prompt_template": {
|
528
|
+
"type": "string",
|
529
|
+
"title": "Prompt Template",
|
530
|
+
"description": "Jinja2 template for compiling memory blocks into a prompt string",
|
531
|
+
"default": "{% for block in blocks %}<{{ block.label }} characters=\"{{ block.value|length }}/{{ block.limit }}\">\n{{ block.value }}\n</{{ block.label }}>{% if not loop.last %}\n{% endif %}{% endfor %}"
|
532
|
+
}
|
533
|
+
},
|
534
|
+
"type": "object",
|
535
|
+
"required": ["blocks"],
|
536
|
+
"title": "Memory",
|
537
|
+
"x-readme-ref-name": "Memory"
|
538
|
+
},
|
539
|
+
"tools": {
|
540
|
+
"items": {
|
541
|
+
"properties": {
|
542
|
+
"id": {
|
543
|
+
"type": "string",
|
544
|
+
"pattern": "^tool-[a-fA-F0-9]{8}",
|
545
|
+
"title": "Id",
|
546
|
+
"description": "The human-friendly ID of the Tool",
|
547
|
+
"examples": ["tool-123e4567-e89b-12d3-a456-426614174000"]
|
548
|
+
},
|
549
|
+
"tool_type": {
|
550
|
+
"description": "The type of the tool.",
|
551
|
+
"default": "custom",
|
552
|
+
"type": "string",
|
553
|
+
"enum": [
|
554
|
+
"custom",
|
555
|
+
"letta_core",
|
556
|
+
"letta_memory_core",
|
557
|
+
"letta_multi_agent_core",
|
558
|
+
"letta_sleeptime_core",
|
559
|
+
"external_composio",
|
560
|
+
"external_langchain",
|
561
|
+
"external_mcp"
|
562
|
+
],
|
563
|
+
"title": "ToolType",
|
564
|
+
"x-readme-ref-name": "ToolType"
|
565
|
+
},
|
566
|
+
"description": {
|
567
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
568
|
+
"title": "Description",
|
569
|
+
"description": "The description of the tool."
|
570
|
+
},
|
571
|
+
"source_type": {
|
572
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
573
|
+
"title": "Source Type",
|
574
|
+
"description": "The type of the source code."
|
575
|
+
},
|
576
|
+
"name": {
|
577
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
578
|
+
"title": "Name",
|
579
|
+
"description": "The name of the function."
|
580
|
+
},
|
581
|
+
"tags": {
|
582
|
+
"items": { "type": "string" },
|
583
|
+
"type": "array",
|
584
|
+
"title": "Tags",
|
585
|
+
"description": "Metadata tags.",
|
586
|
+
"default": []
|
587
|
+
},
|
588
|
+
"source_code": {
|
589
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
590
|
+
"title": "Source Code",
|
591
|
+
"description": "The source code of the function."
|
592
|
+
},
|
593
|
+
"json_schema": {
|
594
|
+
"anyOf": [
|
595
|
+
{ "additionalProperties": true, "type": "object" },
|
596
|
+
{ "type": "null" }
|
597
|
+
],
|
598
|
+
"title": "Json Schema",
|
599
|
+
"description": "The JSON schema of the function."
|
600
|
+
},
|
601
|
+
"args_json_schema": {
|
602
|
+
"anyOf": [
|
603
|
+
{ "additionalProperties": true, "type": "object" },
|
604
|
+
{ "type": "null" }
|
605
|
+
],
|
606
|
+
"title": "Args Json Schema",
|
607
|
+
"description": "The args JSON schema of the function."
|
608
|
+
},
|
609
|
+
"return_char_limit": {
|
610
|
+
"type": "integer",
|
611
|
+
"title": "Return Char Limit",
|
612
|
+
"description": "The maximum number of characters in the response.",
|
613
|
+
"default": 6000
|
614
|
+
},
|
615
|
+
"created_by_id": {
|
616
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
617
|
+
"title": "Created By Id",
|
618
|
+
"description": "The id of the user that made this Tool."
|
619
|
+
},
|
620
|
+
"last_updated_by_id": {
|
621
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
622
|
+
"title": "Last Updated By Id",
|
623
|
+
"description": "The id of the user that made this Tool."
|
624
|
+
},
|
625
|
+
"metadata_": {
|
626
|
+
"anyOf": [
|
627
|
+
{ "additionalProperties": true, "type": "object" },
|
628
|
+
{ "type": "null" }
|
629
|
+
],
|
630
|
+
"title": "Metadata",
|
631
|
+
"description": "A dictionary of additional metadata for the tool."
|
632
|
+
}
|
633
|
+
},
|
634
|
+
"additionalProperties": false,
|
635
|
+
"type": "object",
|
636
|
+
"title": "Tool",
|
637
|
+
"description": "Representation of a tool, which is a function that can be called by the agent.\n\nParameters:\n id (str): The unique identifier of the tool.\n name (str): The name of the function.\n tags (List[str]): Metadata tags.\n source_code (str): The source code of the function.\n json_schema (Dict): The JSON schema of the function.",
|
638
|
+
"x-readme-ref-name": "Tool"
|
639
|
+
},
|
640
|
+
"type": "array",
|
641
|
+
"title": "Tools",
|
642
|
+
"description": "The tools used by the agent."
|
643
|
+
},
|
644
|
+
"sources": {
|
645
|
+
"items": {
|
646
|
+
"properties": {
|
647
|
+
"id": {
|
648
|
+
"type": "string",
|
649
|
+
"pattern": "^source-[a-fA-F0-9]{8}",
|
650
|
+
"title": "Id",
|
651
|
+
"description": "The human-friendly ID of the Source",
|
652
|
+
"examples": ["source-123e4567-e89b-12d3-a456-426614174000"]
|
653
|
+
},
|
654
|
+
"name": {
|
655
|
+
"type": "string",
|
656
|
+
"title": "Name",
|
657
|
+
"description": "The name of the source."
|
658
|
+
},
|
659
|
+
"description": {
|
660
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
661
|
+
"title": "Description",
|
662
|
+
"description": "The description of the source."
|
663
|
+
},
|
664
|
+
"embedding_config": {
|
665
|
+
"description": "The embedding configuration used by the source.",
|
666
|
+
"properties": {
|
667
|
+
"embedding_endpoint_type": {
|
668
|
+
"type": "string",
|
669
|
+
"enum": [
|
670
|
+
"openai",
|
671
|
+
"anthropic",
|
672
|
+
"bedrock",
|
673
|
+
"cohere",
|
674
|
+
"google_ai",
|
675
|
+
"google_vertex",
|
676
|
+
"azure",
|
677
|
+
"groq",
|
678
|
+
"ollama",
|
679
|
+
"webui",
|
680
|
+
"webui-legacy",
|
681
|
+
"lmstudio",
|
682
|
+
"lmstudio-legacy",
|
683
|
+
"llamacpp",
|
684
|
+
"koboldcpp",
|
685
|
+
"vllm",
|
686
|
+
"hugging-face",
|
687
|
+
"mistral",
|
688
|
+
"together"
|
689
|
+
],
|
690
|
+
"title": "Embedding Endpoint Type",
|
691
|
+
"description": "The endpoint type for the model."
|
692
|
+
},
|
693
|
+
"embedding_endpoint": {
|
694
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
695
|
+
"title": "Embedding Endpoint",
|
696
|
+
"description": "The endpoint for the model (`None` if local)."
|
697
|
+
},
|
698
|
+
"embedding_model": {
|
699
|
+
"type": "string",
|
700
|
+
"title": "Embedding Model",
|
701
|
+
"description": "The model for the embedding."
|
702
|
+
},
|
703
|
+
"embedding_dim": {
|
704
|
+
"type": "integer",
|
705
|
+
"title": "Embedding Dim",
|
706
|
+
"description": "The dimension of the embedding."
|
707
|
+
},
|
708
|
+
"embedding_chunk_size": {
|
709
|
+
"anyOf": [{ "type": "integer" }, { "type": "null" }],
|
710
|
+
"title": "Embedding Chunk Size",
|
711
|
+
"description": "The chunk size of the embedding.",
|
712
|
+
"default": 300
|
713
|
+
},
|
714
|
+
"handle": {
|
715
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
716
|
+
"title": "Handle",
|
717
|
+
"description": "The handle for this config, in the format provider/model-name."
|
718
|
+
},
|
719
|
+
"azure_endpoint": {
|
720
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
721
|
+
"title": "Azure Endpoint",
|
722
|
+
"description": "The Azure endpoint for the model."
|
723
|
+
},
|
724
|
+
"azure_version": {
|
725
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
726
|
+
"title": "Azure Version",
|
727
|
+
"description": "The Azure version for the model."
|
728
|
+
},
|
729
|
+
"azure_deployment": {
|
730
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
731
|
+
"title": "Azure Deployment",
|
732
|
+
"description": "The Azure deployment for the model."
|
733
|
+
}
|
734
|
+
},
|
735
|
+
"type": "object",
|
736
|
+
"required": [
|
737
|
+
"embedding_endpoint_type",
|
738
|
+
"embedding_model",
|
739
|
+
"embedding_dim"
|
740
|
+
],
|
741
|
+
"title": "EmbeddingConfig",
|
742
|
+
"x-readme-ref-name": "EmbeddingConfig"
|
743
|
+
},
|
744
|
+
"metadata": {
|
745
|
+
"anyOf": [
|
746
|
+
{ "additionalProperties": true, "type": "object" },
|
747
|
+
{ "type": "null" }
|
748
|
+
],
|
749
|
+
"title": "Metadata",
|
750
|
+
"description": "Metadata associated with the source."
|
751
|
+
},
|
752
|
+
"created_by_id": {
|
753
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
754
|
+
"title": "Created By Id",
|
755
|
+
"description": "The id of the user that made this Tool."
|
756
|
+
},
|
757
|
+
"last_updated_by_id": {
|
758
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
759
|
+
"title": "Last Updated By Id",
|
760
|
+
"description": "The id of the user that made this Tool."
|
761
|
+
},
|
762
|
+
"created_at": {
|
763
|
+
"anyOf": [
|
764
|
+
{ "type": "string", "format": "date-time" },
|
765
|
+
{ "type": "null" }
|
766
|
+
],
|
767
|
+
"title": "Created At",
|
768
|
+
"description": "The timestamp when the source was created."
|
769
|
+
},
|
770
|
+
"updated_at": {
|
771
|
+
"anyOf": [
|
772
|
+
{ "type": "string", "format": "date-time" },
|
773
|
+
{ "type": "null" }
|
774
|
+
],
|
775
|
+
"title": "Updated At",
|
776
|
+
"description": "The timestamp when the source was last updated."
|
777
|
+
}
|
778
|
+
},
|
779
|
+
"additionalProperties": false,
|
780
|
+
"type": "object",
|
781
|
+
"required": ["name", "embedding_config"],
|
782
|
+
"title": "Source",
|
783
|
+
"description": "Representation of a source, which is a collection of files and passages.\n\nParameters:\n id (str): The ID of the source\n name (str): The name of the source.\n embedding_config (EmbeddingConfig): The embedding configuration used by the source.\n user_id (str): The ID of the user that created the source.\n metadata (dict): Metadata associated with the source.\n description (str): The description of the source.",
|
784
|
+
"x-readme-ref-name": "Source"
|
785
|
+
},
|
786
|
+
"type": "array",
|
787
|
+
"title": "Sources",
|
788
|
+
"description": "The sources used by the agent."
|
789
|
+
},
|
790
|
+
"tags": {
|
791
|
+
"items": { "type": "string" },
|
792
|
+
"type": "array",
|
793
|
+
"title": "Tags",
|
794
|
+
"description": "The tags associated with the agent."
|
795
|
+
},
|
796
|
+
"tool_exec_environment_variables": {
|
797
|
+
"items": {
|
798
|
+
"properties": {
|
799
|
+
"created_by_id": {
|
800
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
801
|
+
"title": "Created By Id",
|
802
|
+
"description": "The id of the user that made this object."
|
803
|
+
},
|
804
|
+
"last_updated_by_id": {
|
805
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
806
|
+
"title": "Last Updated By Id",
|
807
|
+
"description": "The id of the user that made this object."
|
808
|
+
},
|
809
|
+
"created_at": {
|
810
|
+
"anyOf": [
|
811
|
+
{ "type": "string", "format": "date-time" },
|
812
|
+
{ "type": "null" }
|
813
|
+
],
|
814
|
+
"title": "Created At",
|
815
|
+
"description": "The timestamp when the object was created."
|
816
|
+
},
|
817
|
+
"updated_at": {
|
818
|
+
"anyOf": [
|
819
|
+
{ "type": "string", "format": "date-time" },
|
820
|
+
{ "type": "null" }
|
821
|
+
],
|
822
|
+
"title": "Updated At",
|
823
|
+
"description": "The timestamp when the object was last updated."
|
824
|
+
},
|
825
|
+
"id": {
|
826
|
+
"type": "string",
|
827
|
+
"pattern": "^agent-env-[a-fA-F0-9]{8}",
|
828
|
+
"title": "Id",
|
829
|
+
"description": "The human-friendly ID of the Agent-env",
|
830
|
+
"examples": ["agent-env-123e4567-e89b-12d3-a456-426614174000"]
|
831
|
+
},
|
832
|
+
"key": {
|
833
|
+
"type": "string",
|
834
|
+
"title": "Key",
|
835
|
+
"description": "The name of the environment variable."
|
836
|
+
},
|
837
|
+
"value": {
|
838
|
+
"type": "string",
|
839
|
+
"title": "Value",
|
840
|
+
"description": "The value of the environment variable."
|
841
|
+
},
|
842
|
+
"description": {
|
843
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
844
|
+
"title": "Description",
|
845
|
+
"description": "An optional description of the environment variable."
|
846
|
+
},
|
847
|
+
"agent_id": {
|
848
|
+
"type": "string",
|
849
|
+
"title": "Agent Id",
|
850
|
+
"description": "The ID of the agent this environment variable belongs to."
|
851
|
+
}
|
852
|
+
},
|
853
|
+
"additionalProperties": false,
|
854
|
+
"type": "object",
|
855
|
+
"required": ["key", "value", "agent_id"],
|
856
|
+
"title": "AgentEnvironmentVariable",
|
857
|
+
"x-readme-ref-name": "AgentEnvironmentVariable"
|
858
|
+
},
|
859
|
+
"type": "array",
|
860
|
+
"title": "Tool Exec Environment Variables",
|
861
|
+
"description": "The environment variables for tool execution specific to this agent."
|
862
|
+
},
|
863
|
+
"project_id": {
|
864
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
865
|
+
"title": "Project Id",
|
866
|
+
"description": "The id of the project the agent belongs to."
|
867
|
+
},
|
868
|
+
"template_id": {
|
869
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
870
|
+
"title": "Template Id",
|
871
|
+
"description": "The id of the template the agent belongs to."
|
872
|
+
},
|
873
|
+
"base_template_id": {
|
874
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
875
|
+
"title": "Base Template Id",
|
876
|
+
"description": "The base template id of the agent."
|
877
|
+
},
|
878
|
+
"identity_ids": {
|
879
|
+
"items": { "type": "string" },
|
880
|
+
"type": "array",
|
881
|
+
"title": "Identity Ids",
|
882
|
+
"description": "The ids of the identities associated with this agent.",
|
883
|
+
"default": []
|
884
|
+
},
|
885
|
+
"message_buffer_autoclear": {
|
886
|
+
"type": "boolean",
|
887
|
+
"title": "Message Buffer Autoclear",
|
888
|
+
"description": "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.",
|
889
|
+
"default": false
|
890
|
+
},
|
891
|
+
"enable_sleeptime": {
|
892
|
+
"anyOf": [{ "type": "boolean" }, { "type": "null" }],
|
893
|
+
"title": "Enable Sleeptime",
|
894
|
+
"description": "If set to True, memory management will move to a background agent thread."
|
895
|
+
},
|
896
|
+
"multi_agent_group": {
|
897
|
+
"anyOf": [
|
898
|
+
{
|
899
|
+
"properties": {
|
900
|
+
"id": {
|
901
|
+
"type": "string",
|
902
|
+
"title": "Id",
|
903
|
+
"description": "The id of the group. Assigned by the database."
|
904
|
+
},
|
905
|
+
"manager_type": {
|
906
|
+
"description": "",
|
907
|
+
"type": "string",
|
908
|
+
"enum": [
|
909
|
+
"round_robin",
|
910
|
+
"supervisor",
|
911
|
+
"dynamic",
|
912
|
+
"sleeptime",
|
913
|
+
"swarm"
|
914
|
+
],
|
915
|
+
"title": "ManagerType",
|
916
|
+
"x-readme-ref-name": "ManagerType"
|
917
|
+
},
|
918
|
+
"agent_ids": {
|
919
|
+
"items": { "type": "string" },
|
920
|
+
"type": "array",
|
921
|
+
"title": "Agent Ids",
|
922
|
+
"description": ""
|
923
|
+
},
|
924
|
+
"description": {
|
925
|
+
"type": "string",
|
926
|
+
"title": "Description",
|
927
|
+
"description": ""
|
928
|
+
},
|
929
|
+
"shared_block_ids": {
|
930
|
+
"items": { "type": "string" },
|
931
|
+
"type": "array",
|
932
|
+
"title": "Shared Block Ids",
|
933
|
+
"description": "",
|
934
|
+
"default": []
|
935
|
+
},
|
936
|
+
"manager_agent_id": {
|
937
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
938
|
+
"title": "Manager Agent Id",
|
939
|
+
"description": ""
|
940
|
+
},
|
941
|
+
"termination_token": {
|
942
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
943
|
+
"title": "Termination Token",
|
944
|
+
"description": ""
|
945
|
+
},
|
946
|
+
"max_turns": {
|
947
|
+
"anyOf": [{ "type": "integer" }, { "type": "null" }],
|
948
|
+
"title": "Max Turns",
|
949
|
+
"description": ""
|
950
|
+
},
|
951
|
+
"sleeptime_agent_frequency": {
|
952
|
+
"anyOf": [{ "type": "integer" }, { "type": "null" }],
|
953
|
+
"title": "Sleeptime Agent Frequency",
|
954
|
+
"description": ""
|
955
|
+
},
|
956
|
+
"turns_counter": {
|
957
|
+
"anyOf": [{ "type": "integer" }, { "type": "null" }],
|
958
|
+
"title": "Turns Counter",
|
959
|
+
"description": ""
|
960
|
+
},
|
961
|
+
"last_processed_message_id": {
|
962
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
963
|
+
"title": "Last Processed Message Id",
|
964
|
+
"description": ""
|
965
|
+
}
|
966
|
+
},
|
967
|
+
"additionalProperties": false,
|
968
|
+
"type": "object",
|
969
|
+
"required": ["id", "manager_type", "agent_ids", "description"],
|
970
|
+
"title": "Group",
|
971
|
+
"x-readme-ref-name": "Group"
|
972
|
+
},
|
973
|
+
{ "type": "null" }
|
974
|
+
],
|
975
|
+
"description": "The multi-agent group that this agent manages"
|
976
|
+
}
|
977
|
+
},
|
978
|
+
"additionalProperties": false,
|
979
|
+
"type": "object",
|
980
|
+
"required": [
|
981
|
+
"id",
|
982
|
+
"name",
|
983
|
+
"system",
|
984
|
+
"agent_type",
|
985
|
+
"llm_config",
|
986
|
+
"embedding_config",
|
987
|
+
"memory",
|
988
|
+
"tools",
|
989
|
+
"sources",
|
990
|
+
"tags"
|
991
|
+
],
|
992
|
+
"title": "AgentState",
|
993
|
+
"description": "Representation of an agent's state. This is the state of the agent at a given time, and is persisted in the DB backend. The state has all the information needed to recreate a persisted agent.\n\nParameters:\n id (str): The unique identifier of the agent.\n name (str): The name of the agent (must be unique to the user).\n created_at (datetime): The datetime the agent was created.\n message_ids (List[str]): The ids of the messages in the agent's in-context memory.\n memory (Memory): The in-context memory of the agent.\n tools (List[str]): The tools used by the agent. This includes any memory editing functions specified in `memory`.\n system (str): The system prompt used by the agent.\n llm_config (LLMConfig): The LLM configuration used by the agent.\n embedding_config (EmbeddingConfig): The embedding configuration used by the agent.",
|
994
|
+
"x-readme-ref-name": "AgentState"
|
995
|
+
}
|