Class ScriptedChatModel.Answer
java.lang.Object
io.micronaut.langchain4j.test.ScriptedChatModel.Answer
- Enclosing class:
ScriptedChatModel
The answer of a rule.
- Since:
- 2.4.0
-
Method Summary
Modifier and TypeMethodDescription
-
Method Details
-
respond
- Parameters:
response- The text of the response- Returns:
- The builder
-
respond
public ScriptedChatModel.Builder respond(Function<dev.langchain4j.model.chat.request.ChatRequest, String> response) - Parameters:
response- The text of the response, from the request- Returns:
- The builder
-
callTool
- Parameters:
toolName- The name of the tool to executearguments- The arguments of the tool, as JSON- Returns:
- The builder
-