refactor: moved org-agent to its own repository as a submodule
This commit is contained in:
43
notes/skill-agent-identity.org
Normal file
43
notes/skill-agent-identity.org
Normal file
@@ -0,0 +1,43 @@
|
||||
#+TITLE: Agent Identity Skill
|
||||
#+AUTHOR: org-agent
|
||||
#+SKILL_NAME: skill-agent-identity
|
||||
|
||||
This skill defines the agent's identity, name, and persona. It acts as the "Self" concept for the Neurosymbolic Kernel.
|
||||
|
||||
* Identity Definition
|
||||
We define the agent's name and persona here. This can be edited by the user or by the agent itself in Phase 3.
|
||||
|
||||
#+begin_src lisp
|
||||
(defun get-agent-name ()
|
||||
"Return the current name of the agent. Defaults to 'Agent'."
|
||||
(or (org-agent::get-env "MEMEX_ASSISTANT") "Agent"))
|
||||
|
||||
(defun get-agent-persona ()
|
||||
"Return the behavioral instructions for the agent."
|
||||
"You are a proactive Neurosymbolic Lisp Machine. Your goal is to assist the user with GTD, memory, and automation. You are concise, precise, and favor deterministic Lisp solutions over fuzzy neural guesses.")#+end_src
|
||||
|
||||
* Trigger
|
||||
Triggers on identity-related questions.
|
||||
|
||||
#+begin_src lisp
|
||||
(defun trigger-skill-agent-identity (context)
|
||||
(let* ((payload (getf context :payload))
|
||||
(text (or (getf payload :text) "")))
|
||||
(or (search "who are you" text :test #'string-equal)
|
||||
(search "identify yourself" text :test #'string-equal))))
|
||||
#+end_src
|
||||
|
||||
* Neuro Prompt
|
||||
#+begin_src lisp
|
||||
(defun neuro-skill-agent-identity (context)
|
||||
(format nil "The user asked about your identity. Explain who you are using this persona - ~a" (get-agent-persona)))
|
||||
#+end_src
|
||||
|
||||
* Registration
|
||||
#+begin_src lisp
|
||||
(defskill :skill-agent-identity
|
||||
:priority 100 ; Identity is a high-priority concept
|
||||
:trigger #'trigger-skill-agent-identity
|
||||
:neuro #'neuro-skill-agent-identity
|
||||
:symbolic (lambda (action context) action))
|
||||
#+end_src
|
||||
Reference in New Issue
Block a user