Skip to content

Initial CallChatModel implementation #668

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

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

treblereel
Copy link

Many thanks for submitting your Pull Request ❤️!

What this PR does / why we need it:

Special notes for reviewers:

Additional information (if needed):

@treblereel treblereel requested a review from fjtirado as a code owner July 23, 2025 18:06
@treblereel treblereel marked this pull request as draft July 23, 2025 18:06
Copy link
Collaborator

@fjtirado fjtirado left a comment

Choose a reason for hiding this comment

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

Im going to open a PR over this branch

Comment on lines 22 to 25
<dependency>
<groupId>io.serverlessworkflow</groupId>
<artifactId>serverlessworkflow-experimental-types</artifactId>
</dependency>
Copy link
Collaborator

Choose a reason for hiding this comment

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

This dependency is duplicated

<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j</artifactId>
<version>1.1.0</version>
<optional>true</optional>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why optional?


package io.serverlessworkflow.impl.executors.ai;

public abstract class AbstractCallAIChatModelExecutor<T> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be an interface, not an abstract class. so it should be renamed as AIChatModelExecutor
And it can extends BiFunction<T,Object,Object>, not define the apply

@fjtirado fjtirado self-requested a review July 24, 2025 17:05
@fjtirado
Copy link
Collaborator

I created PR treblereel#1 as code review

@treblereel treblereel force-pushed the chatModel branch 2 times, most recently from 97b96a4 to 87a617a Compare July 25, 2025 00:05
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.

2 participants