Begin work on context template

This commit is contained in:
Niels Geens
2024-10-25 16:30:11 +02:00
parent 016187fa21
commit b72490796e
6 changed files with 110 additions and 23 deletions

View File

@@ -116,7 +116,7 @@ An overview of the key components and their interactions.
### Modules
Modules execute core commands and provide data for the main context.
Modules execute core commands and provide data for the context template.
- Process Module
- standard I/O operations
@@ -134,15 +134,11 @@ Modules execute core commands and provide data for the main context.
The Agent Core runs the SIA main loop.
- request main context from the Context Manager
- template the context
- run the LLM
- parse the LLM output
- execute the appropriate actions using the relevant modules
### Context Template
The Context Template collects information from the modules and creates the input for the LLM.
### LLM Engine
The LLM Engine is responsible for:
@@ -173,6 +169,12 @@ It also simplifies escaping of command line arguments.
Action results are added in the context as text nodes after the last parameter.
### Context Template
A Handlerbars template is used to create the context for the LLM.
A ContextTemplate object is created for each iteration of the main loop.
The template is filled with data by the Agent Core.
### Training datasets
A training dataset is a folder with these files: