spring-projects / spring-ai

An Application Framework for AI Engineering

Home Page:https://docs.spring.io/spring-ai/reference/1.0-SNAPSHOT/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for Assistant OpenAi API

KaisNeffati opened this issue · 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.

commented

+1, urgent and necessary.

Also applies to Azure OpenAI