Skip to content

Refactor FunctionCallbackContext to FuctionCallBackResolver interface #758

@konczdev

Description

@konczdev

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions