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