Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(openai-assistants): Integrate OpenAI Assistant API management #1855

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

apappascs
Copy link
Contributor

  • Added OpenAiAssistantManager for high-level assistant lifecycle management (create, retrieve, modify, list, delete).
  • Introduced OpenAiAssistantOptions for configuring assistant properties.
  • Implemented OpenAiAssistantApi with API-level operations.
  • Added support for tools like FunctionTool, FileSearchTool, and CodeInterpreterTool.
  • Enhanced spring-ai-spring-boot-autoconfigure with assistant-related properties and auto-configuration.
  • Included integration tests (OpenAiAssistantManagerIT and OpenAiAssistantApiIT) for assistant lifecycle operations.
  • Updated documentation to cover assistant API features and usage examples.

Partially resolves #506


  • Run a build and make sure all tests pass prior to submission
./mvnw spring-javaformat:apply
./mvnw clean install -DskipTests -Dmaven.javadoc.skip=true
./mvnw verify -Pintegration-tests -pl spring-ai-core 
./mvnw verify -Pintegration-tests -pl models/spring-ai-openai
./mvnw verify -Pintegration-tests -pl spring-ai-spring-boot-autoconfigure 
./mvnw javadoc:javadoc -Pjavadoc

- Added `OpenAiAssistantManager` for high-level assistant lifecycle management (create, retrieve, modify, list, delete).
- Introduced `OpenAiAssistantOptions` for configuring assistant properties.
- Implemented `OpenAiAssistantApi` with API-level operations.
- Added support for tools like `FunctionTool`, `FileSearchTool`, and `CodeInterpreterTool`.
- Enhanced `spring-ai-spring-boot-autoconfigure` with assistant-related properties and auto-configuration.
- Included integration tests (`OpenAiAssistantManagerIT` and `OpenAiAssistantApiIT`) for assistant lifecycle operations.
- Updated documentation to cover assistant API features and usage examples.

Partially resolves spring-projects#506
@apappascs
Copy link
Contributor Author

@markpollack @tzolov any updates on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Assistant OpenAi API
1 participant