Update README.md
This commit is contained in:
54
README.md
54
README.md
@@ -132,14 +132,14 @@ The agent has access to the following tools:
|
|||||||
### Interactive CLI
|
### Interactive CLI
|
||||||
|
|
||||||
```
|
```
|
||||||
ââââââââââââââââââââââââââââââââââââââââ
|
────────────────────────────────────────
|
||||||
⯠what files are here?
|
❯ what files are here?
|
||||||
ââââââââââââââââââââââââââââââââââââââââ
|
────────────────────────────────────────
|
||||||
|
|
||||||
⺠Thinking...
|
⏺ Thinking...
|
||||||
⺠globfiles(pattern='**/*', path='.')
|
⏺ globfiles(pattern='**/*', path='.')
|
||||||
|
|
||||||
⺠I found the following files:
|
⏺ I found the following files:
|
||||||
- nanocode.py
|
- nanocode.py
|
||||||
- README.md
|
- README.md
|
||||||
- modaic/SKILL.md
|
- modaic/SKILL.md
|
||||||
@@ -171,29 +171,25 @@ print(result.answer)
|
|||||||
|
|
||||||
### Overview
|
### Overview
|
||||||
|
|
||||||
```
|
```python
|
||||||
nanocode.py
|
class RLMCodingProgram(PrecompiledProgram):
|
||||||
âââ File Operations
|
config: RLMCodingConfig
|
||||||
â âââ read_file() - Read with line numbers
|
|
||||||
â âââ write_file() - Write content
|
def forward(self, task: str) -> dspy.Prediction:
|
||||||
â âââ edit_file() - Find & replace
|
# Returns prediction with .answer
|
||||||
âââ Search Operations
|
return self.agent(task=task)
|
||||||
â âââ glob_files() - Pattern matching
|
|
||||||
â âââ grep_files() - Regex search
|
def get_tools(self) -> dict:
|
||||||
âââ Shell Operations
|
# Returns dict of available tools
|
||||||
â âââ run_bash() - Execute commands
|
|
||||||
âââ DSPy Components
|
def set_tool(self, name: str, tool: callable):
|
||||||
â âââ CodingAssistant (Signature)
|
# Add or replace a tool
|
||||||
â âââ RLMCodingProgram (PrecompiledProgram)
|
|
||||||
â â âââ forward() - Run agent on task
|
def remove_tool(self, name: str):
|
||||||
â â âââ get_tools() - Get available tools
|
# Remove a tool by name
|
||||||
â â âââ set_tool() - Add/replace a tool
|
|
||||||
â â âââ remove_tool() - Remove a tool
|
def reload_lms(self):
|
||||||
â â âââ reload_lms() - Recreate LMs from config
|
# Recreate LM objects from current config
|
||||||
â â âââ load_state() - Load state with LM fix
|
|
||||||
â âââ RLMReasoningCallback
|
|
||||||
âââ Modaic Integration
|
|
||||||
âââ RLMCodingConfig (PrecompiledConfig)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Key Classes
|
### Key Classes
|
||||||
|
|||||||
Reference in New Issue
Block a user