Added first procedures
This commit is contained in:
12
README.md
12
README.md
@@ -74,7 +74,7 @@ Start by reasoning about the task.
|
||||
|
||||
Store important information on disk.
|
||||
```xml
|
||||
<script><![CDATA[echo 'Remind John to feed the cat on 2024-10-18T09:00:00+02:00. Use standard output.' > /tasks/reminder_to_feed_cat.txt]]></script>
|
||||
<single><![CDATA[echo 'Remind John to feed the cat on 2024-10-18T09:00:00+02:00. Use standard output.' > /tasks/reminder_to_feed_cat.txt]]></single>
|
||||
```
|
||||
|
||||
Respond to the user.
|
||||
@@ -90,7 +90,7 @@ Clear initial reasoning.
|
||||
The conversation is kept in context to understand the user's expected response.
|
||||
If the context was near full, it would be summarized and cleaned up.
|
||||
|
||||
The `script` output is also kept in context.
|
||||
The `single` output is also kept in context.
|
||||
If the file was updated often, it could be replaced by a repeated `cat`, like the general info.
|
||||
|
||||
## Working principles
|
||||
@@ -196,7 +196,7 @@ Both agent types share common components:
|
||||
|
||||
#### Working Memory
|
||||
The working memory stores the current state of the system through different types of entries:
|
||||
- Script Entries: Results of script executions
|
||||
- SingleEntries: Output of single-shot script executions
|
||||
- RepeatEntry: Continuously refreshed script outputs
|
||||
- ReasoningEntry: LLM's thought process documentation
|
||||
- ParseErrorEntry: XML validation or parsing errors
|
||||
@@ -514,13 +514,13 @@ classDiagram
|
||||
+cleanup() void*
|
||||
}
|
||||
|
||||
class ScriptEntry {
|
||||
class SingleEntry {
|
||||
+script: str readonly
|
||||
+stdout: str readonly
|
||||
+stderr: str readonly
|
||||
+exit_code: Optional~int~ readonly
|
||||
|
||||
+Script(script str, id str, timestamp datetime)
|
||||
+Single(script str, id str, timestamp datetime)
|
||||
+update() void
|
||||
+generate_context() ElementTree
|
||||
}
|
||||
@@ -573,7 +573,7 @@ classDiagram
|
||||
ParseErrorEntry --|> Entry
|
||||
ReadEntry --|> Entry
|
||||
Entry <|-- WriteEntry
|
||||
Entry <|-- ScriptEntry
|
||||
Entry <|-- SingleEntry
|
||||
Entry <|-- RepeatEntry
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user