Skip to content

How to use langchain v1 createAgent with SAP AI SDK? #1346

@florian-richter

Description

@florian-richter

Describe the Question

I want to update my project from langchain v0 to v1.
In your documentation (https://sap.github.io/ai-sdk/docs/js/langchain), you say that the same langchain version as used by the SDK should be used (which is v1).
The previous createReactAgent from langgraph is deprecated and should be replaced by createAgent (https://docs.langchain.com/oss/javascript/releases/langgraph-v1#deprecation-of-createreactagent).
createAgent requires a model parameter which seems to be incompatible with the SAP AI SDK.

Could you provide some guidance how to use the SAP AI SDK with createAgent (preferably also in the documentation and not just in this issue)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions