langchain.js
    Preparing search index...

    Type Alias DynamicSystemPromptMiddlewareConfig<TContextSchema>

    DynamicSystemPromptMiddlewareConfig: (
        state: AgentBuiltInState,
        runtime: Runtime<AgentBuiltInState, TContextSchema>,
    ) => string | Promise<string>

    Type Parameters

    • TContextSchema

    Type Declaration

      • (
            state: AgentBuiltInState,
            runtime: Runtime<AgentBuiltInState, TContextSchema>,
        ): string | Promise<string>
      • Parameters

        • state: AgentBuiltInState
        • runtime: Runtime<AgentBuiltInState, TContextSchema>

        Returns string | Promise<string>