Record Class McpActionResponse
java.lang.Object
java.lang.Record
fr.tiogars.chat.domains.mcp.models.McpActionResponse
-
Constructor Summary
ConstructorsConstructorDescriptionMcpActionResponse(boolean success, Map<String, Object> data, List<McpResource> resources, String error, long processingTimeMs) Creates an instance of aMcpActionResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theprocessingTimeMsrecord component.Returns the value of theresourcesrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpActionResponse
public McpActionResponse(boolean success, Map<String, Object> data, List<McpResource> resources, String error, long processingTimeMs) Creates an instance of aMcpActionResponserecord class.- Parameters:
success- the value for thesuccessrecord componentdata- the value for thedatarecord componentresources- the value for theresourcesrecord componenterror- the value for theerrorrecord componentprocessingTimeMs- the value for theprocessingTimeMsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
data
-
resources
Returns the value of theresourcesrecord component.- Returns:
- the value of the
resourcesrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
processingTimeMs
public long processingTimeMs()Returns the value of theprocessingTimeMsrecord component.- Returns:
- the value of the
processingTimeMsrecord component
-