AI-Mocks
Toggle table of contents
0.8.1-SNAPSHOT
common
Target filter
common
Switch theme
Search in API
Skip to content
AI-Mocks
ai-mocks-a2a-models
/
dev.mokksy.aimocks.a2a.model
/
JSONRPCRequest
JSONRPCRequest
common
@
Serializable
open
class
JSONRPCRequest
<
T
>
(
val
jsonrpc
:
String
=
"2.0"
,
val
id
:
RequestId
?
=
null
,
val
method
:
String
,
val
params
:
T
?
=
null
)
(
source
)
Members
Constructors
JSONRPCRequest
Link copied to clipboard
common
constructor
(
jsonrpc
:
String
=
"2.0"
,
id
:
RequestId
?
=
null
,
method
:
String
,
params
:
T
?
=
null
)
constructor
(
method
:
String
,
id
:
RequestId
?
=
null
,
params
:
T
?
=
null
)
Properties
id
Link copied to clipboard
common
@
SerialName
(
value
=
"id"
)
@
Serializable
(
with
=
RequestIdSerializer::class
)
open
val
id
:
RequestId
?
jsonrpc
Link copied to clipboard
common
@
SerialName
(
value
=
"jsonrpc"
)
@
EncodeDefault
val
jsonrpc
:
String
method
Link copied to clipboard
common
@
SerialName
(
value
=
"method"
)
val
method
:
String
params
Link copied to clipboard
common
@
SerialName
(
value
=
"params"
)
open
val
params
:
T
?