@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,883 @@
|
|
1
|
-
{"properties":{"name":{"type":"string","title":"Name","description":"The name of the agent."},"memory_blocks":{"anyOf":[{"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","default":false},"label":{"type":"string","title":"Label","description":"Label of the block."},"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":{}}},"type":"object","required":["value","label"],"title":"CreateBlock","description":"Create a block","x-readme-ref-name":"CreateBlock"},"type":"array"},{"type":"null"}],"title":"Memory Blocks","description":"The blocks to create in the agent's in-context memory."},"tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tools","description":"The tools used by the agent."},"tool_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tool Ids","description":"The ids of the tools used by the agent."},"source_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Source Ids","description":"The ids of the sources used by the agent."},"block_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Block Ids","description":"The ids of the blocks used by 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 tool rules governing the agent."},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"The tags associated with the agent."},"system":{"anyOf":[{"type":"string"},{"type":"null"}],"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":{"anyOf":[{"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","description":"Configuration for a Language Model (LLM) model. This object specifies all the information necessary to access an LLM model to usage with Letta, except for secret keys.\n\nAttributes:\n model (str): The name of the LLM model.\n model_endpoint_type (str): The endpoint type for the model.\n model_endpoint (str): The endpoint for the model.\n model_wrapper (str): The wrapper for the model. This is used to wrap additional text around the input/output of the model. This is useful for text-to-text completions, such as the Completions API in OpenAI.\n context_window (int): The context window size for the model.\n put_inner_thoughts_in_kwargs (bool): 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.\n temperature (float): The temperature to use when generating text with the model. A higher temperature will result in more random text.\n max_tokens (int): The maximum number of tokens to generate.","x-readme-ref-name":"LLMConfig"},{"type":"null"}],"description":"The LLM configuration used by the agent."},"embedding_config":{"anyOf":[{"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":"Embedding model configuration. This object specifies all the information necessary to access an embedding model to usage with Letta, except for secret keys.\n\nAttributes:\n embedding_endpoint_type (str): The endpoint type for the model.\n embedding_endpoint (str): The endpoint for the model.\n embedding_model (str): The model for the embedding.\n embedding_dim (int): The dimension of the embedding.\n embedding_chunk_size (int): The chunk size of the embedding.\n azure_endpoint (:obj:`str`, optional): The Azure endpoint for the model (Azure only).\n azure_version (str): The Azure version for the model (Azure only).\n azure_deployment (str): The Azure deployment for the model (Azure only).","x-readme-ref-name":"EmbeddingConfig"},{"type":"null"}],"description":"The embedding configuration used by the agent."},"initial_message_sequence":{"anyOf":[{"items":{"properties":{"role":{"type":"string","enum":["user","system"],"title":"Role","description":"The role of the participant."},"content":{"anyOf":[{"items":{"oneOf":[{"properties":{"type":{"type":"string","const":"text","title":"Type","description":"The type of the message.","default":"text","enum":["text"]},"text":{"type":"string","title":"Text","description":"The text content of the message."}},"type":"object","required":["text","type","type","type"],"title":"TextContent","x-readme-ref-name":"TextContent"},{"properties":{"type":{"type":"string","const":"tool_call","title":"Type","description":"Indicates this content represents a tool call event.","default":"tool_call","enum":["tool_call","tool_return"]},"id":{"type":"string","title":"Id","description":"A unique identifier for this specific tool call instance."},"name":{"type":"string","title":"Name","description":"The name of the tool being called."},"input":{"additionalProperties":true,"type":"object","title":"Input","description":"The parameters being passed to the tool, structured as a dictionary of parameter names to values."}},"type":"object","required":["id","name","input","type","type"],"title":"ToolCallContent","x-readme-ref-name":"ToolCallContent"},{"properties":{"type":{"type":"string","const":"tool_return","title":"Type","description":"Indicates this content represents a tool return event.","default":"tool_return"},"tool_call_id":{"type":"string","title":"Tool Call Id","description":"References the ID of the ToolCallContent that initiated this tool call."},"content":{"type":"string","title":"Content","description":"The content returned by the tool execution."},"is_error":{"type":"boolean","title":"Is Error","description":"Indicates whether the tool execution resulted in an error."}},"type":"object","required":["tool_call_id","content","is_error"],"title":"ToolReturnContent","x-readme-ref-name":"ToolReturnContent"},{"properties":{"type":{"type":"string","const":"reasoning","title":"Type","description":"Indicates this is a reasoning/intermediate step.","default":"reasoning","enum":["reasoning"]},"is_native":{"type":"boolean","title":"Is Native","description":"Whether the reasoning content was generated by a reasoner model that processed this step."},"reasoning":{"type":"string","title":"Reasoning","description":"The intermediate reasoning or thought process content."},"signature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature","description":"A unique identifier for this reasoning step."}},"type":"object","required":["is_native","reasoning","type"],"title":"ReasoningContent","x-readme-ref-name":"ReasoningContent"},{"properties":{"type":{"type":"string","const":"redacted_reasoning","title":"Type","description":"Indicates this is a redacted thinking step.","default":"redacted_reasoning","enum":["redacted_reasoning"]},"data":{"type":"string","title":"Data","description":"The redacted or filtered intermediate reasoning content."}},"type":"object","required":["data","type"],"title":"RedactedReasoningContent","x-readme-ref-name":"RedactedReasoningContent"},{"properties":{"type":{"type":"string","const":"omitted_reasoning","title":"Type","description":"Indicates this is an omitted reasoning step.","default":"omitted_reasoning","enum":["omitted_reasoning"]},"tokens":{"type":"integer","title":"Tokens","description":"The reasoning token count for intermediate reasoning content."}},"type":"object","required":["tokens","type"],"title":"OmittedReasoningContent","x-readme-ref-name":"OmittedReasoningContent"}],"discriminator":{"propertyName":"type","mapping":{"text":"#/components/schemas/TextContent","tool_call":"#/components/schemas/ToolCallContent","tool_return":"#/components/schemas/ToolCallContent","reasoning":"#/components/schemas/ReasoningContent","redacted_reasoning":"#/components/schemas/RedactedReasoningContent","omitted_reasoning":"#/components/schemas/OmittedReasoningContent"}},"x-readme-ref-name":"LettaMessageContentUnion","properties":{"type":{"enum":["text","tool_call","tool_return","reasoning","redacted_reasoning","omitted_reasoning"]}}},"type":"array"},{"type":"string"}],"title":"Content","description":"The content of the message."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The name of the participant."},"otid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Otid","description":"The offline threading id associated with this message"}},"type":"object","required":["role","content"],"title":"MessageCreate","description":"Request to create a message","x-readme-ref-name":"MessageCreate"},"type":"array"},{"type":"null"}],"title":"Initial Message Sequence","description":"The initial set of messages to put in the agent's in-context memory."},"include_base_tools":{"type":"boolean","title":"Include Base Tools","description":"If true, attaches the Letta core tools (e.g. archival_memory and core_memory related functions).","default":true},"include_multi_agent_tools":{"type":"boolean","title":"Include Multi Agent Tools","description":"If true, attaches the Letta multi-agent tools (e.g. sending a message to another agent).","default":false},"include_base_tool_rules":{"type":"boolean","title":"Include Base Tool Rules","description":"If true, attaches the Letta base tool rules (e.g. deny all tools not explicitly allowed).","default":true},"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."},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"The LLM configuration handle used by the agent, specified in the format provider/model-name, as an alternative to specifying llm_config."},"embedding":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Embedding","description":"The embedding configuration handle used by the agent, specified in the format provider/model-name."},"context_window_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Window Limit","description":"The context window limit used by the agent."},"embedding_chunk_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Embedding Chunk Size","description":"The embedding chunk size used by the agent.","default":300},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens","description":"The maximum number of tokens to generate, including reasoning step. If not set, the model will use its default value."},"max_reasoning_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Reasoning Tokens","description":"The maximum number of tokens to generate for reasoning step. If not set, the model will use its default value."},"enable_reasoner":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Reasoner","description":"Whether to enable internal extended thinking step for a reasoner model.","default":false},"from_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Template","description":"The template id used to configure the agent"},"template":{"type":"boolean","title":"Template","description":"Whether the agent is a template","default":false},"project":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project","description":"Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below.","deprecated":true},"tool_exec_environment_variables":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Tool Exec Environment Variables","description":"The environment variables for tool execution specific to this agent."},"memory_variables":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Memory Variables","description":"The variables that should be set for the 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":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Identity Ids","description":"The ids of the identities associated with this agent."},"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."}},"type":"object","title":"CreateAgentRequest","description":"CreateAgent model specifically for POST request body, excluding user_id which comes from headers","x-readme-ref-name":"CreateAgentRequest"}
|
1
|
+
{
|
2
|
+
"properties": {
|
3
|
+
"name": {
|
4
|
+
"type": "string",
|
5
|
+
"title": "Name",
|
6
|
+
"description": "The name of the agent."
|
7
|
+
},
|
8
|
+
"memory_blocks": {
|
9
|
+
"anyOf": [
|
10
|
+
{
|
11
|
+
"items": {
|
12
|
+
"properties": {
|
13
|
+
"value": {
|
14
|
+
"type": "string",
|
15
|
+
"title": "Value",
|
16
|
+
"description": "Value of the block."
|
17
|
+
},
|
18
|
+
"limit": {
|
19
|
+
"type": "integer",
|
20
|
+
"title": "Limit",
|
21
|
+
"description": "Character limit of the block.",
|
22
|
+
"default": 5000
|
23
|
+
},
|
24
|
+
"name": {
|
25
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
26
|
+
"title": "Name",
|
27
|
+
"description": "Name of the block if it is a template."
|
28
|
+
},
|
29
|
+
"is_template": {
|
30
|
+
"type": "boolean",
|
31
|
+
"title": "Is Template",
|
32
|
+
"default": false
|
33
|
+
},
|
34
|
+
"label": {
|
35
|
+
"type": "string",
|
36
|
+
"title": "Label",
|
37
|
+
"description": "Label of the block."
|
38
|
+
},
|
39
|
+
"description": {
|
40
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
41
|
+
"title": "Description",
|
42
|
+
"description": "Description of the block."
|
43
|
+
},
|
44
|
+
"metadata": {
|
45
|
+
"anyOf": [
|
46
|
+
{ "additionalProperties": true, "type": "object" },
|
47
|
+
{ "type": "null" }
|
48
|
+
],
|
49
|
+
"title": "Metadata",
|
50
|
+
"description": "Metadata of the block.",
|
51
|
+
"default": {}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
"type": "object",
|
55
|
+
"required": ["value", "label"],
|
56
|
+
"title": "CreateBlock",
|
57
|
+
"description": "Create a block",
|
58
|
+
"x-readme-ref-name": "CreateBlock"
|
59
|
+
},
|
60
|
+
"type": "array"
|
61
|
+
},
|
62
|
+
{ "type": "null" }
|
63
|
+
],
|
64
|
+
"title": "Memory Blocks",
|
65
|
+
"description": "The blocks to create in the agent's in-context memory."
|
66
|
+
},
|
67
|
+
"tools": {
|
68
|
+
"anyOf": [
|
69
|
+
{ "items": { "type": "string" }, "type": "array" },
|
70
|
+
{ "type": "null" }
|
71
|
+
],
|
72
|
+
"title": "Tools",
|
73
|
+
"description": "The tools used by the agent."
|
74
|
+
},
|
75
|
+
"tool_ids": {
|
76
|
+
"anyOf": [
|
77
|
+
{ "items": { "type": "string" }, "type": "array" },
|
78
|
+
{ "type": "null" }
|
79
|
+
],
|
80
|
+
"title": "Tool Ids",
|
81
|
+
"description": "The ids of the tools used by the agent."
|
82
|
+
},
|
83
|
+
"source_ids": {
|
84
|
+
"anyOf": [
|
85
|
+
{ "items": { "type": "string" }, "type": "array" },
|
86
|
+
{ "type": "null" }
|
87
|
+
],
|
88
|
+
"title": "Source Ids",
|
89
|
+
"description": "The ids of the sources used by the agent."
|
90
|
+
},
|
91
|
+
"block_ids": {
|
92
|
+
"anyOf": [
|
93
|
+
{ "items": { "type": "string" }, "type": "array" },
|
94
|
+
{ "type": "null" }
|
95
|
+
],
|
96
|
+
"title": "Block Ids",
|
97
|
+
"description": "The ids of the blocks used by the agent."
|
98
|
+
},
|
99
|
+
"tool_rules": {
|
100
|
+
"anyOf": [
|
101
|
+
{
|
102
|
+
"items": {
|
103
|
+
"oneOf": [
|
104
|
+
{
|
105
|
+
"properties": {
|
106
|
+
"tool_name": {
|
107
|
+
"type": "string",
|
108
|
+
"title": "Tool Name",
|
109
|
+
"description": "The name of the tool. Must exist in the database for the user's organization."
|
110
|
+
},
|
111
|
+
"type": {
|
112
|
+
"type": "string",
|
113
|
+
"const": "constrain_child_tools",
|
114
|
+
"title": "Type",
|
115
|
+
"default": "constrain_child_tools"
|
116
|
+
},
|
117
|
+
"children": {
|
118
|
+
"items": { "type": "string" },
|
119
|
+
"type": "array",
|
120
|
+
"title": "Children",
|
121
|
+
"description": "The children tools that can be invoked."
|
122
|
+
}
|
123
|
+
},
|
124
|
+
"additionalProperties": false,
|
125
|
+
"type": "object",
|
126
|
+
"required": ["tool_name", "children"],
|
127
|
+
"title": "ChildToolRule",
|
128
|
+
"description": "A ToolRule represents a tool that can be invoked by the agent.",
|
129
|
+
"x-readme-ref-name": "ChildToolRule"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"properties": {
|
133
|
+
"tool_name": {
|
134
|
+
"type": "string",
|
135
|
+
"title": "Tool Name",
|
136
|
+
"description": "The name of the tool. Must exist in the database for the user's organization."
|
137
|
+
},
|
138
|
+
"type": {
|
139
|
+
"type": "string",
|
140
|
+
"const": "run_first",
|
141
|
+
"title": "Type",
|
142
|
+
"default": "run_first"
|
143
|
+
}
|
144
|
+
},
|
145
|
+
"additionalProperties": false,
|
146
|
+
"type": "object",
|
147
|
+
"required": ["tool_name"],
|
148
|
+
"title": "InitToolRule",
|
149
|
+
"description": "Represents the initial tool rule configuration.",
|
150
|
+
"x-readme-ref-name": "InitToolRule"
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"properties": {
|
154
|
+
"tool_name": {
|
155
|
+
"type": "string",
|
156
|
+
"title": "Tool Name",
|
157
|
+
"description": "The name of the tool. Must exist in the database for the user's organization."
|
158
|
+
},
|
159
|
+
"type": {
|
160
|
+
"type": "string",
|
161
|
+
"const": "exit_loop",
|
162
|
+
"title": "Type",
|
163
|
+
"default": "exit_loop"
|
164
|
+
}
|
165
|
+
},
|
166
|
+
"additionalProperties": false,
|
167
|
+
"type": "object",
|
168
|
+
"required": ["tool_name"],
|
169
|
+
"title": "TerminalToolRule",
|
170
|
+
"description": "Represents a terminal tool rule configuration where if this tool gets called, it must end the agent loop.",
|
171
|
+
"x-readme-ref-name": "TerminalToolRule"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"properties": {
|
175
|
+
"tool_name": {
|
176
|
+
"type": "string",
|
177
|
+
"title": "Tool Name",
|
178
|
+
"description": "The name of the tool. Must exist in the database for the user's organization."
|
179
|
+
},
|
180
|
+
"type": {
|
181
|
+
"type": "string",
|
182
|
+
"const": "conditional",
|
183
|
+
"title": "Type",
|
184
|
+
"default": "conditional"
|
185
|
+
},
|
186
|
+
"default_child": {
|
187
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
188
|
+
"title": "Default Child",
|
189
|
+
"description": "The default child tool to be called. If None, any tool can be called."
|
190
|
+
},
|
191
|
+
"child_output_mapping": {
|
192
|
+
"additionalProperties": { "type": "string" },
|
193
|
+
"type": "object",
|
194
|
+
"title": "Child Output Mapping",
|
195
|
+
"description": "The output case to check for mapping"
|
196
|
+
},
|
197
|
+
"require_output_mapping": {
|
198
|
+
"type": "boolean",
|
199
|
+
"title": "Require Output Mapping",
|
200
|
+
"description": "Whether to throw an error when output doesn't match any case",
|
201
|
+
"default": false
|
202
|
+
}
|
203
|
+
},
|
204
|
+
"additionalProperties": false,
|
205
|
+
"type": "object",
|
206
|
+
"required": ["tool_name", "child_output_mapping"],
|
207
|
+
"title": "ConditionalToolRule",
|
208
|
+
"description": "A ToolRule that conditionally maps to different child tools based on the output.",
|
209
|
+
"x-readme-ref-name": "ConditionalToolRule"
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"properties": {
|
213
|
+
"tool_name": {
|
214
|
+
"type": "string",
|
215
|
+
"title": "Tool Name",
|
216
|
+
"description": "The name of the tool. Must exist in the database for the user's organization."
|
217
|
+
},
|
218
|
+
"type": {
|
219
|
+
"type": "string",
|
220
|
+
"const": "continue_loop",
|
221
|
+
"title": "Type",
|
222
|
+
"default": "continue_loop"
|
223
|
+
}
|
224
|
+
},
|
225
|
+
"additionalProperties": false,
|
226
|
+
"type": "object",
|
227
|
+
"required": ["tool_name"],
|
228
|
+
"title": "ContinueToolRule",
|
229
|
+
"description": "Represents a tool rule configuration where if this tool gets called, it must continue the agent loop.",
|
230
|
+
"x-readme-ref-name": "ContinueToolRule"
|
231
|
+
},
|
232
|
+
{
|
233
|
+
"properties": {
|
234
|
+
"tool_name": {
|
235
|
+
"type": "string",
|
236
|
+
"title": "Tool Name",
|
237
|
+
"description": "The name of the tool. Must exist in the database for the user's organization."
|
238
|
+
},
|
239
|
+
"type": {
|
240
|
+
"type": "string",
|
241
|
+
"const": "max_count_per_step",
|
242
|
+
"title": "Type",
|
243
|
+
"default": "max_count_per_step"
|
244
|
+
},
|
245
|
+
"max_count_limit": {
|
246
|
+
"type": "integer",
|
247
|
+
"title": "Max Count Limit",
|
248
|
+
"description": "The max limit for the total number of times this tool can be invoked in a single step."
|
249
|
+
}
|
250
|
+
},
|
251
|
+
"additionalProperties": false,
|
252
|
+
"type": "object",
|
253
|
+
"required": ["tool_name", "max_count_limit"],
|
254
|
+
"title": "MaxCountPerStepToolRule",
|
255
|
+
"description": "Represents a tool rule configuration which constrains the total number of times this tool can be invoked in a single step.",
|
256
|
+
"x-readme-ref-name": "MaxCountPerStepToolRule"
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"properties": {
|
260
|
+
"tool_name": {
|
261
|
+
"type": "string",
|
262
|
+
"title": "Tool Name",
|
263
|
+
"description": "The name of the tool. Must exist in the database for the user's organization."
|
264
|
+
},
|
265
|
+
"type": {
|
266
|
+
"type": "string",
|
267
|
+
"const": "parent_last_tool",
|
268
|
+
"title": "Type",
|
269
|
+
"default": "parent_last_tool"
|
270
|
+
},
|
271
|
+
"children": {
|
272
|
+
"items": { "type": "string" },
|
273
|
+
"type": "array",
|
274
|
+
"title": "Children",
|
275
|
+
"description": "The children tools that can be invoked."
|
276
|
+
}
|
277
|
+
},
|
278
|
+
"additionalProperties": false,
|
279
|
+
"type": "object",
|
280
|
+
"required": ["tool_name", "children"],
|
281
|
+
"title": "ParentToolRule",
|
282
|
+
"description": "A ToolRule that only allows a child tool to be called if the parent has been called.",
|
283
|
+
"x-readme-ref-name": "ParentToolRule"
|
284
|
+
}
|
285
|
+
],
|
286
|
+
"discriminator": {
|
287
|
+
"propertyName": "type",
|
288
|
+
"mapping": {
|
289
|
+
"conditional": "#/components/schemas/ConditionalToolRule",
|
290
|
+
"constrain_child_tools": "#/components/schemas/ChildToolRule",
|
291
|
+
"continue_loop": "#/components/schemas/ContinueToolRule",
|
292
|
+
"exit_loop": "#/components/schemas/TerminalToolRule",
|
293
|
+
"max_count_per_step": "#/components/schemas/MaxCountPerStepToolRule",
|
294
|
+
"parent_last_tool": "#/components/schemas/ParentToolRule",
|
295
|
+
"run_first": "#/components/schemas/InitToolRule"
|
296
|
+
}
|
297
|
+
}
|
298
|
+
},
|
299
|
+
"type": "array"
|
300
|
+
},
|
301
|
+
{ "type": "null" }
|
302
|
+
],
|
303
|
+
"title": "Tool Rules",
|
304
|
+
"description": "The tool rules governing the agent."
|
305
|
+
},
|
306
|
+
"tags": {
|
307
|
+
"anyOf": [
|
308
|
+
{ "items": { "type": "string" }, "type": "array" },
|
309
|
+
{ "type": "null" }
|
310
|
+
],
|
311
|
+
"title": "Tags",
|
312
|
+
"description": "The tags associated with the agent."
|
313
|
+
},
|
314
|
+
"system": {
|
315
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
316
|
+
"title": "System",
|
317
|
+
"description": "The system prompt used by the agent."
|
318
|
+
},
|
319
|
+
"agent_type": {
|
320
|
+
"description": "The type of agent.",
|
321
|
+
"type": "string",
|
322
|
+
"enum": ["memgpt_agent", "split_thread_agent", "sleeptime_agent"],
|
323
|
+
"title": "AgentType",
|
324
|
+
"x-readme-ref-name": "AgentType"
|
325
|
+
},
|
326
|
+
"llm_config": {
|
327
|
+
"anyOf": [
|
328
|
+
{
|
329
|
+
"properties": {
|
330
|
+
"model": {
|
331
|
+
"type": "string",
|
332
|
+
"title": "Model",
|
333
|
+
"description": "LLM model name. "
|
334
|
+
},
|
335
|
+
"model_endpoint_type": {
|
336
|
+
"type": "string",
|
337
|
+
"enum": [
|
338
|
+
"openai",
|
339
|
+
"anthropic",
|
340
|
+
"cohere",
|
341
|
+
"google_ai",
|
342
|
+
"google_vertex",
|
343
|
+
"azure",
|
344
|
+
"groq",
|
345
|
+
"ollama",
|
346
|
+
"webui",
|
347
|
+
"webui-legacy",
|
348
|
+
"lmstudio",
|
349
|
+
"lmstudio-legacy",
|
350
|
+
"lmstudio-chatcompletions",
|
351
|
+
"llamacpp",
|
352
|
+
"koboldcpp",
|
353
|
+
"vllm",
|
354
|
+
"hugging-face",
|
355
|
+
"mistral",
|
356
|
+
"together",
|
357
|
+
"bedrock",
|
358
|
+
"deepseek",
|
359
|
+
"xai"
|
360
|
+
],
|
361
|
+
"title": "Model Endpoint Type",
|
362
|
+
"description": "The endpoint type for the model."
|
363
|
+
},
|
364
|
+
"model_endpoint": {
|
365
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
366
|
+
"title": "Model Endpoint",
|
367
|
+
"description": "The endpoint for the model."
|
368
|
+
},
|
369
|
+
"model_wrapper": {
|
370
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
371
|
+
"title": "Model Wrapper",
|
372
|
+
"description": "The wrapper for the model."
|
373
|
+
},
|
374
|
+
"context_window": {
|
375
|
+
"type": "integer",
|
376
|
+
"title": "Context Window",
|
377
|
+
"description": "The context window size for the model."
|
378
|
+
},
|
379
|
+
"put_inner_thoughts_in_kwargs": {
|
380
|
+
"anyOf": [{ "type": "boolean" }, { "type": "null" }],
|
381
|
+
"title": "Put Inner Thoughts In Kwargs",
|
382
|
+
"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.",
|
383
|
+
"default": true
|
384
|
+
},
|
385
|
+
"handle": {
|
386
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
387
|
+
"title": "Handle",
|
388
|
+
"description": "The handle for this config, in the format provider/model-name."
|
389
|
+
},
|
390
|
+
"temperature": {
|
391
|
+
"type": "number",
|
392
|
+
"title": "Temperature",
|
393
|
+
"description": "The temperature to use when generating text with the model. A higher temperature will result in more random text.",
|
394
|
+
"default": 0.7
|
395
|
+
},
|
396
|
+
"max_tokens": {
|
397
|
+
"anyOf": [{ "type": "integer" }, { "type": "null" }],
|
398
|
+
"title": "Max Tokens",
|
399
|
+
"description": "The maximum number of tokens to generate. If not set, the model will use its default value.",
|
400
|
+
"default": 4096
|
401
|
+
},
|
402
|
+
"enable_reasoner": {
|
403
|
+
"type": "boolean",
|
404
|
+
"title": "Enable Reasoner",
|
405
|
+
"description": "Whether or not the model should use extended thinking if it is a 'reasoning' style model",
|
406
|
+
"default": false
|
407
|
+
},
|
408
|
+
"max_reasoning_tokens": {
|
409
|
+
"type": "integer",
|
410
|
+
"title": "Max Reasoning Tokens",
|
411
|
+
"description": "Configurable thinking budget for extended thinking, only used if enable_reasoner is True. Minimum value is 1024.",
|
412
|
+
"default": 0
|
413
|
+
}
|
414
|
+
},
|
415
|
+
"type": "object",
|
416
|
+
"required": ["model", "model_endpoint_type", "context_window"],
|
417
|
+
"title": "LLMConfig",
|
418
|
+
"description": "Configuration for a Language Model (LLM) model. This object specifies all the information necessary to access an LLM model to usage with Letta, except for secret keys.\n\nAttributes:\n model (str): The name of the LLM model.\n model_endpoint_type (str): The endpoint type for the model.\n model_endpoint (str): The endpoint for the model.\n model_wrapper (str): The wrapper for the model. This is used to wrap additional text around the input/output of the model. This is useful for text-to-text completions, such as the Completions API in OpenAI.\n context_window (int): The context window size for the model.\n put_inner_thoughts_in_kwargs (bool): 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.\n temperature (float): The temperature to use when generating text with the model. A higher temperature will result in more random text.\n max_tokens (int): The maximum number of tokens to generate.",
|
419
|
+
"x-readme-ref-name": "LLMConfig"
|
420
|
+
},
|
421
|
+
{ "type": "null" }
|
422
|
+
],
|
423
|
+
"description": "The LLM configuration used by the agent."
|
424
|
+
},
|
425
|
+
"embedding_config": {
|
426
|
+
"anyOf": [
|
427
|
+
{
|
428
|
+
"properties": {
|
429
|
+
"embedding_endpoint_type": {
|
430
|
+
"type": "string",
|
431
|
+
"enum": [
|
432
|
+
"openai",
|
433
|
+
"anthropic",
|
434
|
+
"bedrock",
|
435
|
+
"cohere",
|
436
|
+
"google_ai",
|
437
|
+
"google_vertex",
|
438
|
+
"azure",
|
439
|
+
"groq",
|
440
|
+
"ollama",
|
441
|
+
"webui",
|
442
|
+
"webui-legacy",
|
443
|
+
"lmstudio",
|
444
|
+
"lmstudio-legacy",
|
445
|
+
"llamacpp",
|
446
|
+
"koboldcpp",
|
447
|
+
"vllm",
|
448
|
+
"hugging-face",
|
449
|
+
"mistral",
|
450
|
+
"together"
|
451
|
+
],
|
452
|
+
"title": "Embedding Endpoint Type",
|
453
|
+
"description": "The endpoint type for the model."
|
454
|
+
},
|
455
|
+
"embedding_endpoint": {
|
456
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
457
|
+
"title": "Embedding Endpoint",
|
458
|
+
"description": "The endpoint for the model (`None` if local)."
|
459
|
+
},
|
460
|
+
"embedding_model": {
|
461
|
+
"type": "string",
|
462
|
+
"title": "Embedding Model",
|
463
|
+
"description": "The model for the embedding."
|
464
|
+
},
|
465
|
+
"embedding_dim": {
|
466
|
+
"type": "integer",
|
467
|
+
"title": "Embedding Dim",
|
468
|
+
"description": "The dimension of the embedding."
|
469
|
+
},
|
470
|
+
"embedding_chunk_size": {
|
471
|
+
"anyOf": [{ "type": "integer" }, { "type": "null" }],
|
472
|
+
"title": "Embedding Chunk Size",
|
473
|
+
"description": "The chunk size of the embedding.",
|
474
|
+
"default": 300
|
475
|
+
},
|
476
|
+
"handle": {
|
477
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
478
|
+
"title": "Handle",
|
479
|
+
"description": "The handle for this config, in the format provider/model-name."
|
480
|
+
},
|
481
|
+
"azure_endpoint": {
|
482
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
483
|
+
"title": "Azure Endpoint",
|
484
|
+
"description": "The Azure endpoint for the model."
|
485
|
+
},
|
486
|
+
"azure_version": {
|
487
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
488
|
+
"title": "Azure Version",
|
489
|
+
"description": "The Azure version for the model."
|
490
|
+
},
|
491
|
+
"azure_deployment": {
|
492
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
493
|
+
"title": "Azure Deployment",
|
494
|
+
"description": "The Azure deployment for the model."
|
495
|
+
}
|
496
|
+
},
|
497
|
+
"type": "object",
|
498
|
+
"required": [
|
499
|
+
"embedding_endpoint_type",
|
500
|
+
"embedding_model",
|
501
|
+
"embedding_dim"
|
502
|
+
],
|
503
|
+
"title": "EmbeddingConfig",
|
504
|
+
"description": "Embedding model configuration. This object specifies all the information necessary to access an embedding model to usage with Letta, except for secret keys.\n\nAttributes:\n embedding_endpoint_type (str): The endpoint type for the model.\n embedding_endpoint (str): The endpoint for the model.\n embedding_model (str): The model for the embedding.\n embedding_dim (int): The dimension of the embedding.\n embedding_chunk_size (int): The chunk size of the embedding.\n azure_endpoint (:obj:`str`, optional): The Azure endpoint for the model (Azure only).\n azure_version (str): The Azure version for the model (Azure only).\n azure_deployment (str): The Azure deployment for the model (Azure only).",
|
505
|
+
"x-readme-ref-name": "EmbeddingConfig"
|
506
|
+
},
|
507
|
+
{ "type": "null" }
|
508
|
+
],
|
509
|
+
"description": "The embedding configuration used by the agent."
|
510
|
+
},
|
511
|
+
"initial_message_sequence": {
|
512
|
+
"anyOf": [
|
513
|
+
{
|
514
|
+
"items": {
|
515
|
+
"properties": {
|
516
|
+
"role": {
|
517
|
+
"type": "string",
|
518
|
+
"enum": ["user", "system"],
|
519
|
+
"title": "Role",
|
520
|
+
"description": "The role of the participant."
|
521
|
+
},
|
522
|
+
"content": {
|
523
|
+
"anyOf": [
|
524
|
+
{
|
525
|
+
"items": {
|
526
|
+
"oneOf": [
|
527
|
+
{
|
528
|
+
"properties": {
|
529
|
+
"type": {
|
530
|
+
"type": "string",
|
531
|
+
"const": "text",
|
532
|
+
"title": "Type",
|
533
|
+
"description": "The type of the message.",
|
534
|
+
"default": "text",
|
535
|
+
"enum": ["text"]
|
536
|
+
},
|
537
|
+
"text": {
|
538
|
+
"type": "string",
|
539
|
+
"title": "Text",
|
540
|
+
"description": "The text content of the message."
|
541
|
+
}
|
542
|
+
},
|
543
|
+
"type": "object",
|
544
|
+
"required": ["text", "type", "type", "type"],
|
545
|
+
"title": "TextContent",
|
546
|
+
"x-readme-ref-name": "TextContent"
|
547
|
+
},
|
548
|
+
{
|
549
|
+
"properties": {
|
550
|
+
"type": {
|
551
|
+
"type": "string",
|
552
|
+
"const": "tool_call",
|
553
|
+
"title": "Type",
|
554
|
+
"description": "Indicates this content represents a tool call event.",
|
555
|
+
"default": "tool_call",
|
556
|
+
"enum": ["tool_call", "tool_return"]
|
557
|
+
},
|
558
|
+
"id": {
|
559
|
+
"type": "string",
|
560
|
+
"title": "Id",
|
561
|
+
"description": "A unique identifier for this specific tool call instance."
|
562
|
+
},
|
563
|
+
"name": {
|
564
|
+
"type": "string",
|
565
|
+
"title": "Name",
|
566
|
+
"description": "The name of the tool being called."
|
567
|
+
},
|
568
|
+
"input": {
|
569
|
+
"additionalProperties": true,
|
570
|
+
"type": "object",
|
571
|
+
"title": "Input",
|
572
|
+
"description": "The parameters being passed to the tool, structured as a dictionary of parameter names to values."
|
573
|
+
}
|
574
|
+
},
|
575
|
+
"type": "object",
|
576
|
+
"required": ["id", "name", "input", "type", "type"],
|
577
|
+
"title": "ToolCallContent",
|
578
|
+
"x-readme-ref-name": "ToolCallContent"
|
579
|
+
},
|
580
|
+
{
|
581
|
+
"properties": {
|
582
|
+
"type": {
|
583
|
+
"type": "string",
|
584
|
+
"const": "tool_return",
|
585
|
+
"title": "Type",
|
586
|
+
"description": "Indicates this content represents a tool return event.",
|
587
|
+
"default": "tool_return"
|
588
|
+
},
|
589
|
+
"tool_call_id": {
|
590
|
+
"type": "string",
|
591
|
+
"title": "Tool Call Id",
|
592
|
+
"description": "References the ID of the ToolCallContent that initiated this tool call."
|
593
|
+
},
|
594
|
+
"content": {
|
595
|
+
"type": "string",
|
596
|
+
"title": "Content",
|
597
|
+
"description": "The content returned by the tool execution."
|
598
|
+
},
|
599
|
+
"is_error": {
|
600
|
+
"type": "boolean",
|
601
|
+
"title": "Is Error",
|
602
|
+
"description": "Indicates whether the tool execution resulted in an error."
|
603
|
+
}
|
604
|
+
},
|
605
|
+
"type": "object",
|
606
|
+
"required": ["tool_call_id", "content", "is_error"],
|
607
|
+
"title": "ToolReturnContent",
|
608
|
+
"x-readme-ref-name": "ToolReturnContent"
|
609
|
+
},
|
610
|
+
{
|
611
|
+
"properties": {
|
612
|
+
"type": {
|
613
|
+
"type": "string",
|
614
|
+
"const": "reasoning",
|
615
|
+
"title": "Type",
|
616
|
+
"description": "Indicates this is a reasoning/intermediate step.",
|
617
|
+
"default": "reasoning",
|
618
|
+
"enum": ["reasoning"]
|
619
|
+
},
|
620
|
+
"is_native": {
|
621
|
+
"type": "boolean",
|
622
|
+
"title": "Is Native",
|
623
|
+
"description": "Whether the reasoning content was generated by a reasoner model that processed this step."
|
624
|
+
},
|
625
|
+
"reasoning": {
|
626
|
+
"type": "string",
|
627
|
+
"title": "Reasoning",
|
628
|
+
"description": "The intermediate reasoning or thought process content."
|
629
|
+
},
|
630
|
+
"signature": {
|
631
|
+
"anyOf": [
|
632
|
+
{ "type": "string" },
|
633
|
+
{ "type": "null" }
|
634
|
+
],
|
635
|
+
"title": "Signature",
|
636
|
+
"description": "A unique identifier for this reasoning step."
|
637
|
+
}
|
638
|
+
},
|
639
|
+
"type": "object",
|
640
|
+
"required": ["is_native", "reasoning", "type"],
|
641
|
+
"title": "ReasoningContent",
|
642
|
+
"x-readme-ref-name": "ReasoningContent"
|
643
|
+
},
|
644
|
+
{
|
645
|
+
"properties": {
|
646
|
+
"type": {
|
647
|
+
"type": "string",
|
648
|
+
"const": "redacted_reasoning",
|
649
|
+
"title": "Type",
|
650
|
+
"description": "Indicates this is a redacted thinking step.",
|
651
|
+
"default": "redacted_reasoning",
|
652
|
+
"enum": ["redacted_reasoning"]
|
653
|
+
},
|
654
|
+
"data": {
|
655
|
+
"type": "string",
|
656
|
+
"title": "Data",
|
657
|
+
"description": "The redacted or filtered intermediate reasoning content."
|
658
|
+
}
|
659
|
+
},
|
660
|
+
"type": "object",
|
661
|
+
"required": ["data", "type"],
|
662
|
+
"title": "RedactedReasoningContent",
|
663
|
+
"x-readme-ref-name": "RedactedReasoningContent"
|
664
|
+
},
|
665
|
+
{
|
666
|
+
"properties": {
|
667
|
+
"type": {
|
668
|
+
"type": "string",
|
669
|
+
"const": "omitted_reasoning",
|
670
|
+
"title": "Type",
|
671
|
+
"description": "Indicates this is an omitted reasoning step.",
|
672
|
+
"default": "omitted_reasoning",
|
673
|
+
"enum": ["omitted_reasoning"]
|
674
|
+
},
|
675
|
+
"tokens": {
|
676
|
+
"type": "integer",
|
677
|
+
"title": "Tokens",
|
678
|
+
"description": "The reasoning token count for intermediate reasoning content."
|
679
|
+
}
|
680
|
+
},
|
681
|
+
"type": "object",
|
682
|
+
"required": ["tokens", "type"],
|
683
|
+
"title": "OmittedReasoningContent",
|
684
|
+
"x-readme-ref-name": "OmittedReasoningContent"
|
685
|
+
}
|
686
|
+
],
|
687
|
+
"discriminator": {
|
688
|
+
"propertyName": "type",
|
689
|
+
"mapping": {
|
690
|
+
"text": "#/components/schemas/TextContent",
|
691
|
+
"tool_call": "#/components/schemas/ToolCallContent",
|
692
|
+
"tool_return": "#/components/schemas/ToolCallContent",
|
693
|
+
"reasoning": "#/components/schemas/ReasoningContent",
|
694
|
+
"redacted_reasoning": "#/components/schemas/RedactedReasoningContent",
|
695
|
+
"omitted_reasoning": "#/components/schemas/OmittedReasoningContent"
|
696
|
+
}
|
697
|
+
},
|
698
|
+
"x-readme-ref-name": "LettaMessageContentUnion",
|
699
|
+
"properties": {
|
700
|
+
"type": {
|
701
|
+
"enum": [
|
702
|
+
"text",
|
703
|
+
"tool_call",
|
704
|
+
"tool_return",
|
705
|
+
"reasoning",
|
706
|
+
"redacted_reasoning",
|
707
|
+
"omitted_reasoning"
|
708
|
+
]
|
709
|
+
}
|
710
|
+
}
|
711
|
+
},
|
712
|
+
"type": "array"
|
713
|
+
},
|
714
|
+
{ "type": "string" }
|
715
|
+
],
|
716
|
+
"title": "Content",
|
717
|
+
"description": "The content of the message."
|
718
|
+
},
|
719
|
+
"name": {
|
720
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
721
|
+
"title": "Name",
|
722
|
+
"description": "The name of the participant."
|
723
|
+
},
|
724
|
+
"otid": {
|
725
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
726
|
+
"title": "Otid",
|
727
|
+
"description": "The offline threading id associated with this message"
|
728
|
+
}
|
729
|
+
},
|
730
|
+
"type": "object",
|
731
|
+
"required": ["role", "content"],
|
732
|
+
"title": "MessageCreate",
|
733
|
+
"description": "Request to create a message",
|
734
|
+
"x-readme-ref-name": "MessageCreate"
|
735
|
+
},
|
736
|
+
"type": "array"
|
737
|
+
},
|
738
|
+
{ "type": "null" }
|
739
|
+
],
|
740
|
+
"title": "Initial Message Sequence",
|
741
|
+
"description": "The initial set of messages to put in the agent's in-context memory."
|
742
|
+
},
|
743
|
+
"include_base_tools": {
|
744
|
+
"type": "boolean",
|
745
|
+
"title": "Include Base Tools",
|
746
|
+
"description": "If true, attaches the Letta core tools (e.g. archival_memory and core_memory related functions).",
|
747
|
+
"default": true
|
748
|
+
},
|
749
|
+
"include_multi_agent_tools": {
|
750
|
+
"type": "boolean",
|
751
|
+
"title": "Include Multi Agent Tools",
|
752
|
+
"description": "If true, attaches the Letta multi-agent tools (e.g. sending a message to another agent).",
|
753
|
+
"default": false
|
754
|
+
},
|
755
|
+
"include_base_tool_rules": {
|
756
|
+
"type": "boolean",
|
757
|
+
"title": "Include Base Tool Rules",
|
758
|
+
"description": "If true, attaches the Letta base tool rules (e.g. deny all tools not explicitly allowed).",
|
759
|
+
"default": true
|
760
|
+
},
|
761
|
+
"description": {
|
762
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
763
|
+
"title": "Description",
|
764
|
+
"description": "The description of the agent."
|
765
|
+
},
|
766
|
+
"metadata": {
|
767
|
+
"anyOf": [
|
768
|
+
{ "additionalProperties": true, "type": "object" },
|
769
|
+
{ "type": "null" }
|
770
|
+
],
|
771
|
+
"title": "Metadata",
|
772
|
+
"description": "The metadata of the agent."
|
773
|
+
},
|
774
|
+
"model": {
|
775
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
776
|
+
"title": "Model",
|
777
|
+
"description": "The LLM configuration handle used by the agent, specified in the format provider/model-name, as an alternative to specifying llm_config."
|
778
|
+
},
|
779
|
+
"embedding": {
|
780
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
781
|
+
"title": "Embedding",
|
782
|
+
"description": "The embedding configuration handle used by the agent, specified in the format provider/model-name."
|
783
|
+
},
|
784
|
+
"context_window_limit": {
|
785
|
+
"anyOf": [{ "type": "integer" }, { "type": "null" }],
|
786
|
+
"title": "Context Window Limit",
|
787
|
+
"description": "The context window limit used by the agent."
|
788
|
+
},
|
789
|
+
"embedding_chunk_size": {
|
790
|
+
"anyOf": [{ "type": "integer" }, { "type": "null" }],
|
791
|
+
"title": "Embedding Chunk Size",
|
792
|
+
"description": "The embedding chunk size used by the agent.",
|
793
|
+
"default": 300
|
794
|
+
},
|
795
|
+
"max_tokens": {
|
796
|
+
"anyOf": [{ "type": "integer" }, { "type": "null" }],
|
797
|
+
"title": "Max Tokens",
|
798
|
+
"description": "The maximum number of tokens to generate, including reasoning step. If not set, the model will use its default value."
|
799
|
+
},
|
800
|
+
"max_reasoning_tokens": {
|
801
|
+
"anyOf": [{ "type": "integer" }, { "type": "null" }],
|
802
|
+
"title": "Max Reasoning Tokens",
|
803
|
+
"description": "The maximum number of tokens to generate for reasoning step. If not set, the model will use its default value."
|
804
|
+
},
|
805
|
+
"enable_reasoner": {
|
806
|
+
"anyOf": [{ "type": "boolean" }, { "type": "null" }],
|
807
|
+
"title": "Enable Reasoner",
|
808
|
+
"description": "Whether to enable internal extended thinking step for a reasoner model.",
|
809
|
+
"default": false
|
810
|
+
},
|
811
|
+
"from_template": {
|
812
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
813
|
+
"title": "From Template",
|
814
|
+
"description": "The template id used to configure the agent"
|
815
|
+
},
|
816
|
+
"template": {
|
817
|
+
"type": "boolean",
|
818
|
+
"title": "Template",
|
819
|
+
"description": "Whether the agent is a template",
|
820
|
+
"default": false
|
821
|
+
},
|
822
|
+
"project": {
|
823
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
824
|
+
"title": "Project",
|
825
|
+
"description": "Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below.",
|
826
|
+
"deprecated": true
|
827
|
+
},
|
828
|
+
"tool_exec_environment_variables": {
|
829
|
+
"anyOf": [
|
830
|
+
{ "additionalProperties": { "type": "string" }, "type": "object" },
|
831
|
+
{ "type": "null" }
|
832
|
+
],
|
833
|
+
"title": "Tool Exec Environment Variables",
|
834
|
+
"description": "The environment variables for tool execution specific to this agent."
|
835
|
+
},
|
836
|
+
"memory_variables": {
|
837
|
+
"anyOf": [
|
838
|
+
{ "additionalProperties": { "type": "string" }, "type": "object" },
|
839
|
+
{ "type": "null" }
|
840
|
+
],
|
841
|
+
"title": "Memory Variables",
|
842
|
+
"description": "The variables that should be set for the agent."
|
843
|
+
},
|
844
|
+
"project_id": {
|
845
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
846
|
+
"title": "Project Id",
|
847
|
+
"description": "The id of the project the agent belongs to."
|
848
|
+
},
|
849
|
+
"template_id": {
|
850
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
851
|
+
"title": "Template Id",
|
852
|
+
"description": "The id of the template the agent belongs to."
|
853
|
+
},
|
854
|
+
"base_template_id": {
|
855
|
+
"anyOf": [{ "type": "string" }, { "type": "null" }],
|
856
|
+
"title": "Base Template Id",
|
857
|
+
"description": "The base template id of the agent."
|
858
|
+
},
|
859
|
+
"identity_ids": {
|
860
|
+
"anyOf": [
|
861
|
+
{ "items": { "type": "string" }, "type": "array" },
|
862
|
+
{ "type": "null" }
|
863
|
+
],
|
864
|
+
"title": "Identity Ids",
|
865
|
+
"description": "The ids of the identities associated with this agent."
|
866
|
+
},
|
867
|
+
"message_buffer_autoclear": {
|
868
|
+
"type": "boolean",
|
869
|
+
"title": "Message Buffer Autoclear",
|
870
|
+
"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.",
|
871
|
+
"default": false
|
872
|
+
},
|
873
|
+
"enable_sleeptime": {
|
874
|
+
"anyOf": [{ "type": "boolean" }, { "type": "null" }],
|
875
|
+
"title": "Enable Sleeptime",
|
876
|
+
"description": "If set to True, memory management will move to a background agent thread."
|
877
|
+
}
|
878
|
+
},
|
879
|
+
"type": "object",
|
880
|
+
"title": "CreateAgentRequest",
|
881
|
+
"description": "CreateAgent model specifically for POST request body, excluding user_id which comes from headers",
|
882
|
+
"x-readme-ref-name": "CreateAgentRequest"
|
883
|
+
}
|