aboutsummaryrefslogtreecommitdiff
path: root/mcp
diff options
context:
space:
mode:
authorGuillermo Serrahima <dev@vylion.com>2026-06-26 14:39:23 +0200
committerGuillermo Serrahima <dev@vylion.com>2026-06-26 14:39:23 +0200
commit963f59569437fe43a49ce36a003a143fa2f767c8 (patch)
tree968b0dad13193536770ae1e6b580b27e22f9366b /mcp
parent741a04c2abcbd77451c0933a19d91fddb9982882 (diff)
downloadsenia-963f59569437fe43a49ce36a003a143fa2f767c8.tar.xz
senia-963f59569437fe43a49ce36a003a143fa2f767c8.zip
created custom agent loop
Diffstat (limited to 'mcp')
-rw-r--r--mcp/senia/server.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mcp/senia/server.py b/mcp/senia/server.py
index e009301..b48faa2 100644
--- a/mcp/senia/server.py
+++ b/mcp/senia/server.py
@@ -2,7 +2,7 @@
"""Sénia MCP server: shared registration point for all senia tools.
Tools are implemented in their respective submodules and re-exported via
-the package __init__. This file is intentionally thin — it only handles
+the package __init__. This file is intentionally thin: it only handles
registration and startup.
"""
@@ -22,7 +22,7 @@ def diary_log(content: str) -> dict:
Use generously throughout a conversation: things the user mentioned, decisions
made, patterns you noticed, your own reactions. Keep entries short (one or two
- sentences) — granular is fine, you can write many. These become the raw material
+ sentences): granular is fine, you can write many. These become the raw material
for daily reflection and longer-term memory.
Args:
@@ -64,7 +64,7 @@ def tasks_add(owner: str, content: str, due_at: str | None = None,
"""Create a live task.
owner determines handling:
- - "agent": something you can work on autonomously — pick it up, do it, then complete it.
+ - "agent": something you can work on autonomously; pick it up, do it, then complete it.
- "user": something only the user can do (appointments, errands, calls). You cannot
finish these yourself; your job is to gently remind the user until they confirm done.
@@ -134,7 +134,7 @@ def tasks_cancel(task_id: int, context: str) -> dict:
def tasks_nudged(task_id: int) -> dict:
"""Record that you've just reminded the user about a (user-owned) task, updating its
last_nudged_at. Call immediately after nudging, so you can throttle reminders. Check
- last_nudged_at before nudging again — re-nudge more often as the deadline approaches,
+ last_nudged_at before nudging again; re-nudge more often as the deadline approaches,
sparingly for distant or undated tasks."""
return tasks.record_nudge(task_id)