Package com.alibaba.cloud.ai.graph.agent
Class Builder
java.lang.Object
com.alibaba.cloud.ai.graph.agent.Builder
- Direct Known Subclasses:
DefaultBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.ai.chat.client.ChatClientprotected org.springframework.ai.chat.prompt.ChatOptionsprotected org.springframework.ai.chat.client.observation.ChatClientObservationConventionprotected Stringprotected booleanprotected booleanprotected Stringprotected Typeprotected Stringprotected List<? extends Interceptor>protected org.springframework.ai.chat.model.ChatModelprotected List<ModelInterceptor>protected Stringprotected io.micrometer.observation.ObservationRegistryprotected Stringprotected KeyStrategyprotected Stringprotected Class<?>protected booleanprotected org.springframework.ai.tool.resolution.ToolCallbackResolverprotected booleanprotected BaseCheckpointSaverprotected Stringprotected List<ToolInterceptor>protected List<org.springframework.ai.tool.ToolCallback> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ReactAgentbuild()protected CompileConfigchatClient(org.springframework.ai.chat.client.ChatClient chatClient) Deprecated.chatOptions(org.springframework.ai.chat.prompt.ChatOptions chatOptions) customObservationConvention(org.springframework.ai.chat.client.observation.ChatClientObservationConvention customObservationConvention) description(String description) enableLogging(boolean enableLogging) includeContents(boolean includeContents) inputSchema(String inputSchema) instruction(String instruction) interceptors(Interceptor... interceptors) interceptors(List<? extends Interceptor> interceptors) model(org.springframework.ai.chat.model.ChatModel model) observationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) outputKeyStrategy(KeyStrategy outputKeyStrategy) outputSchema(String outputSchema) outputType(Class<?> outputType) releaseThread(boolean releaseThread) resolver(org.springframework.ai.tool.resolution.ToolCallbackResolver resolver) returnReasoningContents(boolean returnReasoningContents) saver(BaseCheckpointSaver saver) systemPrompt(String systemPrompt) tools(org.springframework.ai.tool.ToolCallback... tools)
-
Field Details
-
name
-
description
-
instruction
-
systemPrompt
-
model
protected org.springframework.ai.chat.model.ChatModel model -
chatOptions
protected org.springframework.ai.chat.prompt.ChatOptions chatOptions -
chatClient
protected org.springframework.ai.chat.client.ChatClient chatClient -
tools
-
resolver
protected org.springframework.ai.tool.resolution.ToolCallbackResolver resolver -
releaseThread
protected boolean releaseThread -
saver
-
hooks
-
interceptors
-
modelInterceptors
-
toolInterceptors
-
includeContents
protected boolean includeContents -
returnReasoningContents
protected boolean returnReasoningContents -
outputKey
-
outputKeyStrategy
-
inputSchema
-
inputType
-
outputSchema
-
outputType
-
observationRegistry
protected io.micrometer.observation.ObservationRegistry observationRegistry -
customObservationConvention
protected org.springframework.ai.chat.client.observation.ChatClientObservationConvention customObservationConvention -
enableLogging
protected boolean enableLogging
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
-
chatClient
Deprecated. -
model
-
chatOptions
-
tools
-
tools
-
resolver
-
releaseThread
-
saver
-
description
-
instruction
-
systemPrompt
-
outputKey
-
outputKeyStrategy
-
inputSchema
-
inputType
-
outputSchema
-
outputType
-
includeContents
-
returnReasoningContents
-
hooks
-
hooks
-
interceptors
-
interceptors
-
observationRegistry
public Builder observationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) -
customObservationConvention
public Builder customObservationConvention(org.springframework.ai.chat.client.observation.ChatClientObservationConvention customObservationConvention) -
enableLogging
-
buildConfig
-
build
-