Class ChatModelCall
java.lang.Object
dev.langchain4j.test.service.ModelCall
dev.langchain4j.test.service.ChatModelCall
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisOwn()Returns whether the AI Service made this call itself, to its own chat model (seeAiServiceInvocation.ownChatModelCalls()), rather than a component it runs.request()Returns the request sent to the chat model.response()Returns the response of the chat model, ornullif the call failed or had not ended when the invocation finished.toString()Methods inherited from class ModelCall
error, hasFailed, modelProvider
-
Method Details
-
request
Returns the request sent to the chat model. -
response
Returns the response of the chat model, ornullif the call failed or had not ended when the invocation finished. -
isOwn
public boolean isOwn()Returns whether the AI Service made this call itself, to its own chat model (seeAiServiceInvocation.ownChatModelCalls()), rather than a component it runs. A call that returned a response is the AI Service's own when the AI Service received that response. A call that failed is the AI Service's own when the AI Service sent a request with the same messages: in the rare case where a component sends exactly the same messages to a chat model and that call fails, it is also reported as the AI Service's own. -
toString
-