You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The content of this payload is job_list: List[str] and it's property casts to string job_list(self) -> str. This was for done out of convenience since lists are not serializable at the moment. However, the __init__ and property return should be of the same type
Note that - in case of WORKABLE and NOT_PROFITABLE the job should also be removed from the list. It is probably smarter to:
set current_job to an empty string or None in GetJobsRound (and set job_list as we do now)
remove a job from the list when selecting it first during JobSelection, which should lead to a situation where the current_job is never among the job_list
P.S.
leaving a reference to this comment to be addressed as well: #106 (comment)
The text was updated successfully, but these errors were encountered:
The content of this payload is
job_list: List[str]
and it's property casts to stringjob_list(self) -> str
. This was for done out of convenience since lists are not serializable at the moment. However, the__init__
and property return should be of the same typeagent-academy-2/packages/keep3r_co/skills/keep3r_job/payloads.py
Lines 174 to 193 in 89ba928
This can easily lead to issues, such as here:
selection behaviour treating it as
List[str]
stillagent-academy-2/packages/keep3r_co/skills/keep3r_job/behaviours.py
Lines 425 to 452 in 7760ddc
IsWorkableRound
updating the shared state changes what was originally aList[str]
into astr
when not workableagent-academy-2/packages/keep3r_co/skills/keep3r_job/rounds.py
Lines 262 to 266 in 7760ddc
Note that - in case of
WORKABLE
andNOT_PROFITABLE
the job should also be removed from the list. It is probably smarter to:current_job
to an empty string orNone
inGetJobsRound
(and setjob_list
as we do now)JobSelection
, which should lead to a situation where thecurrent_job
is never among thejob_list
P.S.
leaving a reference to this comment to be addressed as well: #106 (comment)
The text was updated successfully, but these errors were encountered: