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

Support for declarative build function callbacks in the Spring container #1105

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

Conversation

KAMO030
Copy link
Contributor

@KAMO030 KAMO030 commented Jul 24, 2024

  • add FunctionCallbackMethodProcessor to support parsing.
  • add the FunctionCalling annotation to declare
  • add FunctionCallbackMethodProcessorIT as test

Dependent on #1099

define:

public  class FunctionCallConfig {
		@FunctionCalling(name = "dateTime", description = "get the current date and time")
		public String dateTime(String location) {
			return location + " dateTime:" + LocalDateTime.now();
		}
}

use:

client.prompt().user("What is the time in New York?").functions("dateTime").call().content();

-- add FunctionCallbackMethodProcessor to support parsing.
-- add the FunctionCalling annotation to declare
-- add FunctionCallbackMethodProcessorIT as test

Dependent on spring-projects#1099
@csterwa csterwa mentioned this pull request Sep 12, 2024
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants