LangGraph.js API Reference
    Preparing search index...

    Variable createReactAgentAnnotationConst

    createReactAgentAnnotation: <
        T extends Record<string, any> = Record<string, any>,
    >() => AnnotationRoot<
        {
            messages: BinaryOperatorAggregate<
                BaseMessage<
                    _langchain_core_messages23.MessageStructure,
                    _langchain_core_messages23.MessageType,
                >[],
                Messages,
            >;
            structuredResponse: {
                Root: <S extends StateDefinition>(sd: S) => AnnotationRoot<S>;
                (): LastValue<T>;
                (annotation: SingleReducer<T, T>): BinaryOperatorAggregate<T, T>;
            };
        },
    >

    Type Declaration

      • <T extends Record<string, any> = Record<string, any>>(): AnnotationRoot<
            {
                messages: BinaryOperatorAggregate<
                    BaseMessage<
                        _langchain_core_messages23.MessageStructure,
                        _langchain_core_messages23.MessageType,
                    >[],
                    Messages,
                >;
                structuredResponse: {
                    Root: <S extends StateDefinition>(sd: S) => AnnotationRoot<S>;
                    (): LastValue<T>;
                    (annotation: SingleReducer<T, T>): BinaryOperatorAggregate<T, T>;
                };
            },
        >
      • Type Parameters

        • T extends Record<string, any> = Record<string, any>

        Returns AnnotationRoot<
            {
                messages: BinaryOperatorAggregate<
                    BaseMessage<
                        _langchain_core_messages23.MessageStructure,
                        _langchain_core_messages23.MessageType,
                    >[],
                    Messages,
                >;
                structuredResponse: {
                    Root: <S extends StateDefinition>(sd: S) => AnnotationRoot<S>;
                    (): LastValue<T>;
                    (annotation: SingleReducer<T, T>): BinaryOperatorAggregate<T, T>;
                };
            },
        >