rea-agents - v2.0.0
Preparing search index...
hopper/protocol
responseResult
Function responseResult
responseResult
(
response
:
|
{
id
:
number
;
result
:
JSONType
}
|
{
error
:
{
code
:
number
;
message
:
string
;
type
:
|
"authorization"
|
"remote"
|
"analysis_in_progress"
|
"invalid_request"
|
"bridge_exception"
;
}
;
id
:
number
;
}
,
)
:
Result
<
JSONType
,
HopperRemoteError
>
Project a parsed response into its result or expected remote failure.
Parameters
response
:
|
{
id
:
number
;
result
:
JSONType
}
|
{
error
:
{
code
:
number
;
message
:
string
;
type
:
|
"authorization"
|
"remote"
|
"analysis_in_progress"
|
"invalid_request"
|
"bridge_exception"
;
}
;
id
:
number
;
}
Returns
Result
<
JSONType
,
HopperRemoteError
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
rea-agents - v2.0.0
Loading...
Project a parsed response into its result or expected remote failure.