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

Add Zhipu Qingliu Agent implementation #47

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

cuiwei1
Copy link

@cuiwei1 cuiwei1 commented Jan 9, 2025

Issue

Closes #46 #49
document

Change

General checklist

  • There are no breaking changes
  • I have added unit and integration tests for my change
  • I have manually run all the unit tests in all modules, and they are all green
  • I have manually run all integration tests in the module I have added/changed, and they are all green
  • I have added/updated the documentation
  • I have added an example in the examples repo (only for "big" features)
  • I have added/updated Spring Boot starter(s) (if applicable)

Checklist for adding new maven module

  • I have added my new module in the root pom.xml and langchain4j-community-bom/pom.xml

Checklist for adding new embedding store integration

  • I have added a {NameOfIntegration}EmbeddingStoreIT that extends from either EmbeddingStoreIT or EmbeddingStoreWithFilteringIT
  • I have added a {NameOfIntegration}EmbeddingStoreRemovalIT that extends from EmbeddingStoreWithRemovalIT

Checklist for changing existing embedding store integration

  • I have manually verified that the {NameOfIntegration}EmbeddingStore works correctly with the data persisted using the latest released version of LangChain4j

@Martin7-1 Martin7-1 added P3 Medium priority theme: model Issues/PRs related to model enhancement New feature or request labels Jan 9, 2025
Copy link
Collaborator

@Martin7-1 Martin7-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cuiwei1 Thank you!

  1. Could you please consider using record instead of normal class On HTTP parameters and response objects.
  2. If no, could you please remove all final in setters?

I do not dive deep into it. But could you please add more tests? (including positive and negative tests)

@Martin7-1
Copy link
Collaborator

And, could you please add some explanations on how to run the IT?

@cuiwei1
Copy link
Author

cuiwei1 commented Jan 10, 2025

And, could you please add some explanations on how to run the IT?

image

In dev.langchain4j.community.model.zhipu.ZhipuAiAssistantIT, modify the appIdto the corresponding appId of the Zhipu Open Platform's intelligent agent for testing. I have been running it in our production environment for half a month, and it is working normally.

cuiwei1 and others added 10 commits January 10, 2025 18:04
…ain4j/community/model/zhipu/assistant/AssistantBlockData.java


Agree.

Co-authored-by: Martin7-1 <[email protected]>
…ain4j/community/model/zhipu/assistant/AssistantBlockData.java

Co-authored-by: Martin7-1 <[email protected]>
…ain4j/community/model/zhipu/assistant/AssistantBlockData.java

Co-authored-by: Martin7-1 <[email protected]>
…ain4j/community/model/zhipu/assistant/ClientResponse.java

Co-authored-by: Martin7-1 <[email protected]>
…ain4j/community/model/zhipu/ZhipuAssistantChatModel.java

Co-authored-by: Martin7-1 <[email protected]>
…ain4j/community/model/zhipu/ZhipuAssistantChatModel.java

Co-authored-by: Martin7-1 <[email protected]>
…ain4j/community/model/zhipu/spi/ZhipuAssistantChatModelBuilderFactory.java

Co-authored-by: Martin7-1 <[email protected]>
@cuiwei1
Copy link
Author

cuiwei1 commented Jan 10, 2025

@Martin7-1
Done.

@Martin7-1
Copy link
Collaborator

@cuiwei1 Thank you! There are some conversations which are hidden and are not resolved, could you please check?

@cuiwei1
Copy link
Author

cuiwei1 commented Jan 11, 2025

@Martin7-1
Thank you for your suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P3 Medium priority theme: model Issues/PRs related to model
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] ZhipuAI: Agent Platform API (Zhipu Qingliu).
2 participants