-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
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
- manually register with FunctionCallingOptions
- automatically resolved from the ApplicationContext using the FunctionCallbackContext
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.
fedecompa