security agent cleanup
This commit is contained in:
@@ -4,5 +4,5 @@ def ask_question(question: str) -> str:
|
||||
try:
|
||||
answer = input(" Your answer: ").strip()
|
||||
except EOFError:
|
||||
return "(no answer — EOF)"
|
||||
return "(no answer, EOF)"
|
||||
return answer if answer else "(no answer provided)"
|
||||
|
||||
@@ -265,7 +265,7 @@ def get_tool_schemas():
|
||||
"and cannot reasonably infer it from context. "
|
||||
"Ask one focused question at a time. "
|
||||
"Do not use this for progress updates or to confirm actions you can already "
|
||||
"take — only ask when you are genuinely blocked."
|
||||
"take, only ask when you are genuinely blocked."
|
||||
),
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
|
||||
@@ -102,7 +102,7 @@ def todo_update(id, content=None, status=None) -> str:
|
||||
if item["status"] == "in_progress" and retries > 0:
|
||||
if retries >= RETRY_LIMIT:
|
||||
return (
|
||||
f"Updated to do item {id} to in_progress — "
|
||||
f"Updated to do item {id} to in_progress, "
|
||||
f"but this is retry {retries} of {
|
||||
RETRY_LIMIT} (retry limit reached). "
|
||||
f"Do not retry again. Escalate to the user instead."
|
||||
|
||||
Reference in New Issue
Block a user