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

Refactor FunctionCallbackContext to FucntionCallBackResolver interface #758

Open
konczdev opened this issue May 23, 2024 · 0 comments
Open

Comments

@konczdev
Copy link

Expected Behavior

Introducing FucntionCallBackResolver would enable more flexibility and control over how to add FunctionCallbacks to a request.

public interface FunctionCallBackResolver {

	public FunctionCallback getFunctionCallback(@NonNull String beanName, @Nullable String defaultDescription);
}
public class ApplicationContextFunctionCallbackResolver implements FunctionCallBackResolver, ApplicationContextAware {

    //the current implementation of FunctionCallbackContext 

}

Current Behavior

There are 2 options now how to add FunctionCallbacks to a Request

Context

What are you trying to accomplish?

  • Custom logic for dynamic function resolution

What other alternatives have you considered?
Are you aware of any workarounds?

  • Making some less elegant logic around prompt options building.
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

No branches or pull requests

1 participant