Class ToolResponded
java.lang.Object
org.openqa.selenium.devtools.v148.webmcp.model.ToolResponded
Event fired when a tool invocation completes or fails.
-
Constructor Summary
ConstructorsConstructorDescriptionToolResponded(String invocationId, InvocationStatus status, Optional<Object> output, Optional<String> errorText, Optional<RemoteObject> exception) -
Method Summary
Modifier and TypeMethodDescriptionError text for protocol users.The exception object, if the javascript tool threw an error>Invocation identifier.Output or error delivered as delivered to the agent.Status of the invocation.
-
Constructor Details
-
ToolResponded
public ToolResponded(String invocationId, InvocationStatus status, Optional<Object> output, Optional<String> errorText, Optional<RemoteObject> exception)
-
-
Method Details
-
getInvocationId
Invocation identifier. -
getStatus
Status of the invocation. -
getOutput
Output or error delivered as delivered to the agent. Missing if `status` is anything other than Success. -
getErrorText
Error text for protocol users. -
getException
The exception object, if the javascript tool threw an error>
-