toggle menu
Embabel Agent Documentation
JVM
switch theme
search in API
Embabel Agent Documentation
/
com.embabel.agent.api.common.workflow.loop
/
AttemptHistory
Attempt
History
data
class
AttemptHistory
<
RESULT
:
Any
,
FEEDBACK
:
Feedback
>
(
_attempts
:
MutableList
<
Attempt
<
RESULT
,
FEEDBACK
>
>
=
mutableListOf()
,
lastResult
:
RESULT
?
=
null
,
val
timestamp
:
Instant
=
Instant.now()
)
Mutable object. We only bind this once
Members
Constructors
Attempt
History
Link copied to clipboard
constructor
(
_attempts
:
MutableList
<
Attempt
<
RESULT
,
FEEDBACK
>
>
=
mutableListOf()
,
lastResult
:
RESULT
?
=
null
,
timestamp
:
Instant
=
Instant.now()
)
Properties
running
Time
Link copied to clipboard
open
val
runningTime
:
Duration
timestamp
Link copied to clipboard
open
val
timestamp
:
Instant
Functions
attempt
Count
Link copied to clipboard
fun
attemptCount
(
)
:
Int
attempts
Link copied to clipboard
fun
attempts
(
)
:
List
<
Attempt
<
RESULT
,
FEEDBACK
>
>
best
So
Far
Link copied to clipboard
fun
bestSoFar
(
)
:
Attempt
<
RESULT
,
FEEDBACK
>
?
last
Attempt
Link copied to clipboard
fun
lastAttempt
(
)
:
Attempt
<
RESULT
,
FEEDBACK
>
?
last
Feedback
Link copied to clipboard
fun
lastFeedback
(
)
:
FEEDBACK
?
result
To
Evaluate
Link copied to clipboard
fun
resultToEvaluate
(
)
:
RESULT
?
Evaluator can use this to access the last result.