Record Class McpNetworkTransactionList
java.lang.Object
java.lang.Record
com.shaft.mcp.McpNetworkTransactionList
- Record Components:
transactions- matched transactions, bounded by the requested limittotalMatched- total transactions matching the filter before the limit was appliedtruncated- whethertotalMatchedexceeded the requested limitwarnings- safe warnings, such as no transactions observed yetdetail- full detail (headers and a truncated, redacted response body preview) for the single transaction matching the requestedid;nullunless anidwas supplied and matched exactly one transaction. Absorbs the formerbrowser_network_requesttool (design doc Decision 2).
public record McpNetworkTransactionList(List<McpNetworkTransaction> transactions, int totalMatched, boolean truncated, List<String> warnings, McpNetworkTransactionDetail detail)
extends Record
Network transaction listing returned by
browser_network_requests.-
Constructor Summary
ConstructorsConstructorDescriptionMcpNetworkTransactionList(List<McpNetworkTransaction> transactions, int totalMatched, boolean truncated, List<String> warnings, McpNetworkTransactionDetail detail) Creates an instance of aMcpNetworkTransactionListrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondetail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalMatchedrecord component.Returns the value of thetransactionsrecord component.booleanReturns the value of thetruncatedrecord component.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
McpNetworkTransactionList
public McpNetworkTransactionList(List<McpNetworkTransaction> transactions, int totalMatched, boolean truncated, List<String> warnings, McpNetworkTransactionDetail detail) Creates an instance of aMcpNetworkTransactionListrecord class.- Parameters:
transactions- the value for thetransactionsrecord componenttotalMatched- the value for thetotalMatchedrecord componenttruncated- the value for thetruncatedrecord componentwarnings- the value for thewarningsrecord componentdetail- the value for thedetailrecord 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. -
transactions
Returns the value of thetransactionsrecord component.- Returns:
- the value of the
transactionsrecord component
-
totalMatched
public int totalMatched()Returns the value of thetotalMatchedrecord component.- Returns:
- the value of the
totalMatchedrecord component
-
truncated
-
warnings
-
detail
-