feat: allow agents to use complex instructions and search for information
Some checks failed
Tests / test (macos-latest, 3.10) (push) Waiting to run
Tests / test (macos-latest, 3.11) (push) Waiting to run
Tests / test (macos-latest, 3.12) (push) Waiting to run
Tests / test (windows-latest, 3.10) (push) Waiting to run
Tests / test (windows-latest, 3.11) (push) Waiting to run
Tests / test (windows-latest, 3.12) (push) Waiting to run
Lint / lint (push) Failing after 26s
Tests / test (ubuntu-latest, 3.10) (push) Failing after 43s
Tests / test (ubuntu-latest, 3.11) (push) Failing after 41s
Tests / test (ubuntu-latest, 3.12) (push) Failing after 1m8s
Some checks failed
Tests / test (macos-latest, 3.10) (push) Waiting to run
Tests / test (macos-latest, 3.11) (push) Waiting to run
Tests / test (macos-latest, 3.12) (push) Waiting to run
Tests / test (windows-latest, 3.10) (push) Waiting to run
Tests / test (windows-latest, 3.11) (push) Waiting to run
Tests / test (windows-latest, 3.12) (push) Waiting to run
Lint / lint (push) Failing after 26s
Tests / test (ubuntu-latest, 3.10) (push) Failing after 43s
Tests / test (ubuntu-latest, 3.11) (push) Failing after 41s
Tests / test (ubuntu-latest, 3.12) (push) Failing after 1m8s
feat: save user messages to improve agent learning maintenance: update version to 1.31.0 refactor: use pathlib for context file path maintenance: use $(HOME) instead of /home/retoor/bin in Makefile
This commit is contained in:
parent
26b4797577
commit
b90ae1b9c3
@ -26,6 +26,14 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## Version 1.30.0 - 2025-11-08
|
||||
|
||||
Agents can now use more complex instructions and search for information to provide better responses. User messages are now saved to help agents learn and improve over time.
|
||||
|
||||
**Changes:** 4 files, 16 lines
|
||||
**Languages:** Markdown (8 lines), Python (6 lines), TOML (2 lines)
|
||||
|
||||
## Version 1.29.0 - 2025-11-08
|
||||
|
||||
|
||||
6
Makefile
6
Makefile
@ -72,9 +72,9 @@ serve:
|
||||
|
||||
|
||||
implode: build
|
||||
if [ -d /home/retoor/bin ]; then \
|
||||
python -m rp.implode rp.py -o /home/retoor/bin/rp; \
|
||||
chmod +x /home/retoor/bin/rp; \
|
||||
if [ -d $(HOME)/bin ]; then \
|
||||
python -m rp.implode rp.py -o $(HOME)/bin/rp; \
|
||||
chmod +x $(HOME)/bin/rp; \
|
||||
fi
|
||||
|
||||
.DEFAULT_GOAL := help
|
||||
|
||||
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "rp"
|
||||
version = "1.29.0"
|
||||
version = "1.30.0"
|
||||
description = "R python edition. The ultimate autonomous AI CLI."
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
|
||||
@ -1,17 +1,19 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
CONTEXT_FILE = "/home/retoor/.local/share/rp/.rcontext.txt"
|
||||
CONTEXT_FILE = Path.home() / ".local" / "share" / "rp" / ".rcontext.txt"
|
||||
|
||||
|
||||
def _read_context() -> str:
|
||||
if not os.path.exists(CONTEXT_FILE):
|
||||
if not CONTEXT_FILE.exists():
|
||||
raise FileNotFoundError(f"Context file {CONTEXT_FILE} not found.")
|
||||
with open(CONTEXT_FILE, "r") as f:
|
||||
return f.read()
|
||||
|
||||
|
||||
def _write_context(content: str):
|
||||
CONTEXT_FILE.parent.mkdir(parents=True, exist_ok=True)
|
||||
with open(CONTEXT_FILE, "w") as f:
|
||||
f.write(content)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user