ActionActionCallActionCallContextActionContextActionCtxRefActionHandlerActionResultActionSchemaActionStateAgentAgentContextAnyActionAnyActionWithContextAnyAgentAnyContextAnyOutputAnyRefConfigContextContextConfigcontextLockManagerContextLockManagerContextRefContextRefArrayContextSettingsContextsEventsRecordContextsRefRecordContextStateContextStateApicreateEntityPatternscreateRelationshipPatternsDebuggerdefineSchemaEntityEntityExtractionConfigEntityTypeDefinitionEpisodeEpisodeHooksEpisodicMemoryEpisodicMemoryImplEventDefEventRefExpertExportManagerExtensionExtractedEntityExtractedRelationshipExtractionResultExtractTemplateVariablesForgetCriteriaGraphEdgeGraphFilterGraphMemoryGraphMemoryImplGraphNodeGraphPathGraphProviderGraphTraversalHandlersHealthStatusIChainInferActionArgumentsInferActionStateInferAgentContextInferAgentMemoryInferContextMemoryInferContextOptionsInferSchemaInferSchemaArgumentsInMemoryGraphProviderInMemoryKeyValueProviderInMemoryVectorProviderInputInputConfigInputRefInstructionIWorkingMemoryJSONExporterKeyValueMemoryKeyValueMemoryImplKeyValueProviderKnowledgeExtractorKnowledgeSchemaKnowledgeServiceKnowledgeServiceConfigLogLogChunkLogLevelMarkdownExporterMaybePromiseMemoryMemoryConfigMemoryManagerMemoryProviderMemoryResultMemorySystemOptionalOutputOutputConfigOutputCtxRefOutputRefOutputRefResponseOutputResponseOutputSchemaPrettyPushOptionsRecallOptionsRegistryRelationshipRelationshipExtractionConfigRelationshipSemanticsRelationshipTypeDefinitionRememberOptionsResolverRunRefSearchOptionsSemanticRelationshipSetOptionsStepRefSubscriptionTaskConfigurationTemplateResolverTemplateVariablesThoughtThoughtRefVectorDocumentVectorMemoryVectorMemoryImplVectorProviderVectorQueryVectorResultWorkingMemoryWorkingMemoryDataWorkingMemoryImplXMLElement
API ReferenceCoreRouterTutorials

InferActionState

@daydreamsai/core


@daydreamsai/core / InferActionState

Type Alias: InferActionState<TMemory>

InferActionState<TMemory> = TMemory extends ActionState<infer Data> ? Data : never

Defined in: packages/core/src/memory/types.ts:423

Extracts the data type from a Memory type

Type Parameters

TMemory

TMemory extends ActionState<any>

Memory type to extract data from

InferActionArguments

Previous Page

InferAgentContext

Next Page

On this page

Type Alias: InferActionState<TMemory>Type ParametersTMemory