spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Add support for Assistant OpenAi API

Open KaisNeffati opened this issue 11 months ago • 11 comments

Expected Behavior

The feature should enable Spring AI to manage interactions with OpenAI's Assistant :

  • Managing Assistants: Provide API endpoints for creating, configuring, and managing instances of Assistants, allowing developers to tailor the behavior of these Assistants for specific tasks or user groups.

  • Threads Handling: Introduce functionality to manage conversation threads, enabling the application to handle ongoing dialogs, track conversation history, and maintain context across multiple interactions.

  • Messages Management: Offer methods to send and receive messages within a thread, including support for various message types such as text, images, and potentially complex interactive elements.

  • Files Processing: Enable the Assistant to process files submitted by users, such as documents for content extraction or images for analysis, and respond appropriately based on the content of these files.

  • Tools Integration:

    • Code Interpreter
    • Information Retrieval
    • Function Calling

Current Behavior

Currently, there's no built-in support within Spring AI for Assistant open AI API. Developers are required to build custom solutions for handling threads, managing messages, and processing files, which increases complexity and development time

Context

The need for such features arises from the growing demand for sophisticated AI-powered interactions within applications. By providing developers with the tools to manage Assistants, threads, messages, files, and integrating advanced functionalities directly, Spring AI can significantly reduce the development complexity and enable more powerful and interactive applications.

KaisNeffati avatar Mar 24 '24 12:03 KaisNeffati

+1, urgent and necessary.

cikichen avatar May 31 '24 08:05 cikichen

Also applies to Azure OpenAI

jochenchrist avatar Jun 09 '24 18:06 jochenchrist

+1, urgent and necessary.

bharatproductexpert avatar Jun 27 '24 12:06 bharatproductexpert

+1

meletis avatar Jun 27 '24 12:06 meletis

+1, urgent and necessary.

andresssantos avatar Jun 27 '24 12:06 andresssantos

+1 urgent

Ashakibp avatar Jul 02 '24 20:07 Ashakibp

+1, urgent and necessary.

evelzi avatar Jul 03 '24 22:07 evelzi

+1, urgent and necessary.

Mr-LiuDC avatar Jul 09 '24 07:07 Mr-LiuDC

Thanks for the votes. Will prioritize

markpollack avatar Jul 22 '24 19:07 markpollack

+1, urgent and necessary.

Alio-Kh avatar Aug 08 '24 14:08 Alio-Kh

very urgent, is there any ETA for final release of 1.0.0-RC1 ?

mettbest avatar Aug 09 '24 08:08 mettbest

For people interested in this feature, I would recommend adding a "thumb up" to the issue description instead of commenting with "+1", reserving comments to discuss the feature implementation ideas and details. Thanks!

ThomasVitale avatar Aug 13 '24 14:08 ThomasVitale

Currently, there is no access method for Assistant API provided in spring ai. So how do you implement multi-round dialogue? I plan to use ChatMemory to achieve

hedaoming avatar Aug 14 '24 09:08 hedaoming