Uses of Class
org.springframework.ai.chat.model.ToolContext
Package
Description
Chat client.
-
Uses of ToolContext in org.springframework.ai.chat.client
Modifier and TypeMethodDescription<I,
O> ChatClient.Builder ChatClient.Builder.defaultFunction
(String name, String description, BiFunction<I, ToolContext, O> function) Deprecated.<I,
O> ChatClient.Builder DefaultChatClientBuilder.defaultFunction
(String name, String description, BiFunction<I, ToolContext, O> biFunction) ChatClient.ChatClientRequestSpec.function
(String name, String description, BiFunction<I, ToolContext, O> function) Deprecated.DefaultChatClient.DefaultChatClientRequestSpec.function
(String name, String description, BiFunction<I, ToolContext, O> biFunction) -
Uses of ToolContext in org.springframework.ai.chat.model
Modifier and TypeMethodDescriptionprotected ToolResponseMessage
AbstractToolCallSupport.executeFunctions
(AssistantMessage assistantMessage, ToolContext toolContext) -
Uses of ToolContext in org.springframework.ai.model.function
Modifier and TypeMethodDescriptionFunctionCallbackWrapper.apply
(I input, ToolContext context) Deprecated.FunctionInvokingFunctionCallback.apply
(I input, ToolContext context) default String
FunctionCallback.call
(String functionInput, ToolContext tooContext) Called when a model detects and triggers a function call.MethodInvokingFunctionCallback.call
(String functionInput, ToolContext toolContext) Modifier and TypeMethodDescriptionstatic <I,
O> FunctionCallbackWrapper.Builder<I, O> FunctionCallbackWrapper.builder
(BiFunction<I, ToolContext, O> biFunction) Deprecated.useFunctionCallback.builder()
instead.<I,
O> FunctionCallback.FunctionInvokingSpec<I, O> DefaultFunctionCallbackBuilder.function
(String name, BiFunction<I, ToolContext, O> biFunction) <I,
O> FunctionCallback.FunctionInvokingSpec<I, O> FunctionCallback.Builder.function
(String name, BiFunction<I, ToolContext, O> biFunction) Builds aBiFunction
invokingFunctionCallback
instance.
ChatClient.Builder.defaultFunctions(FunctionCallback...)
instead.