Class ModelRequest
java.lang.Object
com.alibaba.cloud.ai.graph.agent.interceptor.ModelRequest
Request object for model calls.
Contains all information needed to make a model invocation.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionModelRequest(org.springframework.ai.chat.messages.SystemMessage systemMessage, List<org.springframework.ai.chat.messages.Message> messages, org.springframework.ai.model.tool.ToolCallingChatOptions options, List<String> tools, List<org.springframework.ai.tool.ToolCallback> dynamicToolCallbacks, Map<String, String> toolDescriptions, Map<String, Object> context) -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelRequest.Builderbuilder()static ModelRequest.Builderbuilder(ModelRequest request) List<org.springframework.ai.tool.ToolCallback>List<org.springframework.ai.chat.messages.Message>org.springframework.ai.model.tool.ToolCallingChatOptionsorg.springframework.ai.chat.messages.SystemMessagegetTools()
-
Constructor Details
-
ModelRequest
public ModelRequest(org.springframework.ai.chat.messages.SystemMessage systemMessage, List<org.springframework.ai.chat.messages.Message> messages, org.springframework.ai.model.tool.ToolCallingChatOptions options, List<String> tools, List<org.springframework.ai.tool.ToolCallback> dynamicToolCallbacks, Map<String, String> toolDescriptions, Map<String, Object> context)
-
-
Method Details
-
builder
-
builder
-
getMessages
-
getSystemMessage
public org.springframework.ai.chat.messages.SystemMessage getSystemMessage() -
getOptions
public org.springframework.ai.model.tool.ToolCallingChatOptions getOptions() -
getTools
-
getDynamicToolCallbacks
-
getToolDescriptions
-
getContext
-