@lumavox/server 0.14.7 → 0.18.0
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/README.md +3 -3
- package/dist/gen/index.d.ts +1 -1
- package/dist/gen/types.gen.d.ts +720 -44
- package/dist/index.d.ts +1 -1
- package/dist/resources/end-users.d.ts +31 -5
- package/dist/resources/end-users.js +28 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ list's page.
|
|
|
60
60
|
|
|
61
61
|
| Resource | Methods |
|
|
62
62
|
|---|---|
|
|
63
|
-
| `endUsers` | `create`, `get`, `update`, `delete`, `list`, `page`, `export`; `facts.list`, `facts.add`, `facts.update`, `facts.delete` |
|
|
63
|
+
| `endUsers` | `create`, `get`, `update`, `delete`, `list`, `page`, `export`; `facts.list`, `facts.add`, `facts.update`, `facts.delete`; `memories.list`, `memories.page`, `memories.get`, `memories.delete`, `memories.deleteAll` |
|
|
64
64
|
| `ephemeralKeys` | `limits`, `create`, `revoke`, `inspect`, `list`, `page` |
|
|
65
65
|
| `images`, `videos`, `audio`, `skybox`, `transcriptions` | `create`, `get`, `wait`, `generate`; `skybox.styles` |
|
|
66
66
|
| `generations` | `get`, `wait`, `list`, `page` |
|
|
@@ -137,8 +137,8 @@ and a longer one is thrown at once as a `RateLimitError` with its
|
|
|
137
137
|
ones (`settled_at`), reading the key with `get` — pass a `signal` for a
|
|
138
138
|
deadline. **`inspect` shows a key's spend turn by turn**, as the key
|
|
139
139
|
itself reads it.
|
|
140
|
-
- **`endUsers.export(id)`** reads every conversation
|
|
141
|
-
person — replaced facts too, until they are deleted — with a
|
|
140
|
+
- **`endUsers.export(id)`** reads every conversation, fact and memory
|
|
141
|
+
about a person — replaced facts too, until they are deleted — with a
|
|
142
142
|
five-minute key of their own, revoked after — on failure
|
|
143
143
|
too. The key is an ordinary one: at the person's live-key cap the export
|
|
144
144
|
fails as the mint does.
|
package/dist/gen/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { AgentCreateRequest, AgentInfo, AgentKnowledgeUpdate, AgentPage, AgentSettingsInfo, AgentSettingsUpdate, AgentStt, AgentSttInfo, AgentSummary, AgentToolsUpdate, AgentUpdate, AgentVoice, AgentVoiceInfo, ApiKeySelf, AssetBulkRequest, AssetDetail, AssetMoveRequest, AssetPage, AssetsAffected, AssetSummary, AssetUpdate, AssignedAgent, AudioRequest, BulkEditKnowledgeData, BulkEditKnowledgeError, BulkEditKnowledgeErrors, BulkEditKnowledgeResponse, BulkEditKnowledgeResponses, ClientOptions, CompactionInfo, CompactRequest, CompactSessionData, CompactSessionError, CompactSessionErrors, CompactSessionResponse, CompactSessionResponses, ConfirmAssetUploadData, ConfirmAssetUploadError, ConfirmAssetUploadErrors, ConfirmAssetUploadResponse, ConfirmAssetUploadResponses, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentResponse, CreateAgentResponses, CreateAssetFolderData, CreateAssetFolderError, CreateAssetFolderErrors, CreateAssetFolderResponse, CreateAssetFolderResponses, CreateAssetUploadUrlData, CreateAssetUploadUrlError, CreateAssetUploadUrlErrors, CreateAssetUploadUrlResponse, CreateAssetUploadUrlResponses, CreateAudioData, CreateAudioError, CreateAudioErrors, CreateAudioResponse, CreateAudioResponses, CreateEndUserData, CreateEndUserError, CreateEndUserErrors, CreateEndUserFactData, CreateEndUserFactError, CreateEndUserFactErrors, CreateEndUserFactResponse, CreateEndUserFactResponses, CreateEndUserResponse, CreateEndUserResponses, CreateEphemeralKeyData, CreateEphemeralKeyError, CreateEphemeralKeyErrors, CreateEphemeralKeyResponse, CreateEphemeralKeyResponses, CreateFactData, CreateFactError, CreateFactErrors, CreateFactResponse, CreateFactResponses, CreateImageData, CreateImageError, CreateImageErrors, CreateImageResponse, CreateImageResponses, CreateKnowledgeData, CreateKnowledgeError, CreateKnowledgeErrors, CreateKnowledgeFromFileData, CreateKnowledgeFromFileError, CreateKnowledgeFromFileErrors, CreateKnowledgeFromFileResponse, CreateKnowledgeFromFileResponses, CreateKnowledgeFromUrlData, CreateKnowledgeFromUrlError, CreateKnowledgeFromUrlErrors, CreateKnowledgeFromUrlResponse, CreateKnowledgeFromUrlResponses, CreateKnowledgeResponse, CreateKnowledgeResponses, CreateKnowledgeUploadUrlData, CreateKnowledgeUploadUrlError, CreateKnowledgeUploadUrlErrors, CreateKnowledgeUploadUrlResponse, CreateKnowledgeUploadUrlResponses, CreateSessionData, CreateSessionError, CreateSessionErrors, CreateSessionResponse, CreateSessionResponses, CreateSkyboxData, CreateSkyboxError, CreateSkyboxErrors, CreateSkyboxResponse, CreateSkyboxResponses, CreateToolData, CreateToolError, CreateToolErrors, CreateToolResponse, CreateToolResponses, CreateTranscriptionData, CreateTranscriptionError, CreateTranscriptionErrors, CreateTranscriptionResponse, CreateTranscriptionResponses, CreateVideoData, CreateVideoError, CreateVideoErrors, CreateVideoResponse, CreateVideoResponses, CreateVoiceData, CreateVoiceError, CreateVoiceErrors, CreateVoiceResponse, CreateVoiceResponses, CreateVoiceUploadUrlData, CreateVoiceUploadUrlError, CreateVoiceUploadUrlErrors, CreateVoiceUploadUrlResponse, CreateVoiceUploadUrlResponses, DeleteAgentData, DeleteAgentError, DeleteAgentErrors, DeleteAgentResponse, DeleteAgentResponses, DeleteAllFactsData, DeleteAllFactsError, DeleteAllFactsErrors, DeleteAllFactsResponse, DeleteAllFactsResponses, DeleteAssetData, DeleteAssetError, DeleteAssetErrors, DeleteAssetFolderData, DeleteAssetFolderError, DeleteAssetFolderErrors, DeleteAssetFolderResponse, DeleteAssetFolderResponses, DeleteAssetResponse, DeleteAssetResponses, DeleteAssetsData, DeleteAssetsError, DeleteAssetsErrors, DeleteAssetsResponse, DeleteAssetsResponses, DeleteEndUserData, DeleteEndUserError, DeleteEndUserErrors, DeleteEndUserFactData, DeleteEndUserFactError, DeleteEndUserFactErrors, DeleteEndUserFactResponse, DeleteEndUserFactResponses, DeleteEndUserResponse, DeleteEndUserResponses, DeleteFactData, DeleteFactError, DeleteFactErrors, DeleteFactResponse, DeleteFactResponses, DeleteKnowledgeData, DeleteKnowledgeError, DeleteKnowledgeErrors, DeleteKnowledgeResponse, DeleteKnowledgeResponses, DeleteSessionData, DeleteSessionError, DeleteSessionErrors, DeleteSessionResponse, DeleteSessionResponses, DeleteToolData, DeleteToolError, DeleteToolErrors, DeleteToolResponse, DeleteToolResponses, DeleteVoiceData, DeleteVoiceError, DeleteVoiceErrors, DeleteVoiceResponse, DeleteVoiceResponses, DesignVoiceData, DesignVoiceError, DesignVoiceErrors, DesignVoiceResponse, DesignVoiceResponses, EndUserCreateRequest, EndUserDeleted, EndUserInfo, EndUserPage, EndUserUpdateRequest, EphemeralKeyCreateRequest, EphemeralKeyCreateResponse, EphemeralKeyInfo, EphemeralKeyLimits, EphemeralKeyPage, EphemeralTokenSelf, ErrorCode, ErrorInfo, ErrorResponse, ExtractSessionFactsData, ExtractSessionFactsError, ExtractSessionFactsErrors, ExtractSessionFactsResponse, ExtractSessionFactsResponses, FactCreateRequest, FactInfo, FactPage, FactsDeleted, FactUpdateRequest, FolderCreate, FolderDeleted, FolderDetail, FolderPage, FolderSummary, FolderUpdate, GenerateFromTemplateData, GenerateFromTemplateError, GenerateFromTemplateErrors, GenerateFromTemplateResponse, GenerateFromTemplateResponses, GenerationAudio, GenerationImage, GenerationInfo, GenerationPage, GenerationSkybox, GenerationTranscript, GenerationVideo, GetAgentData, GetAgentError, GetAgentErrors, GetAgentResponse, GetAgentResponses, GetAgentSettingsData, GetAgentSettingsError, GetAgentSettingsErrors, GetAgentSettingsResponse, GetAgentSettingsResponses, GetAssetData, GetAssetError, GetAssetErrors, GetAssetFolderData, GetAssetFolderError, GetAssetFolderErrors, GetAssetFolderResponse, GetAssetFolderResponses, GetAssetResponse, GetAssetResponses, GetAudioData, GetAudioError, GetAudioErrors, GetAudioResponse, GetAudioResponses, GetEndUserData, GetEndUserError, GetEndUserErrors, GetEndUserResponse, GetEndUserResponses, GetEphemeralKeyData, GetEphemeralKeyError, GetEphemeralKeyErrors, GetEphemeralKeyLimitsData, GetEphemeralKeyLimitsError, GetEphemeralKeyLimitsErrors, GetEphemeralKeyLimitsResponse, GetEphemeralKeyLimitsResponses, GetEphemeralKeyResponse, GetEphemeralKeyResponses, GetGenerationData, GetGenerationError, GetGenerationErrors, GetGenerationResponse, GetGenerationResponses, GetHealthData, GetHealthResponse, GetHealthResponses, GetImageData, GetImageError, GetImageErrors, GetImageResponse, GetImageResponses, GetKnowledgeData, GetKnowledgeError, GetKnowledgeErrors, GetKnowledgeInsightsData, GetKnowledgeInsightsError, GetKnowledgeInsightsErrors, GetKnowledgeInsightsResponse, GetKnowledgeInsightsResponses, GetKnowledgeResponse, GetKnowledgeResponses, GetPlanData, GetPlanError, GetPlanErrors, GetPlanResponse, GetPlanResponses, GetPlatformLimitsData, GetPlatformLimitsResponse, GetPlatformLimitsResponses, GetSessionData, GetSessionError, GetSessionErrors, GetSessionResponse, GetSessionResponses, GetSkyboxData, GetSkyboxError, GetSkyboxErrors, GetSkyboxResponse, GetSkyboxResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateFileData, GetTemplateFileError, GetTemplateFileErrors, GetTemplateFileResponses, GetTemplateResponse, GetTemplateResponses, GetTokenData, GetTokenError, GetTokenErrors, GetTokenResponse, GetTokenResponses, GetToolData, GetToolError, GetToolErrors, GetToolResponse, GetToolResponses, GetTranscriptionData, GetTranscriptionError, GetTranscriptionErrors, GetTranscriptionResponse, GetTranscriptionResponses, GetUsageData, GetUsageError, GetUsageErrors, GetUsageResponse, GetUsageResponses, GetVideoData, GetVideoError, GetVideoErrors, GetVideoResponse, GetVideoResponses, GetVoiceData, GetVoiceError, GetVoiceErrors, GetVoiceResponse, GetVoiceResponses, HealthResponse, ImageRequest, KnowledgeAgentsUpdate, KnowledgeAssigned, KnowledgeBulk, KnowledgeBulkResult, KnowledgeCategoryPage, KnowledgeCitation, KnowledgeCreate, KnowledgeEntryUsage, KnowledgeFileCreate, KnowledgeInfo, KnowledgeInsights, KnowledgeLookupInfo, KnowledgePage, KnowledgeSearchHit, KnowledgeSearchRequest, KnowledgeSearchResult, KnowledgeUpdate, KnowledgeUploadRequest, KnowledgeUploadTicket, KnowledgeUrlCreate, ListAgentKnowledgeData, ListAgentKnowledgeError, ListAgentKnowledgeErrors, ListAgentKnowledgeResponse, ListAgentKnowledgeResponses, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListAgentToolsData, ListAgentToolsError, ListAgentToolsErrors, ListAgentToolsResponse, ListAgentToolsResponses, ListAssetFoldersData, ListAssetFoldersError, ListAssetFoldersErrors, ListAssetFoldersResponse, ListAssetFoldersResponses, ListAssetsData, ListAssetsError, ListAssetsErrors, ListAssetsResponse, ListAssetsResponses, ListEndUserFactsData, ListEndUserFactsError, ListEndUserFactsErrors, ListEndUserFactsResponse, ListEndUserFactsResponses, ListEndUsersData, ListEndUsersError, ListEndUsersErrors, ListEndUsersResponse, ListEndUsersResponses, ListEphemeralKeysData, ListEphemeralKeysError, ListEphemeralKeysErrors, ListEphemeralKeysResponse, ListEphemeralKeysResponses, ListFactsData, ListFactsError, ListFactsErrors, ListFactsResponse, ListFactsResponses, ListGenerationsData, ListGenerationsError, ListGenerationsErrors, ListGenerationsResponse, ListGenerationsResponses, ListKnowledgeCategoriesData, ListKnowledgeCategoriesError, ListKnowledgeCategoriesErrors, ListKnowledgeCategoriesResponse, ListKnowledgeCategoriesResponses, ListKnowledgeData, ListKnowledgeError, ListKnowledgeErrors, ListKnowledgeResponse, ListKnowledgeResponses, ListRelationsData, ListRelationsError, ListRelationsErrors, ListRelationsResponse, ListRelationsResponses, ListSessionsData, ListSessionsError, ListSessionsErrors, ListSessionsResponse, ListSessionsResponses, ListSkyboxStylesData, ListSkyboxStylesError, ListSkyboxStylesErrors, ListSkyboxStylesResponse, ListSkyboxStylesResponses, ListTemplatesData, ListTemplatesError, ListTemplatesErrors, ListTemplatesResponse, ListTemplatesResponses, ListToolCallsData, ListToolCallsError, ListToolCallsErrors, ListToolCallsResponse, ListToolCallsResponses, ListToolsData, ListToolsError, ListToolsErrors, ListToolsResponse, ListToolsResponses, ListVoicesData, ListVoicesError, ListVoicesErrors, ListVoicesResponse, ListVoicesResponses, MessageInfo, MessageKnowledge, MessagePage, MessageSource, MessageToolCall, MoveAssetsData, MoveAssetsError, MoveAssetsErrors, MoveAssetsResponse, MoveAssetsResponses, OrgPlan, PlatformLimit, PlatformLimitPage, ProviderVoiceSettings, ProviderVoiceSettingsInfo, Reference, RefreshKnowledgeData, RefreshKnowledgeError, RefreshKnowledgeErrors, RefreshKnowledgeResponse, RefreshKnowledgeResponses, ReindexKnowledgeData, ReindexKnowledgeError, ReindexKnowledgeErrors, ReindexKnowledgeResponse, ReindexKnowledgeResponses, RelationInfo, RelationPage, ResampleVoiceData, ResampleVoiceError, ResampleVoiceErrors, ResampleVoiceResponse, ResampleVoiceResponses, RevokeEphemeralKeyData, RevokeEphemeralKeyError, RevokeEphemeralKeyErrors, RevokeEphemeralKeyResponse, RevokeEphemeralKeyResponses, RotateToolSecretData, RotateToolSecretError, RotateToolSecretErrors, RotateToolSecretResponse, RotateToolSecretResponses, SaveDesignedVoiceData, SaveDesignedVoiceError, SaveDesignedVoiceErrors, SaveDesignedVoiceResponse, SaveDesignedVoiceResponses, SearchKnowledgeData, SearchKnowledgeError, SearchKnowledgeErrors, SearchKnowledgeResponse, SearchKnowledgeResponses, SessionCreateRequest, SessionDetail, SessionInfo, SessionPage, SetAgentKnowledgeData, SetAgentKnowledgeError, SetAgentKnowledgeErrors, SetAgentKnowledgeResponse, SetAgentKnowledgeResponses, SetAgentToolsData, SetAgentToolsError, SetAgentToolsErrors, SetAgentToolsResponse, SetAgentToolsResponses, SetKnowledgeAgentsData, SetKnowledgeAgentsError, SetKnowledgeAgentsErrors, SetKnowledgeAgentsResponse, SetKnowledgeAgentsResponses, SkyboxFile, SkyboxRequest, SkyboxStyle, SkyboxStylePage, SpeechProvider, StreamDone, StreamError, StreamSegment, StreamTranscript, SynthesizeSpeechData, SynthesizeSpeechError, SynthesizeSpeechErrors, SynthesizeSpeechResponse, SynthesizeSpeechResponses, TemplateGenerateRequest, TemplateInfo, TemplateInput, TemplatePage, TestToolData, TestToolError, TestToolErrors, TestToolResponse, TestToolResponses, TokenSelf, ToolCall, ToolCallPage, ToolCreate, ToolInfo, ToolPage, ToolsAssigned, ToolTestRequest, ToolTestResult, ToolUpdate, ToolWithSecret, TranscribeAssetRequest, TranscribeData, TranscribeError, TranscribeErrors, TranscribeResponse, TranscribeResponses, Transcription, TranscriptionStreamLine, TranscriptWord, TtsOptions, TtsRequest, UnansweredQuestion, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentResponse, UpdateAgentResponses, UpdateAgentSettingsData, UpdateAgentSettingsError, UpdateAgentSettingsErrors, UpdateAgentSettingsResponse, UpdateAgentSettingsResponses, UpdateAssetData, UpdateAssetError, UpdateAssetErrors, UpdateAssetFolderData, UpdateAssetFolderError, UpdateAssetFolderErrors, UpdateAssetFolderResponse, UpdateAssetFolderResponses, UpdateAssetResponse, UpdateAssetResponses, UpdateEndUserData, UpdateEndUserError, UpdateEndUserErrors, UpdateEndUserFactData, UpdateEndUserFactError, UpdateEndUserFactErrors, UpdateEndUserFactResponse, UpdateEndUserFactResponses, UpdateEndUserResponse, UpdateEndUserResponses, UpdateFactData, UpdateFactError, UpdateFactErrors, UpdateFactResponse, UpdateFactResponses, UpdateKnowledgeData, UpdateKnowledgeError, UpdateKnowledgeErrors, UpdateKnowledgeResponse, UpdateKnowledgeResponses, UpdateToolData, UpdateToolError, UpdateToolErrors, UpdateToolResponse, UpdateToolResponses, UpdateVoiceData, UpdateVoiceError, UpdateVoiceErrors, UpdateVoiceResponse, UpdateVoiceResponses, UploadConfirm, UploadTicket, UploadTicketRequest, UsageByKey, UsageDay, UsageResponse, UsageSummary, ValidationIssue, VariantInfo, VideoRequest, VoiceDesignPreview, VoiceDesignRequest, VoiceDesignResult, VoiceDesignSaveRequest, VoiceDetail, VoiceInfo, VoiceInfoPage, VoiceKind, VoiceSample, VoiceSource, VoiceStatus, VoiceUpdate, VoiceUpload, VoiceUploadRequest, VoiceUploadTicket } from './types.gen.js';
|
|
1
|
+
export type { AgentCreateRequest, AgentInfo, AgentKnowledgeUpdate, AgentPage, AgentSettingsInfo, AgentSettingsUpdate, AgentStt, AgentSttInfo, AgentSummary, AgentToolsUpdate, AgentUpdate, AgentVoice, AgentVoiceInfo, ApiKeySelf, AssetBulkRequest, AssetDetail, AssetMoveRequest, AssetPage, AssetsAffected, AssetSummary, AssetUpdate, AssignedAgent, AudioRequest, BulkEditKnowledgeData, BulkEditKnowledgeError, BulkEditKnowledgeErrors, BulkEditKnowledgeResponse, BulkEditKnowledgeResponses, ClientOptions, CompactionInfo, CompactRequest, CompactSessionData, CompactSessionError, CompactSessionErrors, CompactSessionResponse, CompactSessionResponses, ConfirmAssetUploadData, ConfirmAssetUploadError, ConfirmAssetUploadErrors, ConfirmAssetUploadResponse, ConfirmAssetUploadResponses, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentResponse, CreateAgentResponses, CreateAssetFolderData, CreateAssetFolderError, CreateAssetFolderErrors, CreateAssetFolderResponse, CreateAssetFolderResponses, CreateAssetUploadUrlData, CreateAssetUploadUrlError, CreateAssetUploadUrlErrors, CreateAssetUploadUrlResponse, CreateAssetUploadUrlResponses, CreateAudioData, CreateAudioError, CreateAudioErrors, CreateAudioResponse, CreateAudioResponses, CreateEndUserData, CreateEndUserError, CreateEndUserErrors, CreateEndUserFactData, CreateEndUserFactError, CreateEndUserFactErrors, CreateEndUserFactResponse, CreateEndUserFactResponses, CreateEndUserResponse, CreateEndUserResponses, CreateEphemeralKeyData, CreateEphemeralKeyError, CreateEphemeralKeyErrors, CreateEphemeralKeyResponse, CreateEphemeralKeyResponses, CreateFactData, CreateFactError, CreateFactErrors, CreateFactResponse, CreateFactResponses, CreateImageData, CreateImageError, CreateImageErrors, CreateImageResponse, CreateImageResponses, CreateKnowledgeData, CreateKnowledgeError, CreateKnowledgeErrors, CreateKnowledgeFromFileData, CreateKnowledgeFromFileError, CreateKnowledgeFromFileErrors, CreateKnowledgeFromFileResponse, CreateKnowledgeFromFileResponses, CreateKnowledgeFromUrlData, CreateKnowledgeFromUrlError, CreateKnowledgeFromUrlErrors, CreateKnowledgeFromUrlResponse, CreateKnowledgeFromUrlResponses, CreateKnowledgeResponse, CreateKnowledgeResponses, CreateKnowledgeUploadUrlData, CreateKnowledgeUploadUrlError, CreateKnowledgeUploadUrlErrors, CreateKnowledgeUploadUrlResponse, CreateKnowledgeUploadUrlResponses, CreateSessionData, CreateSessionError, CreateSessionErrors, CreateSessionResponse, CreateSessionResponses, CreateSkyboxData, CreateSkyboxError, CreateSkyboxErrors, CreateSkyboxResponse, CreateSkyboxResponses, CreateToolData, CreateToolError, CreateToolErrors, CreateToolResponse, CreateToolResponses, CreateTranscriptionData, CreateTranscriptionError, CreateTranscriptionErrors, CreateTranscriptionResponse, CreateTranscriptionResponses, CreateVideoData, CreateVideoError, CreateVideoErrors, CreateVideoResponse, CreateVideoResponses, CreateVoiceData, CreateVoiceError, CreateVoiceErrors, CreateVoiceResponse, CreateVoiceResponses, CreateVoiceUploadUrlData, CreateVoiceUploadUrlError, CreateVoiceUploadUrlErrors, CreateVoiceUploadUrlResponse, CreateVoiceUploadUrlResponses, DeleteAgentData, DeleteAgentError, DeleteAgentErrors, DeleteAgentResponse, DeleteAgentResponses, DeleteAllEndUserMemoriesData, DeleteAllEndUserMemoriesError, DeleteAllEndUserMemoriesErrors, DeleteAllEndUserMemoriesResponse, DeleteAllEndUserMemoriesResponses, DeleteAllFactsData, DeleteAllFactsError, DeleteAllFactsErrors, DeleteAllFactsResponse, DeleteAllFactsResponses, DeleteAllMemoriesData, DeleteAllMemoriesError, DeleteAllMemoriesErrors, DeleteAllMemoriesResponse, DeleteAllMemoriesResponses, DeleteAssetData, DeleteAssetError, DeleteAssetErrors, DeleteAssetFolderData, DeleteAssetFolderError, DeleteAssetFolderErrors, DeleteAssetFolderResponse, DeleteAssetFolderResponses, DeleteAssetResponse, DeleteAssetResponses, DeleteAssetsData, DeleteAssetsError, DeleteAssetsErrors, DeleteAssetsResponse, DeleteAssetsResponses, DeleteEndUserData, DeleteEndUserError, DeleteEndUserErrors, DeleteEndUserFactData, DeleteEndUserFactError, DeleteEndUserFactErrors, DeleteEndUserFactResponse, DeleteEndUserFactResponses, DeleteEndUserMemoryData, DeleteEndUserMemoryError, DeleteEndUserMemoryErrors, DeleteEndUserMemoryResponse, DeleteEndUserMemoryResponses, DeleteEndUserResponse, DeleteEndUserResponses, DeleteFactData, DeleteFactError, DeleteFactErrors, DeleteFactResponse, DeleteFactResponses, DeleteKnowledgeData, DeleteKnowledgeError, DeleteKnowledgeErrors, DeleteKnowledgeResponse, DeleteKnowledgeResponses, DeleteMemoryData, DeleteMemoryError, DeleteMemoryErrors, DeleteMemoryResponse, DeleteMemoryResponses, DeleteSessionData, DeleteSessionError, DeleteSessionErrors, DeleteSessionResponse, DeleteSessionResponses, DeleteToolData, DeleteToolError, DeleteToolErrors, DeleteToolResponse, DeleteToolResponses, DeleteVoiceData, DeleteVoiceError, DeleteVoiceErrors, DeleteVoiceResponse, DeleteVoiceResponses, DesignVoiceData, DesignVoiceError, DesignVoiceErrors, DesignVoiceResponse, DesignVoiceResponses, EndUserCreateRequest, EndUserDeleted, EndUserInfo, EndUserPage, EndUserUpdateRequest, EphemeralKeyCreateRequest, EphemeralKeyCreateResponse, EphemeralKeyInfo, EphemeralKeyLimits, EphemeralKeyPage, EphemeralTokenSelf, ErrorCode, ErrorInfo, ErrorResponse, ExtractSessionFactsData, ExtractSessionFactsError, ExtractSessionFactsErrors, ExtractSessionFactsResponse, ExtractSessionFactsResponses, FactCreateRequest, FactInfo, FactPage, FactsDeleted, FactsReadInfo, FactUpdateRequest, FolderCreate, FolderDeleted, FolderDetail, FolderPage, FolderSummary, FolderUpdate, GenerateFromTemplateData, GenerateFromTemplateError, GenerateFromTemplateErrors, GenerateFromTemplateResponse, GenerateFromTemplateResponses, GenerationAudio, GenerationImage, GenerationInfo, GenerationPage, GenerationSkybox, GenerationTranscript, GenerationVideo, GetAgentData, GetAgentError, GetAgentErrors, GetAgentResponse, GetAgentResponses, GetAgentSettingsData, GetAgentSettingsError, GetAgentSettingsErrors, GetAgentSettingsResponse, GetAgentSettingsResponses, GetAssetData, GetAssetError, GetAssetErrors, GetAssetFolderData, GetAssetFolderError, GetAssetFolderErrors, GetAssetFolderResponse, GetAssetFolderResponses, GetAssetResponse, GetAssetResponses, GetAudioData, GetAudioError, GetAudioErrors, GetAudioResponse, GetAudioResponses, GetEndUserData, GetEndUserError, GetEndUserErrors, GetEndUserMemoryData, GetEndUserMemoryError, GetEndUserMemoryErrors, GetEndUserMemoryResponse, GetEndUserMemoryResponses, GetEndUserResponse, GetEndUserResponses, GetEphemeralKeyData, GetEphemeralKeyError, GetEphemeralKeyErrors, GetEphemeralKeyLimitsData, GetEphemeralKeyLimitsError, GetEphemeralKeyLimitsErrors, GetEphemeralKeyLimitsResponse, GetEphemeralKeyLimitsResponses, GetEphemeralKeyResponse, GetEphemeralKeyResponses, GetGenerationData, GetGenerationError, GetGenerationErrors, GetGenerationResponse, GetGenerationResponses, GetHealthData, GetHealthResponse, GetHealthResponses, GetImageData, GetImageError, GetImageErrors, GetImageResponse, GetImageResponses, GetKnowledgeData, GetKnowledgeError, GetKnowledgeErrors, GetKnowledgeInsightsData, GetKnowledgeInsightsError, GetKnowledgeInsightsErrors, GetKnowledgeInsightsResponse, GetKnowledgeInsightsResponses, GetKnowledgeResponse, GetKnowledgeResponses, GetMemoryData, GetMemoryError, GetMemoryErrors, GetMemoryResponse, GetMemoryResponses, GetPlanData, GetPlanError, GetPlanErrors, GetPlanResponse, GetPlanResponses, GetPlatformLimitsData, GetPlatformLimitsResponse, GetPlatformLimitsResponses, GetSessionData, GetSessionError, GetSessionErrors, GetSessionResponse, GetSessionResponses, GetSkyboxData, GetSkyboxError, GetSkyboxErrors, GetSkyboxResponse, GetSkyboxResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateFileData, GetTemplateFileError, GetTemplateFileErrors, GetTemplateFileResponses, GetTemplateResponse, GetTemplateResponses, GetTokenData, GetTokenError, GetTokenErrors, GetTokenResponse, GetTokenResponses, GetToolData, GetToolError, GetToolErrors, GetToolResponse, GetToolResponses, GetTranscriptionData, GetTranscriptionError, GetTranscriptionErrors, GetTranscriptionResponse, GetTranscriptionResponses, GetUsageData, GetUsageError, GetUsageErrors, GetUsageResponse, GetUsageResponses, GetVideoData, GetVideoError, GetVideoErrors, GetVideoResponse, GetVideoResponses, GetVoiceData, GetVoiceError, GetVoiceErrors, GetVoiceResponse, GetVoiceResponses, HealthResponse, ImageRequest, KnowledgeAgentsUpdate, KnowledgeAssigned, KnowledgeBulk, KnowledgeBulkResult, KnowledgeCategoryPage, KnowledgeCitation, KnowledgeCreate, KnowledgeEntryUsage, KnowledgeFileCreate, KnowledgeInfo, KnowledgeInsights, KnowledgeLookupInfo, KnowledgePage, KnowledgeSearchHit, KnowledgeSearchRequest, KnowledgeSearchResult, KnowledgeUpdate, KnowledgeUploadRequest, KnowledgeUploadTicket, KnowledgeUrlCreate, ListAgentKnowledgeData, ListAgentKnowledgeError, ListAgentKnowledgeErrors, ListAgentKnowledgeResponse, ListAgentKnowledgeResponses, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListAgentToolsData, ListAgentToolsError, ListAgentToolsErrors, ListAgentToolsResponse, ListAgentToolsResponses, ListAssetFoldersData, ListAssetFoldersError, ListAssetFoldersErrors, ListAssetFoldersResponse, ListAssetFoldersResponses, ListAssetsData, ListAssetsError, ListAssetsErrors, ListAssetsResponse, ListAssetsResponses, ListEndUserFactsData, ListEndUserFactsError, ListEndUserFactsErrors, ListEndUserFactsResponse, ListEndUserFactsResponses, ListEndUserMemoriesData, ListEndUserMemoriesError, ListEndUserMemoriesErrors, ListEndUserMemoriesResponse, ListEndUserMemoriesResponses, ListEndUsersData, ListEndUsersError, ListEndUsersErrors, ListEndUsersResponse, ListEndUsersResponses, ListEphemeralKeysData, ListEphemeralKeysError, ListEphemeralKeysErrors, ListEphemeralKeysResponse, ListEphemeralKeysResponses, ListFactsData, ListFactsError, ListFactsErrors, ListFactsResponse, ListFactsResponses, ListGenerationsData, ListGenerationsError, ListGenerationsErrors, ListGenerationsResponse, ListGenerationsResponses, ListKnowledgeCategoriesData, ListKnowledgeCategoriesError, ListKnowledgeCategoriesErrors, ListKnowledgeCategoriesResponse, ListKnowledgeCategoriesResponses, ListKnowledgeData, ListKnowledgeError, ListKnowledgeErrors, ListKnowledgeResponse, ListKnowledgeResponses, ListMemoriesData, ListMemoriesError, ListMemoriesErrors, ListMemoriesResponse, ListMemoriesResponses, ListRelationsData, ListRelationsError, ListRelationsErrors, ListRelationsResponse, ListRelationsResponses, ListSessionsData, ListSessionsError, ListSessionsErrors, ListSessionsResponse, ListSessionsResponses, ListSkyboxStylesData, ListSkyboxStylesError, ListSkyboxStylesErrors, ListSkyboxStylesResponse, ListSkyboxStylesResponses, ListTemplatesData, ListTemplatesError, ListTemplatesErrors, ListTemplatesResponse, ListTemplatesResponses, ListToolCallsData, ListToolCallsError, ListToolCallsErrors, ListToolCallsResponse, ListToolCallsResponses, ListToolsData, ListToolsError, ListToolsErrors, ListToolsResponse, ListToolsResponses, ListVoicesData, ListVoicesError, ListVoicesErrors, ListVoicesResponse, ListVoicesResponses, MemoriesDeleted, MemoriesWrittenInfo, MemoryCitation, MemoryInfo, MemoryPage, MessageInfo, MessageKnowledge, MessageMemories, MessagePage, MessageSource, MessageToolCall, MoveAssetsData, MoveAssetsError, MoveAssetsErrors, MoveAssetsResponse, MoveAssetsResponses, OrgPlan, PlatformLimit, PlatformLimitPage, ProviderVoiceSettings, ProviderVoiceSettingsInfo, Reference, RefreshKnowledgeData, RefreshKnowledgeError, RefreshKnowledgeErrors, RefreshKnowledgeResponse, RefreshKnowledgeResponses, ReindexKnowledgeData, ReindexKnowledgeError, ReindexKnowledgeErrors, ReindexKnowledgeResponse, ReindexKnowledgeResponses, RelationInfo, RelationPage, ResampleVoiceData, ResampleVoiceError, ResampleVoiceErrors, ResampleVoiceResponse, ResampleVoiceResponses, RevokeEphemeralKeyData, RevokeEphemeralKeyError, RevokeEphemeralKeyErrors, RevokeEphemeralKeyResponse, RevokeEphemeralKeyResponses, RotateToolSecretData, RotateToolSecretError, RotateToolSecretErrors, RotateToolSecretResponse, RotateToolSecretResponses, SaveDesignedVoiceData, SaveDesignedVoiceError, SaveDesignedVoiceErrors, SaveDesignedVoiceResponse, SaveDesignedVoiceResponses, SearchKnowledgeData, SearchKnowledgeError, SearchKnowledgeErrors, SearchKnowledgeResponse, SearchKnowledgeResponses, SessionCreateRequest, SessionDetail, SessionInfo, SessionPage, SetAgentKnowledgeData, SetAgentKnowledgeError, SetAgentKnowledgeErrors, SetAgentKnowledgeResponse, SetAgentKnowledgeResponses, SetAgentToolsData, SetAgentToolsError, SetAgentToolsErrors, SetAgentToolsResponse, SetAgentToolsResponses, SetKnowledgeAgentsData, SetKnowledgeAgentsError, SetKnowledgeAgentsErrors, SetKnowledgeAgentsResponse, SetKnowledgeAgentsResponses, SkyboxFile, SkyboxRequest, SkyboxStyle, SkyboxStylePage, SpeechProvider, StreamDone, StreamError, StreamSegment, StreamTranscript, SynthesizeSpeechData, SynthesizeSpeechError, SynthesizeSpeechErrors, SynthesizeSpeechResponse, SynthesizeSpeechResponses, TemplateGenerateRequest, TemplateInfo, TemplateInput, TemplatePage, TestToolData, TestToolError, TestToolErrors, TestToolResponse, TestToolResponses, TokenSelf, ToolCall, ToolCallPage, ToolCreate, ToolInfo, ToolPage, ToolsAssigned, ToolTestRequest, ToolTestResult, ToolUpdate, ToolWithSecret, TranscribeAssetRequest, TranscribeData, TranscribeError, TranscribeErrors, TranscribeResponse, TranscribeResponses, Transcription, TranscriptionStreamLine, TranscriptWord, TtsOptions, TtsRequest, UnansweredQuestion, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentResponse, UpdateAgentResponses, UpdateAgentSettingsData, UpdateAgentSettingsError, UpdateAgentSettingsErrors, UpdateAgentSettingsResponse, UpdateAgentSettingsResponses, UpdateAssetData, UpdateAssetError, UpdateAssetErrors, UpdateAssetFolderData, UpdateAssetFolderError, UpdateAssetFolderErrors, UpdateAssetFolderResponse, UpdateAssetFolderResponses, UpdateAssetResponse, UpdateAssetResponses, UpdateEndUserData, UpdateEndUserError, UpdateEndUserErrors, UpdateEndUserFactData, UpdateEndUserFactError, UpdateEndUserFactErrors, UpdateEndUserFactResponse, UpdateEndUserFactResponses, UpdateEndUserResponse, UpdateEndUserResponses, UpdateFactData, UpdateFactError, UpdateFactErrors, UpdateFactResponse, UpdateFactResponses, UpdateKnowledgeData, UpdateKnowledgeError, UpdateKnowledgeErrors, UpdateKnowledgeResponse, UpdateKnowledgeResponses, UpdateToolData, UpdateToolError, UpdateToolErrors, UpdateToolResponse, UpdateToolResponses, UpdateVoiceData, UpdateVoiceError, UpdateVoiceErrors, UpdateVoiceResponse, UpdateVoiceResponses, UploadConfirm, UploadTicket, UploadTicketRequest, UsageByKey, UsageDay, UsageResponse, UsageSummary, ValidationIssue, VariantInfo, VideoRequest, VoiceDesignPreview, VoiceDesignRequest, VoiceDesignResult, VoiceDesignSaveRequest, VoiceDetail, VoiceInfo, VoiceInfoPage, VoiceKind, VoiceSample, VoiceSource, VoiceStatus, VoiceUpdate, VoiceUpload, VoiceUploadRequest, VoiceUploadTicket, WriteSessionMemoriesData, WriteSessionMemoriesError, WriteSessionMemoriesErrors, WriteSessionMemoriesResponse, WriteSessionMemoriesResponses } from './types.gen.js';
|
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -1144,6 +1144,10 @@ export type MessageInfo = {
|
|
|
1144
1144
|
* On a reply: what the agent looked up in its knowledge for it — each lookup's query, outcome and the entries it found, with their scores. Null when nothing was looked up.
|
|
1145
1145
|
*/
|
|
1146
1146
|
knowledge: MessageKnowledge | null;
|
|
1147
|
+
/**
|
|
1148
|
+
* On a reply: what the agent searched its memories of the person for (`search_memories`), and the memories it found. Null when it searched none.
|
|
1149
|
+
*/
|
|
1150
|
+
memories: MessageMemories | null;
|
|
1147
1151
|
/**
|
|
1148
1152
|
* How the agent said it felt when it wrote this reply, when the agent reports moods. Null on user messages, on agents with emotion off, and on any reply where the model did not report a usable one.
|
|
1149
1153
|
*/
|
|
@@ -1186,6 +1190,28 @@ export type KnowledgeCitation = {
|
|
|
1186
1190
|
score: number;
|
|
1187
1191
|
title: string;
|
|
1188
1192
|
};
|
|
1193
|
+
export type MessageMemories = {
|
|
1194
|
+
/**
|
|
1195
|
+
* The memories it found, best first: ids, titles and scores. Each one's story went to the model alone.
|
|
1196
|
+
*/
|
|
1197
|
+
memories: Array<MemoryCitation>;
|
|
1198
|
+
/**
|
|
1199
|
+
* `found`, `none` (nothing alike enough), or `failed` (the search itself could not be done).
|
|
1200
|
+
*/
|
|
1201
|
+
outcome: 'found' | 'none' | 'failed';
|
|
1202
|
+
/**
|
|
1203
|
+
* What the agent searched for, in its own words.
|
|
1204
|
+
*/
|
|
1205
|
+
query: string;
|
|
1206
|
+
};
|
|
1207
|
+
export type MemoryCitation = {
|
|
1208
|
+
memory_id: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* How alike the memory is to the search, 0 to 1.
|
|
1211
|
+
*/
|
|
1212
|
+
score: number;
|
|
1213
|
+
title: string;
|
|
1214
|
+
};
|
|
1189
1215
|
/**
|
|
1190
1216
|
* A web page the reply read with the agent's `url_context` switch on.
|
|
1191
1217
|
*/
|
|
@@ -1337,10 +1363,6 @@ export type CompactionInfo = {
|
|
|
1337
1363
|
* The last message this summary covers. Anything after it — the last few exchanges, kept word for word, then whatever is said next — is still sent to the model verbatim.
|
|
1338
1364
|
*/
|
|
1339
1365
|
after_seq: number;
|
|
1340
|
-
/**
|
|
1341
|
-
* Durable facts written to long-term memory by this call. Zero when extraction was not asked for, or when there was nothing worth keeping.
|
|
1342
|
-
*/
|
|
1343
|
-
facts_stored: number;
|
|
1344
1366
|
input_tokens: number | null;
|
|
1345
1367
|
/**
|
|
1346
1368
|
* What produced the summary.
|
|
@@ -1357,13 +1379,59 @@ export type CompactionInfo = {
|
|
|
1357
1379
|
*/
|
|
1358
1380
|
trigger: 'manual' | 'automatic' | 'idle';
|
|
1359
1381
|
};
|
|
1382
|
+
/**
|
|
1383
|
+
* Takes no fields: send `{}` or no body. A compaction only summarises; to read the conversation for facts, `POST /v1/agent/sessions/{id}/extract`.
|
|
1384
|
+
*/
|
|
1360
1385
|
export type CompactRequest = {
|
|
1386
|
+
[key: string]: never;
|
|
1387
|
+
};
|
|
1388
|
+
/**
|
|
1389
|
+
* One reading of a conversation for durable facts about the person: what was said since the last reading.
|
|
1390
|
+
*/
|
|
1391
|
+
export type FactsReadInfo = {
|
|
1361
1392
|
/**
|
|
1362
|
-
*
|
|
1363
|
-
|
|
1364
|
-
|
|
1393
|
+
* Facts already remembered that this conversation said again; they stay in front of the agent first.
|
|
1394
|
+
*/
|
|
1395
|
+
facts_confirmed: number;
|
|
1396
|
+
/**
|
|
1397
|
+
* New facts the reading found.
|
|
1398
|
+
*/
|
|
1399
|
+
facts_found: number;
|
|
1400
|
+
/**
|
|
1401
|
+
* Facts already remembered that this conversation changed or said are no longer true: replaced by what is true now, or removed.
|
|
1402
|
+
*/
|
|
1403
|
+
facts_revised: number;
|
|
1404
|
+
/**
|
|
1405
|
+
* New facts written to long-term memory: those found, less any already remembered in the same words.
|
|
1365
1406
|
*/
|
|
1366
|
-
|
|
1407
|
+
facts_stored: number;
|
|
1408
|
+
input_tokens: number | null;
|
|
1409
|
+
/**
|
|
1410
|
+
* What read the conversation.
|
|
1411
|
+
*/
|
|
1412
|
+
model: string | null;
|
|
1413
|
+
output_tokens: number | null;
|
|
1414
|
+
session_id: string;
|
|
1415
|
+
};
|
|
1416
|
+
/**
|
|
1417
|
+
* One reading of a conversation for memories: what was said since the last reading.
|
|
1418
|
+
*/
|
|
1419
|
+
export type MemoriesWrittenInfo = {
|
|
1420
|
+
input_tokens: number | null;
|
|
1421
|
+
/**
|
|
1422
|
+
* New topics the reading kept.
|
|
1423
|
+
*/
|
|
1424
|
+
memories_created: number;
|
|
1425
|
+
/**
|
|
1426
|
+
* Memories the conversation went on with, rewritten.
|
|
1427
|
+
*/
|
|
1428
|
+
memories_updated: number;
|
|
1429
|
+
/**
|
|
1430
|
+
* What read the conversation.
|
|
1431
|
+
*/
|
|
1432
|
+
model: string | null;
|
|
1433
|
+
output_tokens: number | null;
|
|
1434
|
+
session_id: string;
|
|
1367
1435
|
};
|
|
1368
1436
|
export type FactPage = {
|
|
1369
1437
|
data: Array<FactInfo>;
|
|
@@ -1427,6 +1495,67 @@ export type FactsDeleted = {
|
|
|
1427
1495
|
*/
|
|
1428
1496
|
facts_deleted: number;
|
|
1429
1497
|
};
|
|
1498
|
+
export type MemoryPage = {
|
|
1499
|
+
data: Array<MemoryInfo>;
|
|
1500
|
+
/**
|
|
1501
|
+
* Pass as `cursor` for the next page; `null` when this is the last.
|
|
1502
|
+
*/
|
|
1503
|
+
next_cursor: string | null;
|
|
1504
|
+
};
|
|
1505
|
+
/**
|
|
1506
|
+
* One memory: a topic of the person's life, kept across conversations.
|
|
1507
|
+
*/
|
|
1508
|
+
export type MemoryInfo = {
|
|
1509
|
+
/**
|
|
1510
|
+
* The agent whose conversation first wrote it.
|
|
1511
|
+
*/
|
|
1512
|
+
agent_id: string;
|
|
1513
|
+
/**
|
|
1514
|
+
* One of the writing agent's `memory_categories`, or the platform's.
|
|
1515
|
+
*/
|
|
1516
|
+
category: string;
|
|
1517
|
+
/**
|
|
1518
|
+
* The topic's story so far, dated, ending with where it stands — rewritten whole by each conversation that comes back to it.
|
|
1519
|
+
*/
|
|
1520
|
+
content: string;
|
|
1521
|
+
/**
|
|
1522
|
+
* How many conversations fed it.
|
|
1523
|
+
*/
|
|
1524
|
+
conversation_count: number;
|
|
1525
|
+
created_at: string;
|
|
1526
|
+
/**
|
|
1527
|
+
* The first message it was written from.
|
|
1528
|
+
*/
|
|
1529
|
+
first_talked_at: string;
|
|
1530
|
+
id: string;
|
|
1531
|
+
/**
|
|
1532
|
+
* The latest message it was written from.
|
|
1533
|
+
*/
|
|
1534
|
+
last_talked_at: string;
|
|
1535
|
+
/**
|
|
1536
|
+
* `person`: every agent of yours that shares memories sees it. `agent`: only the agent that wrote it (`memories_scope`).
|
|
1537
|
+
*/
|
|
1538
|
+
scope: 'person' | 'agent';
|
|
1539
|
+
/**
|
|
1540
|
+
* One line: where it stands now.
|
|
1541
|
+
*/
|
|
1542
|
+
summary: string;
|
|
1543
|
+
/**
|
|
1544
|
+
* The topic, short.
|
|
1545
|
+
*/
|
|
1546
|
+
title: string;
|
|
1547
|
+
updated_at: string;
|
|
1548
|
+
/**
|
|
1549
|
+
* Moves by one each time a conversation rewrites it.
|
|
1550
|
+
*/
|
|
1551
|
+
version: number;
|
|
1552
|
+
};
|
|
1553
|
+
export type MemoriesDeleted = {
|
|
1554
|
+
/**
|
|
1555
|
+
* How many memories were deleted.
|
|
1556
|
+
*/
|
|
1557
|
+
memories_deleted: number;
|
|
1558
|
+
};
|
|
1430
1559
|
export type RelationPage = {
|
|
1431
1560
|
data: Array<RelationInfo>;
|
|
1432
1561
|
/**
|
|
@@ -1453,11 +1582,11 @@ export type AgentSummary = {
|
|
|
1453
1582
|
*/
|
|
1454
1583
|
compact_instruction: string | null;
|
|
1455
1584
|
/**
|
|
1456
|
-
* Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page
|
|
1585
|
+
* Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page.
|
|
1457
1586
|
*/
|
|
1458
1587
|
compact_max_output_tokens: number | null;
|
|
1459
1588
|
/**
|
|
1460
|
-
* Model for the summarising call. Unset uses the agent's own.
|
|
1589
|
+
* Model for the summarising call. Unset uses the agent's own. A compaction only summarises: facts are a call of their own (`fact_model`).
|
|
1461
1590
|
*/
|
|
1462
1591
|
compact_model: string | null;
|
|
1463
1592
|
/**
|
|
@@ -1484,18 +1613,26 @@ export type AgentSummary = {
|
|
|
1484
1613
|
* The setting the conversation takes place in.
|
|
1485
1614
|
*/
|
|
1486
1615
|
environment: string | null;
|
|
1487
|
-
/**
|
|
1488
|
-
* Whether a compaction also extracts durable facts about the user, in the same model call. A caller can always override this per request; this is what the automatic path uses.
|
|
1489
|
-
*/
|
|
1490
|
-
extract_facts_on_compact: boolean;
|
|
1491
1616
|
/**
|
|
1492
1617
|
* What counts as worth remembering. Unset falls back to the organisation's default, then to a built-in instruction.
|
|
1493
1618
|
*/
|
|
1494
1619
|
fact_instruction: string | null;
|
|
1620
|
+
/**
|
|
1621
|
+
* Length cap on a facts reading's answer, in tokens — the model's thinking included, which shares the budget. Unset sends none: the answer is a short list by its shape.
|
|
1622
|
+
*/
|
|
1623
|
+
fact_max_output_tokens: number | null;
|
|
1624
|
+
/**
|
|
1625
|
+
* Model for reading a conversation for facts — the reading after a conversation goes quiet, and `POST /v1/agent/sessions/{id}/extract`. Unset uses the agent's own. Never compaction's: the two are separate calls.
|
|
1626
|
+
*/
|
|
1627
|
+
fact_model: string | null;
|
|
1628
|
+
/**
|
|
1629
|
+
* Thinking level for the facts reading. Unset sends none, so the model's own default applies.
|
|
1630
|
+
*/
|
|
1631
|
+
fact_thinking_level: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
1495
1632
|
/**
|
|
1496
1633
|
* Whether this agent remembers facts about the people it talks to. **On by default**, unlike most switches here.
|
|
1497
1634
|
*
|
|
1498
|
-
* Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and
|
|
1635
|
+
* Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and `POST /v1/agent/sessions/{id}/extract` is refused. Facts already stored stay, and other agents still recall the ones they share. Turning it back on reads only what is said from then on.
|
|
1499
1636
|
*/
|
|
1500
1637
|
facts_enabled: boolean;
|
|
1501
1638
|
/**
|
|
@@ -1514,6 +1651,10 @@ export type AgentSummary = {
|
|
|
1514
1651
|
* The agent is not greeted twice: a conversation continued within a few minutes gets no fresh opening line, and `ready.greeting` says which before a frame arrives.
|
|
1515
1652
|
*/
|
|
1516
1653
|
first_message: string | null;
|
|
1654
|
+
/**
|
|
1655
|
+
* Whether a written opening line (`first_message_generated` on) is shown the topics the agent remembers of the person — their titles, where each stands and when it was last talked about — so it can open with one ("How is Inolab Trials going?"). **On by default.** It is never shown their stories, and cannot search them: the opening is one model call. Off, it is shown the person's facts only. Nothing with `memories_enabled` off, and nothing for a scripted line.
|
|
1656
|
+
*/
|
|
1657
|
+
first_message_memories: boolean;
|
|
1517
1658
|
/**
|
|
1518
1659
|
* Whether `first_message` is a direction for the model rather than the words themselves.
|
|
1519
1660
|
*
|
|
@@ -1558,6 +1699,36 @@ export type AgentSummary = {
|
|
|
1558
1699
|
* Cap on reply length. Unset means the model's own limit.
|
|
1559
1700
|
*/
|
|
1560
1701
|
max_output_tokens: number | null;
|
|
1702
|
+
/**
|
|
1703
|
+
* Whether this agent keeps **memories** of the people it talks to — one per topic of their life, rewritten whenever a conversation comes back to it. **On by default**, as `facts_enabled`.
|
|
1704
|
+
*
|
|
1705
|
+
* Once a conversation has been quiet for the platform's `agents.memory.idle_minutes`, it is read for the topics worth keeping, after its facts, in a model call of its own charged to the key; a conversation in which the person said little is read for nothing and costs nothing. Off, its conversations are never read for memories. Memories already kept stay.
|
|
1706
|
+
*/
|
|
1707
|
+
memories_enabled: boolean;
|
|
1708
|
+
/**
|
|
1709
|
+
* Whose memories this agent sees and adds to. `person` (the default, and what unset means): every agent of yours that shares, so the topic one agent started another continues. `agent`: its own only. A memory keeps the scope it was made under.
|
|
1710
|
+
*/
|
|
1711
|
+
memories_scope: 'person' | 'agent' | null;
|
|
1712
|
+
/**
|
|
1713
|
+
* The categories a memory may take, in your words: at most 12 of 40 characters each; the last is where a memory that fits none goes. Unset is the platform's `agents.memory.memories.default_categories`.
|
|
1714
|
+
*/
|
|
1715
|
+
memory_categories: Array<string> | null;
|
|
1716
|
+
/**
|
|
1717
|
+
* What is worth keeping as a memory. Unset uses the platform's built-in instruction, which leaves out health, beliefs and the like unless the person asked. The platform's own rules — no instructions, no claimed standing, no secrets — follow it whatever it says.
|
|
1718
|
+
*/
|
|
1719
|
+
memory_instruction: string | null;
|
|
1720
|
+
/**
|
|
1721
|
+
* Length cap on a memory reading's answer, in tokens — the model's thinking included. Unset sends none.
|
|
1722
|
+
*/
|
|
1723
|
+
memory_max_output_tokens: number | null;
|
|
1724
|
+
/**
|
|
1725
|
+
* Model for reading a conversation for memories. Unset uses the agent's own. Never `fact_model` or `compact_model`: each is its own call.
|
|
1726
|
+
*/
|
|
1727
|
+
memory_model: string | null;
|
|
1728
|
+
/**
|
|
1729
|
+
* Thinking level for the memory reading. Unset sends none, so the model's own default applies.
|
|
1730
|
+
*/
|
|
1731
|
+
memory_thinking_level: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
1561
1732
|
/**
|
|
1562
1733
|
* Gemini model id.
|
|
1563
1734
|
*/
|
|
@@ -1708,11 +1879,11 @@ export type AgentInfo = {
|
|
|
1708
1879
|
*/
|
|
1709
1880
|
compact_instruction: string | null;
|
|
1710
1881
|
/**
|
|
1711
|
-
* Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page
|
|
1882
|
+
* Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page.
|
|
1712
1883
|
*/
|
|
1713
1884
|
compact_max_output_tokens: number | null;
|
|
1714
1885
|
/**
|
|
1715
|
-
* Model for the summarising call. Unset uses the agent's own.
|
|
1886
|
+
* Model for the summarising call. Unset uses the agent's own. A compaction only summarises: facts are a call of their own (`fact_model`).
|
|
1716
1887
|
*/
|
|
1717
1888
|
compact_model: string | null;
|
|
1718
1889
|
/**
|
|
@@ -1739,18 +1910,26 @@ export type AgentInfo = {
|
|
|
1739
1910
|
* The setting the conversation takes place in.
|
|
1740
1911
|
*/
|
|
1741
1912
|
environment: string | null;
|
|
1742
|
-
/**
|
|
1743
|
-
* Whether a compaction also extracts durable facts about the user, in the same model call. A caller can always override this per request; this is what the automatic path uses.
|
|
1744
|
-
*/
|
|
1745
|
-
extract_facts_on_compact: boolean;
|
|
1746
1913
|
/**
|
|
1747
1914
|
* What counts as worth remembering. Unset falls back to the organisation's default, then to a built-in instruction.
|
|
1748
1915
|
*/
|
|
1749
1916
|
fact_instruction: string | null;
|
|
1917
|
+
/**
|
|
1918
|
+
* Length cap on a facts reading's answer, in tokens — the model's thinking included, which shares the budget. Unset sends none: the answer is a short list by its shape.
|
|
1919
|
+
*/
|
|
1920
|
+
fact_max_output_tokens: number | null;
|
|
1921
|
+
/**
|
|
1922
|
+
* Model for reading a conversation for facts — the reading after a conversation goes quiet, and `POST /v1/agent/sessions/{id}/extract`. Unset uses the agent's own. Never compaction's: the two are separate calls.
|
|
1923
|
+
*/
|
|
1924
|
+
fact_model: string | null;
|
|
1925
|
+
/**
|
|
1926
|
+
* Thinking level for the facts reading. Unset sends none, so the model's own default applies.
|
|
1927
|
+
*/
|
|
1928
|
+
fact_thinking_level: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
1750
1929
|
/**
|
|
1751
1930
|
* Whether this agent remembers facts about the people it talks to. **On by default**, unlike most switches here.
|
|
1752
1931
|
*
|
|
1753
|
-
* Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and
|
|
1932
|
+
* Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and `POST /v1/agent/sessions/{id}/extract` is refused. Facts already stored stay, and other agents still recall the ones they share. Turning it back on reads only what is said from then on.
|
|
1754
1933
|
*/
|
|
1755
1934
|
facts_enabled: boolean;
|
|
1756
1935
|
/**
|
|
@@ -1769,6 +1948,10 @@ export type AgentInfo = {
|
|
|
1769
1948
|
* The agent is not greeted twice: a conversation continued within a few minutes gets no fresh opening line, and `ready.greeting` says which before a frame arrives.
|
|
1770
1949
|
*/
|
|
1771
1950
|
first_message: string | null;
|
|
1951
|
+
/**
|
|
1952
|
+
* Whether a written opening line (`first_message_generated` on) is shown the topics the agent remembers of the person — their titles, where each stands and when it was last talked about — so it can open with one ("How is Inolab Trials going?"). **On by default.** It is never shown their stories, and cannot search them: the opening is one model call. Off, it is shown the person's facts only. Nothing with `memories_enabled` off, and nothing for a scripted line.
|
|
1953
|
+
*/
|
|
1954
|
+
first_message_memories: boolean;
|
|
1772
1955
|
/**
|
|
1773
1956
|
* Whether `first_message` is a direction for the model rather than the words themselves.
|
|
1774
1957
|
*
|
|
@@ -1813,6 +1996,36 @@ export type AgentInfo = {
|
|
|
1813
1996
|
* Cap on reply length. Unset means the model's own limit.
|
|
1814
1997
|
*/
|
|
1815
1998
|
max_output_tokens: number | null;
|
|
1999
|
+
/**
|
|
2000
|
+
* Whether this agent keeps **memories** of the people it talks to — one per topic of their life, rewritten whenever a conversation comes back to it. **On by default**, as `facts_enabled`.
|
|
2001
|
+
*
|
|
2002
|
+
* Once a conversation has been quiet for the platform's `agents.memory.idle_minutes`, it is read for the topics worth keeping, after its facts, in a model call of its own charged to the key; a conversation in which the person said little is read for nothing and costs nothing. Off, its conversations are never read for memories. Memories already kept stay.
|
|
2003
|
+
*/
|
|
2004
|
+
memories_enabled: boolean;
|
|
2005
|
+
/**
|
|
2006
|
+
* Whose memories this agent sees and adds to. `person` (the default, and what unset means): every agent of yours that shares, so the topic one agent started another continues. `agent`: its own only. A memory keeps the scope it was made under.
|
|
2007
|
+
*/
|
|
2008
|
+
memories_scope: 'person' | 'agent' | null;
|
|
2009
|
+
/**
|
|
2010
|
+
* The categories a memory may take, in your words: at most 12 of 40 characters each; the last is where a memory that fits none goes. Unset is the platform's `agents.memory.memories.default_categories`.
|
|
2011
|
+
*/
|
|
2012
|
+
memory_categories: Array<string> | null;
|
|
2013
|
+
/**
|
|
2014
|
+
* What is worth keeping as a memory. Unset uses the platform's built-in instruction, which leaves out health, beliefs and the like unless the person asked. The platform's own rules — no instructions, no claimed standing, no secrets — follow it whatever it says.
|
|
2015
|
+
*/
|
|
2016
|
+
memory_instruction: string | null;
|
|
2017
|
+
/**
|
|
2018
|
+
* Length cap on a memory reading's answer, in tokens — the model's thinking included. Unset sends none.
|
|
2019
|
+
*/
|
|
2020
|
+
memory_max_output_tokens: number | null;
|
|
2021
|
+
/**
|
|
2022
|
+
* Model for reading a conversation for memories. Unset uses the agent's own. Never `fact_model` or `compact_model`: each is its own call.
|
|
2023
|
+
*/
|
|
2024
|
+
memory_model: string | null;
|
|
2025
|
+
/**
|
|
2026
|
+
* Thinking level for the memory reading. Unset sends none, so the model's own default applies.
|
|
2027
|
+
*/
|
|
2028
|
+
memory_thinking_level: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
1816
2029
|
/**
|
|
1817
2030
|
* Gemini model id.
|
|
1818
2031
|
*/
|
|
@@ -1905,11 +2118,11 @@ export type AgentCreateRequest = {
|
|
|
1905
2118
|
*/
|
|
1906
2119
|
compact_instruction?: string | null;
|
|
1907
2120
|
/**
|
|
1908
|
-
* Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page
|
|
2121
|
+
* Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page.
|
|
1909
2122
|
*/
|
|
1910
2123
|
compact_max_output_tokens?: number | null;
|
|
1911
2124
|
/**
|
|
1912
|
-
* Model for the summarising call. Unset uses the agent's own.
|
|
2125
|
+
* Model for the summarising call. Unset uses the agent's own. A compaction only summarises: facts are a call of their own (`fact_model`).
|
|
1913
2126
|
*/
|
|
1914
2127
|
compact_model?: string | null;
|
|
1915
2128
|
/**
|
|
@@ -1936,18 +2149,26 @@ export type AgentCreateRequest = {
|
|
|
1936
2149
|
* The setting the conversation takes place in.
|
|
1937
2150
|
*/
|
|
1938
2151
|
environment?: string | null;
|
|
1939
|
-
/**
|
|
1940
|
-
* Whether a compaction also extracts durable facts about the user, in the same model call. A caller can always override this per request; this is what the automatic path uses.
|
|
1941
|
-
*/
|
|
1942
|
-
extract_facts_on_compact?: boolean | null;
|
|
1943
2152
|
/**
|
|
1944
2153
|
* What counts as worth remembering. Unset falls back to the organisation's default, then to a built-in instruction.
|
|
1945
2154
|
*/
|
|
1946
2155
|
fact_instruction?: string | null;
|
|
2156
|
+
/**
|
|
2157
|
+
* Length cap on a facts reading's answer, in tokens — the model's thinking included, which shares the budget. Unset sends none: the answer is a short list by its shape.
|
|
2158
|
+
*/
|
|
2159
|
+
fact_max_output_tokens?: number | null;
|
|
2160
|
+
/**
|
|
2161
|
+
* Model for reading a conversation for facts — the reading after a conversation goes quiet, and `POST /v1/agent/sessions/{id}/extract`. Unset uses the agent's own. Never compaction's: the two are separate calls.
|
|
2162
|
+
*/
|
|
2163
|
+
fact_model?: string | null;
|
|
2164
|
+
/**
|
|
2165
|
+
* Thinking level for the facts reading. Unset sends none, so the model's own default applies.
|
|
2166
|
+
*/
|
|
2167
|
+
fact_thinking_level?: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
1947
2168
|
/**
|
|
1948
2169
|
* Whether this agent remembers facts about the people it talks to. **On by default**, unlike most switches here.
|
|
1949
2170
|
*
|
|
1950
|
-
* Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and
|
|
2171
|
+
* Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and `POST /v1/agent/sessions/{id}/extract` is refused. Facts already stored stay, and other agents still recall the ones they share. Turning it back on reads only what is said from then on.
|
|
1951
2172
|
*/
|
|
1952
2173
|
facts_enabled?: boolean | null;
|
|
1953
2174
|
/**
|
|
@@ -1966,6 +2187,10 @@ export type AgentCreateRequest = {
|
|
|
1966
2187
|
* The agent is not greeted twice: a conversation continued within a few minutes gets no fresh opening line, and `ready.greeting` says which before a frame arrives.
|
|
1967
2188
|
*/
|
|
1968
2189
|
first_message?: string | null;
|
|
2190
|
+
/**
|
|
2191
|
+
* Whether a written opening line (`first_message_generated` on) is shown the topics the agent remembers of the person — their titles, where each stands and when it was last talked about — so it can open with one ("How is Inolab Trials going?"). **On by default.** It is never shown their stories, and cannot search them: the opening is one model call. Off, it is shown the person's facts only. Nothing with `memories_enabled` off, and nothing for a scripted line.
|
|
2192
|
+
*/
|
|
2193
|
+
first_message_memories?: boolean | null;
|
|
1969
2194
|
/**
|
|
1970
2195
|
* Whether `first_message` is a direction for the model rather than the words themselves.
|
|
1971
2196
|
*
|
|
@@ -2010,6 +2235,36 @@ export type AgentCreateRequest = {
|
|
|
2010
2235
|
* Cap on reply length. Unset means the model's own limit.
|
|
2011
2236
|
*/
|
|
2012
2237
|
max_output_tokens?: number | null;
|
|
2238
|
+
/**
|
|
2239
|
+
* Whether this agent keeps **memories** of the people it talks to — one per topic of their life, rewritten whenever a conversation comes back to it. **On by default**, as `facts_enabled`.
|
|
2240
|
+
*
|
|
2241
|
+
* Once a conversation has been quiet for the platform's `agents.memory.idle_minutes`, it is read for the topics worth keeping, after its facts, in a model call of its own charged to the key; a conversation in which the person said little is read for nothing and costs nothing. Off, its conversations are never read for memories. Memories already kept stay.
|
|
2242
|
+
*/
|
|
2243
|
+
memories_enabled?: boolean | null;
|
|
2244
|
+
/**
|
|
2245
|
+
* Whose memories this agent sees and adds to. `person` (the default, and what unset means): every agent of yours that shares, so the topic one agent started another continues. `agent`: its own only. A memory keeps the scope it was made under.
|
|
2246
|
+
*/
|
|
2247
|
+
memories_scope?: 'person' | 'agent' | null;
|
|
2248
|
+
/**
|
|
2249
|
+
* The categories a memory may take, in your words: at most 12 of 40 characters each; the last is where a memory that fits none goes. Unset is the platform's `agents.memory.memories.default_categories`.
|
|
2250
|
+
*/
|
|
2251
|
+
memory_categories?: Array<string> | null;
|
|
2252
|
+
/**
|
|
2253
|
+
* What is worth keeping as a memory. Unset uses the platform's built-in instruction, which leaves out health, beliefs and the like unless the person asked. The platform's own rules — no instructions, no claimed standing, no secrets — follow it whatever it says.
|
|
2254
|
+
*/
|
|
2255
|
+
memory_instruction?: string | null;
|
|
2256
|
+
/**
|
|
2257
|
+
* Length cap on a memory reading's answer, in tokens — the model's thinking included. Unset sends none.
|
|
2258
|
+
*/
|
|
2259
|
+
memory_max_output_tokens?: number | null;
|
|
2260
|
+
/**
|
|
2261
|
+
* Model for reading a conversation for memories. Unset uses the agent's own. Never `fact_model` or `compact_model`: each is its own call.
|
|
2262
|
+
*/
|
|
2263
|
+
memory_model?: string | null;
|
|
2264
|
+
/**
|
|
2265
|
+
* Thinking level for the memory reading. Unset sends none, so the model's own default applies.
|
|
2266
|
+
*/
|
|
2267
|
+
memory_thinking_level?: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
2013
2268
|
/**
|
|
2014
2269
|
* Gemini model id. Defaults to the platform's `agents.model` (`GET /v1/platform/limits`).
|
|
2015
2270
|
*/
|
|
@@ -2241,11 +2496,11 @@ export type AgentUpdate = {
|
|
|
2241
2496
|
*/
|
|
2242
2497
|
compact_instruction?: string | null;
|
|
2243
2498
|
/**
|
|
2244
|
-
* Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page
|
|
2499
|
+
* Length cap on the summary, in tokens — the model's thinking included, which shares the budget. Unset uses the platform's `agents.memory.compaction.max_output_tokens` on the Limits page.
|
|
2245
2500
|
*/
|
|
2246
2501
|
compact_max_output_tokens?: number | null;
|
|
2247
2502
|
/**
|
|
2248
|
-
* Model for the summarising call. Unset uses the agent's own.
|
|
2503
|
+
* Model for the summarising call. Unset uses the agent's own. A compaction only summarises: facts are a call of their own (`fact_model`).
|
|
2249
2504
|
*/
|
|
2250
2505
|
compact_model?: string | null;
|
|
2251
2506
|
/**
|
|
@@ -2272,18 +2527,26 @@ export type AgentUpdate = {
|
|
|
2272
2527
|
* The setting the conversation takes place in.
|
|
2273
2528
|
*/
|
|
2274
2529
|
environment?: string | null;
|
|
2275
|
-
/**
|
|
2276
|
-
* Whether a compaction also extracts durable facts about the user, in the same model call. A caller can always override this per request; this is what the automatic path uses.
|
|
2277
|
-
*/
|
|
2278
|
-
extract_facts_on_compact?: boolean | null;
|
|
2279
2530
|
/**
|
|
2280
2531
|
* What counts as worth remembering. Unset falls back to the organisation's default, then to a built-in instruction.
|
|
2281
2532
|
*/
|
|
2282
2533
|
fact_instruction?: string | null;
|
|
2534
|
+
/**
|
|
2535
|
+
* Length cap on a facts reading's answer, in tokens — the model's thinking included, which shares the budget. Unset sends none: the answer is a short list by its shape.
|
|
2536
|
+
*/
|
|
2537
|
+
fact_max_output_tokens?: number | null;
|
|
2538
|
+
/**
|
|
2539
|
+
* Model for reading a conversation for facts — the reading after a conversation goes quiet, and `POST /v1/agent/sessions/{id}/extract`. Unset uses the agent's own. Never compaction's: the two are separate calls.
|
|
2540
|
+
*/
|
|
2541
|
+
fact_model?: string | null;
|
|
2542
|
+
/**
|
|
2543
|
+
* Thinking level for the facts reading. Unset sends none, so the model's own default applies.
|
|
2544
|
+
*/
|
|
2545
|
+
fact_thinking_level?: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
2283
2546
|
/**
|
|
2284
2547
|
* Whether this agent remembers facts about the people it talks to. **On by default**, unlike most switches here.
|
|
2285
2548
|
*
|
|
2286
|
-
* Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and
|
|
2549
|
+
* Off, its conversations are never read for facts and its turns recall none — nothing is charged for either — and `POST /v1/agent/sessions/{id}/extract` is refused. Facts already stored stay, and other agents still recall the ones they share. Turning it back on reads only what is said from then on.
|
|
2287
2550
|
*/
|
|
2288
2551
|
facts_enabled?: boolean | null;
|
|
2289
2552
|
/**
|
|
@@ -2302,6 +2565,10 @@ export type AgentUpdate = {
|
|
|
2302
2565
|
* The agent is not greeted twice: a conversation continued within a few minutes gets no fresh opening line, and `ready.greeting` says which before a frame arrives.
|
|
2303
2566
|
*/
|
|
2304
2567
|
first_message?: string | null;
|
|
2568
|
+
/**
|
|
2569
|
+
* Whether a written opening line (`first_message_generated` on) is shown the topics the agent remembers of the person — their titles, where each stands and when it was last talked about — so it can open with one ("How is Inolab Trials going?"). **On by default.** It is never shown their stories, and cannot search them: the opening is one model call. Off, it is shown the person's facts only. Nothing with `memories_enabled` off, and nothing for a scripted line.
|
|
2570
|
+
*/
|
|
2571
|
+
first_message_memories?: boolean | null;
|
|
2305
2572
|
/**
|
|
2306
2573
|
* Whether `first_message` is a direction for the model rather than the words themselves.
|
|
2307
2574
|
*
|
|
@@ -2346,6 +2613,36 @@ export type AgentUpdate = {
|
|
|
2346
2613
|
* Cap on reply length. Unset means the model's own limit.
|
|
2347
2614
|
*/
|
|
2348
2615
|
max_output_tokens?: number | null;
|
|
2616
|
+
/**
|
|
2617
|
+
* Whether this agent keeps **memories** of the people it talks to — one per topic of their life, rewritten whenever a conversation comes back to it. **On by default**, as `facts_enabled`.
|
|
2618
|
+
*
|
|
2619
|
+
* Once a conversation has been quiet for the platform's `agents.memory.idle_minutes`, it is read for the topics worth keeping, after its facts, in a model call of its own charged to the key; a conversation in which the person said little is read for nothing and costs nothing. Off, its conversations are never read for memories. Memories already kept stay.
|
|
2620
|
+
*/
|
|
2621
|
+
memories_enabled?: boolean | null;
|
|
2622
|
+
/**
|
|
2623
|
+
* Whose memories this agent sees and adds to. `person` (the default, and what unset means): every agent of yours that shares, so the topic one agent started another continues. `agent`: its own only. A memory keeps the scope it was made under.
|
|
2624
|
+
*/
|
|
2625
|
+
memories_scope?: 'person' | 'agent' | null;
|
|
2626
|
+
/**
|
|
2627
|
+
* The categories a memory may take, in your words: at most 12 of 40 characters each; the last is where a memory that fits none goes. Unset is the platform's `agents.memory.memories.default_categories`.
|
|
2628
|
+
*/
|
|
2629
|
+
memory_categories?: Array<string> | null;
|
|
2630
|
+
/**
|
|
2631
|
+
* What is worth keeping as a memory. Unset uses the platform's built-in instruction, which leaves out health, beliefs and the like unless the person asked. The platform's own rules — no instructions, no claimed standing, no secrets — follow it whatever it says.
|
|
2632
|
+
*/
|
|
2633
|
+
memory_instruction?: string | null;
|
|
2634
|
+
/**
|
|
2635
|
+
* Length cap on a memory reading's answer, in tokens — the model's thinking included. Unset sends none.
|
|
2636
|
+
*/
|
|
2637
|
+
memory_max_output_tokens?: number | null;
|
|
2638
|
+
/**
|
|
2639
|
+
* Model for reading a conversation for memories. Unset uses the agent's own. Never `fact_model` or `compact_model`: each is its own call.
|
|
2640
|
+
*/
|
|
2641
|
+
memory_model?: string | null;
|
|
2642
|
+
/**
|
|
2643
|
+
* Thinking level for the memory reading. Unset sends none, so the model's own default applies.
|
|
2644
|
+
*/
|
|
2645
|
+
memory_thinking_level?: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
2349
2646
|
/**
|
|
2350
2647
|
* Gemini model id. `null` or empty returns it to the default, the platform's `agents.model` (`GET /v1/platform/limits`).
|
|
2351
2648
|
*/
|
|
@@ -5217,11 +5514,7 @@ export type ExtractSessionFactsErrors = {
|
|
|
5217
5514
|
*/
|
|
5218
5515
|
404: ErrorResponse;
|
|
5219
5516
|
/**
|
|
5220
|
-
*
|
|
5221
|
-
*/
|
|
5222
|
-
409: ErrorResponse;
|
|
5223
|
-
/**
|
|
5224
|
-
* Nothing new to compact since the last compaction, or the model's summary was empty or no shorter than what it would replace; nothing was charged
|
|
5517
|
+
* Nothing has been said since the conversation was last read, or the agent keeps no facts (`facts_enabled` off); nothing was charged
|
|
5225
5518
|
*/
|
|
5226
5519
|
422: ErrorResponse;
|
|
5227
5520
|
/**
|
|
@@ -5229,7 +5522,7 @@ export type ExtractSessionFactsErrors = {
|
|
|
5229
5522
|
*/
|
|
5230
5523
|
429: ErrorResponse;
|
|
5231
5524
|
/**
|
|
5232
|
-
* The model provider failed or timed out
|
|
5525
|
+
* The model provider failed or timed out, or its answer could not be read
|
|
5233
5526
|
*/
|
|
5234
5527
|
502: ErrorResponse;
|
|
5235
5528
|
/**
|
|
@@ -5240,11 +5533,61 @@ export type ExtractSessionFactsErrors = {
|
|
|
5240
5533
|
export type ExtractSessionFactsError = ExtractSessionFactsErrors[keyof ExtractSessionFactsErrors];
|
|
5241
5534
|
export type ExtractSessionFactsResponses = {
|
|
5242
5535
|
/**
|
|
5243
|
-
*
|
|
5536
|
+
* What the reading found and stored
|
|
5244
5537
|
*/
|
|
5245
|
-
200:
|
|
5538
|
+
200: FactsReadInfo;
|
|
5246
5539
|
};
|
|
5247
5540
|
export type ExtractSessionFactsResponse = ExtractSessionFactsResponses[keyof ExtractSessionFactsResponses];
|
|
5541
|
+
export type WriteSessionMemoriesData = {
|
|
5542
|
+
body?: never;
|
|
5543
|
+
path: {
|
|
5544
|
+
session_id: string;
|
|
5545
|
+
};
|
|
5546
|
+
query?: never;
|
|
5547
|
+
url: '/v1/agent/sessions/{session_id}/memories';
|
|
5548
|
+
};
|
|
5549
|
+
export type WriteSessionMemoriesErrors = {
|
|
5550
|
+
/**
|
|
5551
|
+
* Missing or invalid credentials
|
|
5552
|
+
*/
|
|
5553
|
+
401: ErrorResponse;
|
|
5554
|
+
/**
|
|
5555
|
+
* The key has spent its credit — mint another; nothing was charged
|
|
5556
|
+
*/
|
|
5557
|
+
402: ErrorResponse;
|
|
5558
|
+
/**
|
|
5559
|
+
* The key is valid but its scopes do not cover this capability
|
|
5560
|
+
*/
|
|
5561
|
+
403: ErrorResponse;
|
|
5562
|
+
/**
|
|
5563
|
+
* Unknown session id
|
|
5564
|
+
*/
|
|
5565
|
+
404: ErrorResponse;
|
|
5566
|
+
/**
|
|
5567
|
+
* Nothing has been said since the conversation was last read for memories, or the agent keeps none (`memories_enabled` off); nothing was charged
|
|
5568
|
+
*/
|
|
5569
|
+
422: ErrorResponse;
|
|
5570
|
+
/**
|
|
5571
|
+
* Rate limit exceeded
|
|
5572
|
+
*/
|
|
5573
|
+
429: ErrorResponse;
|
|
5574
|
+
/**
|
|
5575
|
+
* The model provider failed or timed out, or its answer could not be read
|
|
5576
|
+
*/
|
|
5577
|
+
502: ErrorResponse;
|
|
5578
|
+
/**
|
|
5579
|
+
* The model provider is not configured
|
|
5580
|
+
*/
|
|
5581
|
+
503: ErrorResponse;
|
|
5582
|
+
};
|
|
5583
|
+
export type WriteSessionMemoriesError = WriteSessionMemoriesErrors[keyof WriteSessionMemoriesErrors];
|
|
5584
|
+
export type WriteSessionMemoriesResponses = {
|
|
5585
|
+
/**
|
|
5586
|
+
* What the reading wrote
|
|
5587
|
+
*/
|
|
5588
|
+
200: MemoriesWrittenInfo;
|
|
5589
|
+
};
|
|
5590
|
+
export type WriteSessionMemoriesResponse = WriteSessionMemoriesResponses[keyof WriteSessionMemoriesResponses];
|
|
5248
5591
|
export type DeleteAllFactsData = {
|
|
5249
5592
|
body?: never;
|
|
5250
5593
|
path?: never;
|
|
@@ -5455,6 +5798,176 @@ export type UpdateFactResponses = {
|
|
|
5455
5798
|
200: FactInfo;
|
|
5456
5799
|
};
|
|
5457
5800
|
export type UpdateFactResponse = UpdateFactResponses[keyof UpdateFactResponses];
|
|
5801
|
+
export type DeleteAllMemoriesData = {
|
|
5802
|
+
body?: never;
|
|
5803
|
+
path?: never;
|
|
5804
|
+
query?: {
|
|
5805
|
+
/**
|
|
5806
|
+
* Optional, and only ever the key's own end user — their `eu_...` id or your own id for them. Anybody else is a 403.
|
|
5807
|
+
*/
|
|
5808
|
+
end_user_id?: string;
|
|
5809
|
+
};
|
|
5810
|
+
url: '/v1/agent/memories';
|
|
5811
|
+
};
|
|
5812
|
+
export type DeleteAllMemoriesErrors = {
|
|
5813
|
+
/**
|
|
5814
|
+
* Missing or invalid credentials
|
|
5815
|
+
*/
|
|
5816
|
+
401: ErrorResponse;
|
|
5817
|
+
/**
|
|
5818
|
+
* The key is valid but its scopes do not cover this capability
|
|
5819
|
+
*/
|
|
5820
|
+
403: ErrorResponse;
|
|
5821
|
+
/**
|
|
5822
|
+
* The request failed validation
|
|
5823
|
+
*/
|
|
5824
|
+
422: ErrorResponse;
|
|
5825
|
+
/**
|
|
5826
|
+
* Rate limit exceeded
|
|
5827
|
+
*/
|
|
5828
|
+
429: ErrorResponse;
|
|
5829
|
+
};
|
|
5830
|
+
export type DeleteAllMemoriesError = DeleteAllMemoriesErrors[keyof DeleteAllMemoriesErrors];
|
|
5831
|
+
export type DeleteAllMemoriesResponses = {
|
|
5832
|
+
/**
|
|
5833
|
+
* How many memories were deleted
|
|
5834
|
+
*/
|
|
5835
|
+
200: MemoriesDeleted;
|
|
5836
|
+
};
|
|
5837
|
+
export type DeleteAllMemoriesResponse = DeleteAllMemoriesResponses[keyof DeleteAllMemoriesResponses];
|
|
5838
|
+
export type ListMemoriesData = {
|
|
5839
|
+
body?: never;
|
|
5840
|
+
path?: never;
|
|
5841
|
+
query?: {
|
|
5842
|
+
/**
|
|
5843
|
+
* Optional, and only ever the key's own end user — their `eu_...` id or your own id for them. Anybody else is a 403.
|
|
5844
|
+
*/
|
|
5845
|
+
end_user_id?: string;
|
|
5846
|
+
/**
|
|
5847
|
+
* Only the memories this agent's conversations wrote.
|
|
5848
|
+
*/
|
|
5849
|
+
agent_id?: string;
|
|
5850
|
+
/**
|
|
5851
|
+
* Only the memories of this category.
|
|
5852
|
+
*/
|
|
5853
|
+
category?: string;
|
|
5854
|
+
/**
|
|
5855
|
+
* Only the memories this conversation fed.
|
|
5856
|
+
*/
|
|
5857
|
+
session_id?: string;
|
|
5858
|
+
/**
|
|
5859
|
+
* How many to answer, 1 to 100.
|
|
5860
|
+
*/
|
|
5861
|
+
limit?: number;
|
|
5862
|
+
/**
|
|
5863
|
+
* The `next_cursor` of the page before.
|
|
5864
|
+
*/
|
|
5865
|
+
cursor?: string;
|
|
5866
|
+
};
|
|
5867
|
+
url: '/v1/agent/memories';
|
|
5868
|
+
};
|
|
5869
|
+
export type ListMemoriesErrors = {
|
|
5870
|
+
/**
|
|
5871
|
+
* Missing or invalid credentials
|
|
5872
|
+
*/
|
|
5873
|
+
401: ErrorResponse;
|
|
5874
|
+
/**
|
|
5875
|
+
* The key is valid but its scopes do not cover this capability
|
|
5876
|
+
*/
|
|
5877
|
+
403: ErrorResponse;
|
|
5878
|
+
/**
|
|
5879
|
+
* The request failed validation
|
|
5880
|
+
*/
|
|
5881
|
+
422: ErrorResponse;
|
|
5882
|
+
/**
|
|
5883
|
+
* Rate limit exceeded
|
|
5884
|
+
*/
|
|
5885
|
+
429: ErrorResponse;
|
|
5886
|
+
};
|
|
5887
|
+
export type ListMemoriesError = ListMemoriesErrors[keyof ListMemoriesErrors];
|
|
5888
|
+
export type ListMemoriesResponses = {
|
|
5889
|
+
/**
|
|
5890
|
+
* One page of memories, last talked about first
|
|
5891
|
+
*/
|
|
5892
|
+
200: MemoryPage;
|
|
5893
|
+
};
|
|
5894
|
+
export type ListMemoriesResponse = ListMemoriesResponses[keyof ListMemoriesResponses];
|
|
5895
|
+
export type DeleteMemoryData = {
|
|
5896
|
+
body?: never;
|
|
5897
|
+
path: {
|
|
5898
|
+
memory_id: string;
|
|
5899
|
+
};
|
|
5900
|
+
query?: never;
|
|
5901
|
+
url: '/v1/agent/memories/{memory_id}';
|
|
5902
|
+
};
|
|
5903
|
+
export type DeleteMemoryErrors = {
|
|
5904
|
+
/**
|
|
5905
|
+
* Missing or invalid credentials
|
|
5906
|
+
*/
|
|
5907
|
+
401: ErrorResponse;
|
|
5908
|
+
/**
|
|
5909
|
+
* The key is valid but its scopes do not cover this capability
|
|
5910
|
+
*/
|
|
5911
|
+
403: ErrorResponse;
|
|
5912
|
+
/**
|
|
5913
|
+
* Unknown memory id
|
|
5914
|
+
*/
|
|
5915
|
+
404: ErrorResponse;
|
|
5916
|
+
/**
|
|
5917
|
+
* The request failed validation
|
|
5918
|
+
*/
|
|
5919
|
+
422: ErrorResponse;
|
|
5920
|
+
/**
|
|
5921
|
+
* Rate limit exceeded
|
|
5922
|
+
*/
|
|
5923
|
+
429: ErrorResponse;
|
|
5924
|
+
};
|
|
5925
|
+
export type DeleteMemoryError = DeleteMemoryErrors[keyof DeleteMemoryErrors];
|
|
5926
|
+
export type DeleteMemoryResponses = {
|
|
5927
|
+
/**
|
|
5928
|
+
* The memory is gone
|
|
5929
|
+
*/
|
|
5930
|
+
204: void;
|
|
5931
|
+
};
|
|
5932
|
+
export type DeleteMemoryResponse = DeleteMemoryResponses[keyof DeleteMemoryResponses];
|
|
5933
|
+
export type GetMemoryData = {
|
|
5934
|
+
body?: never;
|
|
5935
|
+
path: {
|
|
5936
|
+
memory_id: string;
|
|
5937
|
+
};
|
|
5938
|
+
query?: never;
|
|
5939
|
+
url: '/v1/agent/memories/{memory_id}';
|
|
5940
|
+
};
|
|
5941
|
+
export type GetMemoryErrors = {
|
|
5942
|
+
/**
|
|
5943
|
+
* Missing or invalid credentials
|
|
5944
|
+
*/
|
|
5945
|
+
401: ErrorResponse;
|
|
5946
|
+
/**
|
|
5947
|
+
* The key is valid but its scopes do not cover this capability
|
|
5948
|
+
*/
|
|
5949
|
+
403: ErrorResponse;
|
|
5950
|
+
/**
|
|
5951
|
+
* Unknown memory id
|
|
5952
|
+
*/
|
|
5953
|
+
404: ErrorResponse;
|
|
5954
|
+
/**
|
|
5955
|
+
* The request failed validation
|
|
5956
|
+
*/
|
|
5957
|
+
422: ErrorResponse;
|
|
5958
|
+
/**
|
|
5959
|
+
* Rate limit exceeded
|
|
5960
|
+
*/
|
|
5961
|
+
429: ErrorResponse;
|
|
5962
|
+
};
|
|
5963
|
+
export type GetMemoryError = GetMemoryErrors[keyof GetMemoryErrors];
|
|
5964
|
+
export type GetMemoryResponses = {
|
|
5965
|
+
/**
|
|
5966
|
+
* The memory
|
|
5967
|
+
*/
|
|
5968
|
+
200: MemoryInfo;
|
|
5969
|
+
};
|
|
5970
|
+
export type GetMemoryResponse = GetMemoryResponses[keyof GetMemoryResponses];
|
|
5458
5971
|
export type ListRelationsData = {
|
|
5459
5972
|
body?: never;
|
|
5460
5973
|
path?: never;
|
|
@@ -6164,6 +6677,169 @@ export type UpdateEndUserFactResponses = {
|
|
|
6164
6677
|
200: FactInfo;
|
|
6165
6678
|
};
|
|
6166
6679
|
export type UpdateEndUserFactResponse = UpdateEndUserFactResponses[keyof UpdateEndUserFactResponses];
|
|
6680
|
+
export type DeleteAllEndUserMemoriesData = {
|
|
6681
|
+
body?: never;
|
|
6682
|
+
path: {
|
|
6683
|
+
end_user_id: string;
|
|
6684
|
+
};
|
|
6685
|
+
query?: never;
|
|
6686
|
+
url: '/v1/end-users/{end_user_id}/memories';
|
|
6687
|
+
};
|
|
6688
|
+
export type DeleteAllEndUserMemoriesErrors = {
|
|
6689
|
+
/**
|
|
6690
|
+
* Missing or invalid credentials
|
|
6691
|
+
*/
|
|
6692
|
+
401: ErrorResponse;
|
|
6693
|
+
/**
|
|
6694
|
+
* The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
|
|
6695
|
+
*/
|
|
6696
|
+
403: ErrorResponse;
|
|
6697
|
+
/**
|
|
6698
|
+
* Unknown end user id
|
|
6699
|
+
*/
|
|
6700
|
+
404: ErrorResponse;
|
|
6701
|
+
/**
|
|
6702
|
+
* Rate limit exceeded
|
|
6703
|
+
*/
|
|
6704
|
+
429: ErrorResponse;
|
|
6705
|
+
};
|
|
6706
|
+
export type DeleteAllEndUserMemoriesError = DeleteAllEndUserMemoriesErrors[keyof DeleteAllEndUserMemoriesErrors];
|
|
6707
|
+
export type DeleteAllEndUserMemoriesResponses = {
|
|
6708
|
+
/**
|
|
6709
|
+
* How many memories were deleted
|
|
6710
|
+
*/
|
|
6711
|
+
200: MemoriesDeleted;
|
|
6712
|
+
};
|
|
6713
|
+
export type DeleteAllEndUserMemoriesResponse = DeleteAllEndUserMemoriesResponses[keyof DeleteAllEndUserMemoriesResponses];
|
|
6714
|
+
export type ListEndUserMemoriesData = {
|
|
6715
|
+
body?: never;
|
|
6716
|
+
path: {
|
|
6717
|
+
end_user_id: string;
|
|
6718
|
+
};
|
|
6719
|
+
query?: {
|
|
6720
|
+
/**
|
|
6721
|
+
* Only the memories this agent's conversations wrote.
|
|
6722
|
+
*/
|
|
6723
|
+
agent_id?: string;
|
|
6724
|
+
/**
|
|
6725
|
+
* Only the memories of this category.
|
|
6726
|
+
*/
|
|
6727
|
+
category?: string;
|
|
6728
|
+
/**
|
|
6729
|
+
* Only the memories this conversation fed.
|
|
6730
|
+
*/
|
|
6731
|
+
session_id?: string;
|
|
6732
|
+
/**
|
|
6733
|
+
* How many to answer, 1 to 100.
|
|
6734
|
+
*/
|
|
6735
|
+
limit?: number;
|
|
6736
|
+
/**
|
|
6737
|
+
* The `next_cursor` of the page before.
|
|
6738
|
+
*/
|
|
6739
|
+
cursor?: string;
|
|
6740
|
+
};
|
|
6741
|
+
url: '/v1/end-users/{end_user_id}/memories';
|
|
6742
|
+
};
|
|
6743
|
+
export type ListEndUserMemoriesErrors = {
|
|
6744
|
+
/**
|
|
6745
|
+
* Missing or invalid credentials
|
|
6746
|
+
*/
|
|
6747
|
+
401: ErrorResponse;
|
|
6748
|
+
/**
|
|
6749
|
+
* The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
|
|
6750
|
+
*/
|
|
6751
|
+
403: ErrorResponse;
|
|
6752
|
+
/**
|
|
6753
|
+
* Unknown end user id
|
|
6754
|
+
*/
|
|
6755
|
+
404: ErrorResponse;
|
|
6756
|
+
/**
|
|
6757
|
+
* The request failed validation
|
|
6758
|
+
*/
|
|
6759
|
+
422: ErrorResponse;
|
|
6760
|
+
/**
|
|
6761
|
+
* Rate limit exceeded
|
|
6762
|
+
*/
|
|
6763
|
+
429: ErrorResponse;
|
|
6764
|
+
};
|
|
6765
|
+
export type ListEndUserMemoriesError = ListEndUserMemoriesErrors[keyof ListEndUserMemoriesErrors];
|
|
6766
|
+
export type ListEndUserMemoriesResponses = {
|
|
6767
|
+
/**
|
|
6768
|
+
* One page of memories, last talked about first
|
|
6769
|
+
*/
|
|
6770
|
+
200: MemoryPage;
|
|
6771
|
+
};
|
|
6772
|
+
export type ListEndUserMemoriesResponse = ListEndUserMemoriesResponses[keyof ListEndUserMemoriesResponses];
|
|
6773
|
+
export type DeleteEndUserMemoryData = {
|
|
6774
|
+
body?: never;
|
|
6775
|
+
path: {
|
|
6776
|
+
end_user_id: string;
|
|
6777
|
+
memory_id: string;
|
|
6778
|
+
};
|
|
6779
|
+
query?: never;
|
|
6780
|
+
url: '/v1/end-users/{end_user_id}/memories/{memory_id}';
|
|
6781
|
+
};
|
|
6782
|
+
export type DeleteEndUserMemoryErrors = {
|
|
6783
|
+
/**
|
|
6784
|
+
* Missing or invalid credentials
|
|
6785
|
+
*/
|
|
6786
|
+
401: ErrorResponse;
|
|
6787
|
+
/**
|
|
6788
|
+
* The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
|
|
6789
|
+
*/
|
|
6790
|
+
403: ErrorResponse;
|
|
6791
|
+
/**
|
|
6792
|
+
* Unknown end user id, or Unknown memory id
|
|
6793
|
+
*/
|
|
6794
|
+
404: ErrorResponse;
|
|
6795
|
+
/**
|
|
6796
|
+
* Rate limit exceeded
|
|
6797
|
+
*/
|
|
6798
|
+
429: ErrorResponse;
|
|
6799
|
+
};
|
|
6800
|
+
export type DeleteEndUserMemoryError = DeleteEndUserMemoryErrors[keyof DeleteEndUserMemoryErrors];
|
|
6801
|
+
export type DeleteEndUserMemoryResponses = {
|
|
6802
|
+
/**
|
|
6803
|
+
* The memory is gone
|
|
6804
|
+
*/
|
|
6805
|
+
204: void;
|
|
6806
|
+
};
|
|
6807
|
+
export type DeleteEndUserMemoryResponse = DeleteEndUserMemoryResponses[keyof DeleteEndUserMemoryResponses];
|
|
6808
|
+
export type GetEndUserMemoryData = {
|
|
6809
|
+
body?: never;
|
|
6810
|
+
path: {
|
|
6811
|
+
end_user_id: string;
|
|
6812
|
+
memory_id: string;
|
|
6813
|
+
};
|
|
6814
|
+
query?: never;
|
|
6815
|
+
url: '/v1/end-users/{end_user_id}/memories/{memory_id}';
|
|
6816
|
+
};
|
|
6817
|
+
export type GetEndUserMemoryErrors = {
|
|
6818
|
+
/**
|
|
6819
|
+
* Missing or invalid credentials
|
|
6820
|
+
*/
|
|
6821
|
+
401: ErrorResponse;
|
|
6822
|
+
/**
|
|
6823
|
+
* The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
|
|
6824
|
+
*/
|
|
6825
|
+
403: ErrorResponse;
|
|
6826
|
+
/**
|
|
6827
|
+
* Unknown end user id, or Unknown memory id
|
|
6828
|
+
*/
|
|
6829
|
+
404: ErrorResponse;
|
|
6830
|
+
/**
|
|
6831
|
+
* Rate limit exceeded
|
|
6832
|
+
*/
|
|
6833
|
+
429: ErrorResponse;
|
|
6834
|
+
};
|
|
6835
|
+
export type GetEndUserMemoryError = GetEndUserMemoryErrors[keyof GetEndUserMemoryErrors];
|
|
6836
|
+
export type GetEndUserMemoryResponses = {
|
|
6837
|
+
/**
|
|
6838
|
+
* The memory
|
|
6839
|
+
*/
|
|
6840
|
+
200: MemoryInfo;
|
|
6841
|
+
};
|
|
6842
|
+
export type GetEndUserMemoryResponse = GetEndUserMemoryResponses[keyof GetEndUserMemoryResponses];
|
|
6167
6843
|
export type ListKnowledgeCategoriesData = {
|
|
6168
6844
|
body?: never;
|
|
6169
6845
|
path?: never;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type * from "./gen/index.js";
|
|
|
10
10
|
export type { Page } from "./paging.js";
|
|
11
11
|
export type { AgentKnowledge, AgentSettings, Agents, AgentTools, } from "./resources/agents.js";
|
|
12
12
|
export type { AssetListParams, Assets, AssetUploadFields, FolderListParams, Folders, } from "./resources/assets.js";
|
|
13
|
-
export type { EndUserCreated, EndUserExport, EndUserListParams, EndUsers, } from "./resources/end-users.js";
|
|
13
|
+
export type { EndUserCreated, EndUserExport, EndUserListParams, EndUserMemories, EndUserMemoryListParams, EndUsers, } from "./resources/end-users.js";
|
|
14
14
|
export type { EphemeralKeyCreateOptions, EphemeralKeyListParams, EphemeralKeyRevokeOptions, EphemeralKeys, } from "./resources/ephemeral-keys.js";
|
|
15
15
|
export type { GenerationListParams, Generations, Jobs, Skybox, } from "./resources/generations.js";
|
|
16
16
|
export type { Knowledge, KnowledgeInsightsParams, KnowledgeListParams, KnowledgeUploadFields, } from "./resources/knowledge.js";
|
|
@@ -23,21 +23,23 @@
|
|
|
23
23
|
* page), reads each transcript back to its start by `messages.next_cursor`
|
|
24
24
|
* (200 messages a page, four sessions at a time), reads their facts (200
|
|
25
25
|
* a page) — those a later conversation replaced too, which are still held
|
|
26
|
-
* until they are deleted 30 days on — and
|
|
27
|
-
* after an abort or a
|
|
28
|
-
* too. The cost: one mint (and `limits()` when cold) + ⌈S/200⌉
|
|
29
|
-
* Σ⌈M/200⌉ transcript pages + ⌈F/200⌉ fact pages +
|
|
26
|
+
* until they are deleted 30 days on — and their memories (100 a page, the
|
|
27
|
+
* route's most), and revokes the key in `finally` — after an abort or a
|
|
28
|
+
* failure too. The cost: one mint (and `limits()` when cold) + ⌈S/200⌉
|
|
29
|
+
* lists + Σ⌈M/200⌉ transcript pages + ⌈F/200⌉ fact pages + ⌈T/100⌉
|
|
30
|
+
* memory pages + one revoke. **Its ceilings**: the
|
|
30
31
|
* key is ordinary, so at the person's live-key cap or the plan's mint rate
|
|
31
32
|
* the export fails as the mint does (422, 429) and can be retried once a
|
|
32
33
|
* key lapses; it lives five minutes, so a history that takes longer to
|
|
33
34
|
* read fails with a 401; its one micro-credit is set aside like any key's,
|
|
34
35
|
* so an organisation with no balance cannot export (402).
|
|
35
36
|
*/
|
|
36
|
-
import type { EndUserCreateRequest, EndUserDeleted, EndUserInfo, EndUserPage, EndUserUpdateRequest, FactCreateRequest, FactInfo, FactUpdateRequest, ListEndUsersData, SessionDetail } from "../gen/index.js";
|
|
37
|
+
import type { EndUserCreateRequest, EndUserDeleted, EndUserInfo, EndUserPage, EndUserUpdateRequest, FactCreateRequest, FactInfo, FactUpdateRequest, ListEndUserMemoriesData, ListEndUsersData, MemoriesDeleted, MemoryInfo, MemoryPage, SessionDetail } from "../gen/index.js";
|
|
37
38
|
import { type RequestOptions, type Transport } from "../transport.js";
|
|
38
39
|
import type { EphemeralKeys } from "./ephemeral-keys.js";
|
|
39
40
|
import { Editable } from "./resource.js";
|
|
40
41
|
export type EndUserListParams = NonNullable<ListEndUsersData["query"]>;
|
|
42
|
+
export type EndUserMemoryListParams = NonNullable<ListEndUserMemoriesData["query"]>;
|
|
41
43
|
/** An end user `create` answered, and whether this call made them. */
|
|
42
44
|
export type EndUserCreated = EndUserInfo & {
|
|
43
45
|
/**
|
|
@@ -58,6 +60,8 @@ export interface EndUserExport {
|
|
|
58
60
|
sessions: SessionDetail[];
|
|
59
61
|
/** What is remembered about them, oldest first — the newest 100 for now. */
|
|
60
62
|
facts: FactInfo[];
|
|
63
|
+
/** Every topic of their life the agents remember, the topic last talked about first. */
|
|
64
|
+
memories: MemoryInfo[];
|
|
61
65
|
}
|
|
62
66
|
/** A fact `facts.add` answered, and whether this call made it. */
|
|
63
67
|
export type FactAdded = FactInfo & {
|
|
@@ -80,9 +84,31 @@ export interface EndUserFacts {
|
|
|
80
84
|
/** Forgets one: `true`, or `false` when there is none by that id. */
|
|
81
85
|
delete(id: string, factId: string, options?: RequestOptions): Promise<boolean>;
|
|
82
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* `endUsers.memories`: what the agents remember of one person's life, one
|
|
89
|
+
* memory per topic, from your server with no key minted for them —
|
|
90
|
+
* `/v1/end-users/{id}/memories`. Read and forgotten, never written: only
|
|
91
|
+
* a conversation writes one.
|
|
92
|
+
*/
|
|
93
|
+
export interface EndUserMemories {
|
|
94
|
+
/** Every memory, the topic last talked about first, page after page (100 a page by default). */
|
|
95
|
+
list(id: string, params?: Omit<EndUserMemoryListParams, "cursor">, options?: RequestOptions): AsyncGenerator<MemoryInfo, void, undefined>;
|
|
96
|
+
/** One page, with the `next_cursor` of the next. */
|
|
97
|
+
page(id: string, params?: EndUserMemoryListParams, options?: RequestOptions): Promise<MemoryPage>;
|
|
98
|
+
/** One memory. A `NotFoundError` when there is none, or no such person. */
|
|
99
|
+
get(id: string, memoryId: string, options?: RequestOptions): Promise<MemoryInfo>;
|
|
100
|
+
/**
|
|
101
|
+
* Forgets one: `true`, or `false` when there is none by that id. A later
|
|
102
|
+
* conversation about the topic starts a new one.
|
|
103
|
+
*/
|
|
104
|
+
delete(id: string, memoryId: string, options?: RequestOptions): Promise<boolean>;
|
|
105
|
+
/** Forgets every memory of theirs: how many went. Their facts and conversations stay. */
|
|
106
|
+
deleteAll(id: string, options?: RequestOptions): Promise<MemoriesDeleted>;
|
|
107
|
+
}
|
|
83
108
|
export declare class EndUsers extends Editable<EndUserInfo, EndUserUpdateRequest, EndUserInfo, EndUserDeleted | null> {
|
|
84
109
|
private readonly keys;
|
|
85
110
|
readonly facts: EndUserFacts;
|
|
111
|
+
readonly memories: EndUserMemories;
|
|
86
112
|
constructor(api: Transport, base: string, keys: EphemeralKeys);
|
|
87
113
|
/**
|
|
88
114
|
* Makes a person, or finds the one your `external_id` already names.
|
|
@@ -23,10 +23,11 @@
|
|
|
23
23
|
* page), reads each transcript back to its start by `messages.next_cursor`
|
|
24
24
|
* (200 messages a page, four sessions at a time), reads their facts (200
|
|
25
25
|
* a page) — those a later conversation replaced too, which are still held
|
|
26
|
-
* until they are deleted 30 days on — and
|
|
27
|
-
* after an abort or a
|
|
28
|
-
* too. The cost: one mint (and `limits()` when cold) + ⌈S/200⌉
|
|
29
|
-
* Σ⌈M/200⌉ transcript pages + ⌈F/200⌉ fact pages +
|
|
26
|
+
* until they are deleted 30 days on — and their memories (100 a page, the
|
|
27
|
+
* route's most), and revokes the key in `finally` — after an abort or a
|
|
28
|
+
* failure too. The cost: one mint (and `limits()` when cold) + ⌈S/200⌉
|
|
29
|
+
* lists + Σ⌈M/200⌉ transcript pages + ⌈F/200⌉ fact pages + ⌈T/100⌉
|
|
30
|
+
* memory pages + one revoke. **Its ceilings**: the
|
|
30
31
|
* key is ordinary, so at the person's live-key cap or the plan's mint rate
|
|
31
32
|
* the export fails as the mint does (422, 429) and can be retried once a
|
|
32
33
|
* key lapses; it lives five minutes, so a history that takes longer to
|
|
@@ -38,6 +39,8 @@ import { orNull, segment, } from "../transport.js";
|
|
|
38
39
|
import { Editable } from "./resource.js";
|
|
39
40
|
/** The routes' largest page, for end users, sessions and transcripts alike. */
|
|
40
41
|
const PAGE = 200;
|
|
42
|
+
/** The memories' largest page: each carries its topic's whole story. */
|
|
43
|
+
const MEMORY_PAGE = 100;
|
|
41
44
|
/** The export key's lifetime and limit: the shortest useful, the least set aside. */
|
|
42
45
|
const EXPORT_TTL_S = 300;
|
|
43
46
|
const EXPORT_CREDIT_MICROS = 1;
|
|
@@ -68,6 +71,8 @@ export class EndUsers extends Editable {
|
|
|
68
71
|
super(api, base);
|
|
69
72
|
this.keys = keys;
|
|
70
73
|
const fact = (id, factId) => this.at(id, `/facts/${segment(factId)}`);
|
|
74
|
+
/** A `DELETE` of one thing: `true`, or `false` for a 404 — already gone. */
|
|
75
|
+
const drop = (path, options) => orNull(this.send("DELETE", path, options)).then((gone) => gone !== null);
|
|
71
76
|
this.facts = {
|
|
72
77
|
list: (id, params = {}, options) => this.each(this.at(id, "/facts"), params, options, PAGE),
|
|
73
78
|
add: async (id, body, options) => {
|
|
@@ -75,7 +80,15 @@ export class EndUsers extends Editable {
|
|
|
75
80
|
return { ...answer.data, created: answer.status === 201 };
|
|
76
81
|
},
|
|
77
82
|
update: (id, factId, body, options) => this.send("PATCH", fact(id, factId), options, body),
|
|
78
|
-
delete: (id, factId, options) =>
|
|
83
|
+
delete: (id, factId, options) => drop(fact(id, factId), options),
|
|
84
|
+
};
|
|
85
|
+
const memories = (id, rest = "") => this.at(id, `/memories${rest}`);
|
|
86
|
+
this.memories = {
|
|
87
|
+
list: (id, params = {}, options) => this.each(memories(id), params, options, MEMORY_PAGE),
|
|
88
|
+
page: (id, params = {}, options) => this.send("GET", memories(id), options, params),
|
|
89
|
+
get: (id, memoryId, options) => this.send("GET", memories(id, `/${segment(memoryId)}`), options),
|
|
90
|
+
delete: (id, memoryId, options) => drop(memories(id, `/${segment(memoryId)}`), options),
|
|
91
|
+
deleteAll: (id, options) => this.send("DELETE", memories(id), options),
|
|
79
92
|
};
|
|
80
93
|
}
|
|
81
94
|
/**
|
|
@@ -142,7 +155,16 @@ export class EndUsers extends Editable {
|
|
|
142
155
|
cursor,
|
|
143
156
|
include_replaced: true,
|
|
144
157
|
})));
|
|
145
|
-
|
|
158
|
+
const memories = await all(pages((cursor) => read("/v1/agent/memories", {
|
|
159
|
+
limit: MEMORY_PAGE,
|
|
160
|
+
cursor,
|
|
161
|
+
})));
|
|
162
|
+
return {
|
|
163
|
+
end_user_id: key.end_user_id ?? id,
|
|
164
|
+
sessions,
|
|
165
|
+
facts,
|
|
166
|
+
memories,
|
|
167
|
+
};
|
|
146
168
|
}
|
|
147
169
|
finally {
|
|
148
170
|
// Without the caller's signal: an aborted export still revokes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumavox/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "The Lumavox API from your server: end users, ephemeral keys and the rest, typed from the published OpenAPI document. Zero dependencies.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|