Class ToolServiceContext
java.lang.Object
dev.langchain4j.service.tool.ToolServiceContext
- Direct Known Subclasses:
ToolServiceContext.Empty
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionToolServiceContext(List<ToolSpecification> toolSpecifications, Map<String, ToolExecutor> toolExecutors) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionReturns all available tool specifications configured for AI service.static ToolServiceContext.Builderbuilder()Returns effective tool specifications that should be included in the nextChatRequest.booleaninthashCode()Deprecated.useeffectiveTools()insteadtoString()
-
Constructor Details
-
ToolServiceContext
-
ToolServiceContext
@Deprecated(since="1.12.0") public ToolServiceContext(List<ToolSpecification> toolSpecifications, Map<String, ToolExecutor> toolExecutors) Deprecated.useToolServiceContext(Builder)instead
-
-
Method Details
-
effectiveTools
Returns effective tool specifications that should be included in the nextChatRequest.- See Also:
-
toolSpecifications
Deprecated.useeffectiveTools()insteadReturns effective tool specifications that should be included in the nextChatRequest.- See Also:
-
availableTools
Returns all available tool specifications configured for AI service. These tool specifications can be discovered/found by the LLM (seeToolSearchStrategy) and included in the nextChatRequest.- Since:
- 1.12.0
- See Also:
-
toolExecutors
-
immediateReturnTools
-
toBuilder
-
equals
-
hashCode
-
toString
-
builder
-
ToolServiceContext(Builder)instead