Skip to content

useChat support for Langchain/Langgraph or custom APIs with standard ChatCompletion schemas #22

@gowedixyz

Description

@gowedixyz

Feature Request: Leveraging React Native Generative UI with LangChain

Building complex, AI-powered applications with multi-agent setups and custom implementations often requires significant effort in both UI and AI integration. Current solutions lack the seamless integration of advanced generative AI capabilities into mobile apps, particularly for scenarios involving dynamic, real-time interactions with LangChain agents. This gap complicates the development process for AI-driven applications requiring flexible, multi-agent workflows.

Describe the solution you’d like

The integration of the react-native-gen-ui library with LangChain to create a robust framework for generative UIs in React Native apps. This solution would:
• Enable real-time communication between LangChain agents and React Native UIs, supporting multi-agent workflows.
• Provide a streamlined way to implement dynamic tools and functions in LangChain, such as tool calling and multi-step reasoning, directly within the app.
• Leverage the library’s useChat hook and tools framework to handle complex agent interactions, including custom tools for diverse scenarios.
• Support rich, interactive components for presenting AI-generated outputs, making it easier to design highly customized user interfaces.
• Offer scalability and extensibility for adding more complex agent behaviors, ensuring alignment with LangChain’s advanced capabilities.

Describe alternatives you’ve considered
1. Custom UI and LangChain integration
• Pros: Full control over implementation details.
• Cons: Requires significant development effort, increased complexity, and lacks reusable components.
2. Using existing libraries like LangChain.js
• Pros: Direct support for LangChain agents.
• Cons: Limited UI integration capabilities for mobile platforms like React Native.
3. Using server-side AI with basic UI frameworks
• Pros: Simplifies backend logic.
• Cons: Introduces latency and fails to leverage client-side generative AI features.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions