AutoTweaker API
Toggle table of contents
0.2.0-alpha.8+8e62d10a
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
AutoTweaker API
AutoTweaker API
/
io.github.autotweaker.api.types.agent
/
AgentMessage
/
User
User
jvm
@
Serializable
data
class
User
(
val
id
:
UUID
,
val
timestamp
:
Instant
,
val
origin
:
Set
<
@
Serializable
(
with
=
UuidSerializer::class
)
UUID
>
,
val
content
:
MessageContent
)
:
AgentMessage
(
source
)
表示一条用户消息。
Members
Members & Extensions
Constructors
User
Link copied to clipboard
jvm
constructor
(
id
:
UUID
,
timestamp
:
Instant
,
origin
:
Set
<
@
Serializable
(
with
=
UuidSerializer::class
)
UUID
>
,
content
:
MessageContent
)
Properties
content
Link copied to clipboard
jvm
val
content
:
MessageContent
用户消息的内容,也可能包含系统注入。
id
Link copied to clipboard
jvm
@
Serializable
(
with
=
UuidSerializer::class
)
open
override
val
id
:
UUID
消息 id,每种消息都有。
origin
Link copied to clipboard
jvm
open
override
val
origin
:
Set
<
@
Serializable
(
with
=
UuidSerializer::class
)
UUID
>
包含这条消息的 agent id,适用于从一条消息反查所属会话。
timestamp
Link copied to clipboard
jvm
open
override
val
timestamp
:
Instant
消息时间戳,每种消息都有。
Functions
content
Link copied to clipboard
jvm
fun
AgentMessage
.
content
(
)
:
String
?