Preparing search index...
The search index is not available
@synapse/client-sdk
@synapse/client-sdk
AIMethodResult
Interface AIMethodResult<T>
Result type for AI agent methods, including metadata and context.
Since
2.0.0
interface
AIMethodResult
<
T
>
{
context
:
{
requestId
:
string
;
sessionId
:
string
;
timestamp
:
number
;
}
;
data
:
T
;
metadata
:
{
cached
:
boolean
;
commitment
?:
Commitment
;
duration
:
number
;
method
:
string
;
slot
?:
number
;
upstream
:
string
;
}
;
}
Type Parameters
T
=
any
Index
Properties
context
data
metadata
Properties
context
context
:
{
requestId
:
string
;
sessionId
:
string
;
timestamp
:
number
;
}
data
data
:
T
metadata
metadata
:
{
cached
:
boolean
;
commitment
?:
Commitment
;
duration
:
number
;
method
:
string
;
slot
?:
number
;
upstream
:
string
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
context
data
metadata
@synapse/client-sdk
Loading...
Result type for AI agent methods, including metadata and context.
Since
2.0.0