AI Elements for Kotlin
Toggle table of contents
Android
Target filter
Android
Switch theme
Search in API
Skip to content
AI Elements for Kotlin
harness-scheduler
/
dev.ai.elements.harness.scheduler
/
ScheduledTask
Scheduled
Task
@
Serializable
data
class
ScheduledTask
(
val
id
:
String
,
val
title
:
String
,
val
prompt
:
String
,
val
firstRunAt
:
String
,
val
everyMinutes
:
Int
?
=
null
,
val
lastRunAt
:
String
?
=
null
,
val
lastResult
:
String
?
=
null
,
val
lastError
:
String
?
=
null
)
(
source
)
A prompt the agent runs later;
everyMinutes
null runs it once. Times are ISO 8601 instants.
Members
Constructors
Scheduled
Task
Link copied to clipboard
constructor
(
id
:
String
,
title
:
String
,
prompt
:
String
,
firstRunAt
:
String
,
everyMinutes
:
Int
?
=
null
,
lastRunAt
:
String
?
=
null
,
lastResult
:
String
?
=
null
,
lastError
:
String
?
=
null
)
Properties
every
Minutes
Link copied to clipboard
val
everyMinutes
:
Int
?
first
Run
At
Link copied to clipboard
val
firstRunAt
:
String
id
Link copied to clipboard
val
id
:
String
last
Error
Link copied to clipboard
val
lastError
:
String
?
last
Result
Link copied to clipboard
val
lastResult
:
String
?
last
Run
At
Link copied to clipboard
val
lastRunAt
:
String
?
prompt
Link copied to clipboard
val
prompt
:
String
title
Link copied to clipboard
val
title
:
String