Uses of Class
org.springframework.ai.chat.model.ToolContext
Packages that use ToolContext
Package
Description
Chat client.
-
Uses of ToolContext in org.springframework.ai.chat.client
Method parameters in org.springframework.ai.chat.client with type arguments of type ToolContextModifier and TypeMethodDescription<I,
O> ChatClient.Builder DefaultChatClientBuilder.defaultFunction
(String name, String description, BiFunction<I, ToolContext, O> biFunction) Deprecated. -
Uses of ToolContext in org.springframework.ai.chat.model
Methods in org.springframework.ai.chat.model with parameters of type ToolContextModifier and TypeMethodDescriptionprotected ToolResponseMessage
AbstractToolCallSupport.executeFunctions
(AssistantMessage assistantMessage, ToolContext toolContext) Deprecated. -
Uses of ToolContext in org.springframework.ai.model.function
Methods in org.springframework.ai.model.function with parameters of type ToolContextModifier and TypeMethodDescriptionFunctionInvokingFunctionCallback.apply
(I input, ToolContext context) Deprecated.default String
FunctionCallback.call
(String functionInput, ToolContext tooContext) Deprecated.Called when a model detects and triggers a function call.MethodInvokingFunctionCallback.call
(String functionInput, ToolContext toolContext) Deprecated.Method parameters in org.springframework.ai.model.function with type arguments of type ToolContextModifier and TypeMethodDescription<I,
O> FunctionCallback.FunctionInvokingSpec<I, O> DefaultFunctionCallbackBuilder.function
(String name, BiFunction<I, ToolContext, O> biFunction) Deprecated.<I,
O> FunctionCallback.FunctionInvokingSpec<I, O> FunctionCallback.Builder.function
(String name, BiFunction<I, ToolContext, O> biFunction) Deprecated.Builds aBiFunction
invokingFunctionCallback
instance. -
Uses of ToolContext in org.springframework.ai.tool
Methods in org.springframework.ai.tool with parameters of type ToolContextModifier and TypeMethodDescriptiondefault String
ToolCallback.call
(String toolInput, ToolContext tooContext) Execute tool with the given input and context, and return the result to send back to the AI model. -
Uses of ToolContext in org.springframework.ai.tool.function
Methods in org.springframework.ai.tool.function with parameters of type ToolContextModifier and TypeMethodDescriptionFunctionToolCallback.call
(String toolInput, ToolContext toolContext) Method parameters in org.springframework.ai.tool.function with type arguments of type ToolContextModifier and TypeMethodDescriptionstatic <I,
O> FunctionToolCallback.Builder<I, O> FunctionToolCallback.builder
(String name, BiFunction<I, ToolContext, O> function) Build aFunctionToolCallback
from aBiFunction
.Constructor parameters in org.springframework.ai.tool.function with type arguments of type ToolContextModifierConstructorDescriptionFunctionToolCallback
(ToolDefinition toolDefinition, ToolMetadata toolMetadata, Type toolInputType, BiFunction<I, ToolContext, O> toolFunction, ToolCallResultConverter toolCallResultConverter) -
Uses of ToolContext in org.springframework.ai.tool.method
Methods in org.springframework.ai.tool.method with parameters of type ToolContextModifier and TypeMethodDescriptionMethodToolCallback.call
(String toolInput, ToolContext toolContext)