sholloway / agents-playground

MIT License
4 stars 0 forks source link

Agent Attention System #85

Open sholloway opened 1 year ago

sholloway commented 1 year ago

Summary

A key function of attention is to identify irrelevant data and filter it out, enabling significant data to be distributed to the other mental processes.

Responsible for spinning up cognitive processes (CP). Each frame ticks away at each cognitive process. A CP can have a fixed time to live that could expire if certain things don't happen or are interrupted (like an injury).

Tasks

Cognitive Work

Thinking takes time. Each type of thought should have a minimum # of frames the cognitive work requires.

class AgentCognitiveProcess(Protocol):
  ticks: int # The number of frames this work requires. 

TARGET_FPS = 60 FPS
FRAME = 1/TARGET_FPS
MILLISECOND = 1
SECOND = 1000 * MILLISECOND
MINUTE = 60 * SECOND
Type Duration Examples
Thought TARGET_FPS FRAME 1 Inner monologue. "I wonder what Sally is up to.", "I'm bored."
Imagination TARGET_FPS SECOND 2 Sees themselves in another scenario. (e.g. Married, dating, on and adventure, in space)
Judgement TARGET_FPS SECOND 10 They decide how they feel about an event or person.
Evaluation TARGET_FPS SECOND 5 Comparison of multiple options.
Reasoning TARGET_FPS SECOND 5
Computation TARGET_FPS SECOND 10
ProblemSolving TARGET_FPS SECOND 10
DecisionMaking TARGET_FPS SECOND 30 Given a choice, making a decision.
Comprehension TARGET_FPS * MINUTE
Speaking TARGET_FPS SECOND 30 Speaking to another Agent or the 4th wall, speaking to itself
Writing TARGET_FPS MINUTE 2 Journaling, Writing to communicate, writing for work
FormationOfKnowledge TARGET_FPS MINUTE 5 Learning a new skill

What can stimulate cognitive thought?

The Attention System's inputs are:

Of the agent's memory (sensory, working, long-term), the attention system sorts through the sensory memory and based on that queues up new cognitive tasks.

Simulation Demo

Create a simulation that demonstrates cognitive processing orchestrated by an agent's attention system.