ActionActionCallActionCallContextActionContextActionCtxRefActionHandlerActionResultActionSchemaActionStateAgentAgentContextAnyActionAnyActionWithContextAnyAgentAnyContextAnyOutputAnyRefConfigContextContextConfigcontextLockManagerContextLockManagerContextRefContextRefArrayContextSettingsContextsEventsRecordContextsRefRecordContextStateContextStateApicreateEntityPatternscreateRelationshipPatternsDebuggerdefineSchemaEntityEntityExtractionConfigEntityTypeDefinitionEpisodeEpisodeHooksEpisodicMemoryEpisodicMemoryImplEventDefEventRefExpertExportManagerExtensionExtractedEntityExtractedRelationshipExtractionResultExtractTemplateVariablesForgetCriteriaGraphEdgeGraphFilterGraphMemoryGraphMemoryImplGraphNodeGraphPathGraphProviderGraphTraversalHandlersHealthStatusIChainInferActionArgumentsInferActionStateInferAgentContextInferAgentMemoryInferContextMemoryInferContextOptionsInferSchemaInferSchemaArgumentsInMemoryGraphProviderInMemoryKeyValueProviderInMemoryVectorProviderInputInputConfigInputRefInstructionIWorkingMemoryJSONExporterKeyValueMemoryKeyValueMemoryImplKeyValueProviderKnowledgeExtractorKnowledgeSchemaKnowledgeServiceKnowledgeServiceConfigLogLogChunkLogLevelMarkdownExporterMaybePromiseMemoryMemoryConfigMemoryManagerMemoryProviderMemoryResultMemorySystemOptionalOutputOutputConfigOutputCtxRefOutputRefOutputRefResponseOutputResponseOutputSchemaPrettyPushOptionsRecallOptionsRegistryRelationshipRelationshipExtractionConfigRelationshipSemanticsRelationshipTypeDefinitionRememberOptionsResolverRunRefSearchOptionsSemanticRelationshipSetOptionsStepRefSubscriptionTaskConfigurationTemplateResolverTemplateVariablesThoughtThoughtRefVectorDocumentVectorMemoryVectorMemoryImplVectorProviderVectorQueryVectorResultWorkingMemoryWorkingMemoryDataWorkingMemoryImplXMLElement
API ReferenceCoreRouterTutorials

Resolver

@daydreamsai/core


@daydreamsai/core / Resolver

Type Alias: Resolver<Result, Ctx>

Resolver<Result, Ctx> = Result | (ctx) => Result

Defined in: packages/core/src/types.ts:1091

Type that can be either a static value or a function that computes the value from context

Type Parameters

Result

Result

The type of the resolved value

Ctx

Ctx

The context type passed to the resolver function

RememberOptions

Previous Page

RunRef

Next Page

On this page

Type Alias: Resolver<Result, Ctx>Type ParametersResultCtx