forked from retoor/devplacepy
Update
This commit is contained in:
@@ -150,6 +150,34 @@ AGENTIC_ACTIONS: tuple[Action, ...] = (
|
||||
),
|
||||
),
|
||||
),
|
||||
Action(
|
||||
name="lesson_rate",
|
||||
method="LOCAL",
|
||||
path="",
|
||||
summary="Vote on a lesson's quality to help the system keep the best ones and drop bad ones",
|
||||
description=(
|
||||
"Rate a lesson recorded by reflect(). A positive vote (1) marks it as useful; "
|
||||
"a negative vote (-1) marks it as unhelpful. Lessons with a cumulative rating of "
|
||||
"-3 or lower are excluded from recall() results. Use this when you notice a lesson "
|
||||
"was particularly helpful or misleading."
|
||||
),
|
||||
handler="agentic",
|
||||
requires_auth=False,
|
||||
params=(
|
||||
arg("uid", "The uid of the lesson to rate, from a recall() result.", required=True),
|
||||
arg("value", "1 for useful, -1 for unhelpful.", required=True, kind="integer"),
|
||||
),
|
||||
),
|
||||
Action(
|
||||
name="lesson_count",
|
||||
method="LOCAL",
|
||||
path="",
|
||||
summary="Report how many learned lessons are stored for this session or account",
|
||||
description="Returns the number of active lessons with an optional per-tag breakdown.",
|
||||
handler="agentic",
|
||||
requires_auth=False,
|
||||
params=(),
|
||||
),
|
||||
Action(
|
||||
name="eval",
|
||||
method="LOCAL",
|
||||
|
||||
Reference in New Issue
Block a user