AI development/GitHub/Framework
SimpleLLMFunc
by NiJingzhe·Last observed 2026-10-27
★ 78 stars⑂ 5 forks
SimpleLLMFunc is a Python framework that makes LLM calls resemble typed Python functions, with docstrings serving as system prompts. Its chat decorator supports multi-turn history, streaming, tools and self-reference; a ReAct runtime collects tool results and context mutations, then applies those mutations at a compile boundary. A coding-agent example combines a persistent REPL, file tools and context compaction.
Useful for
- Build a local coding agent with a persistent REPL and workspace-scoped file tools, following the documented 30-line example.
Key features
- The typed-function decorator can return Pydantic models, primitives, dictionaries or lists; the chat decorator supports multi-turn history, streaming and tool calls.
- SelfRef can remember or forget durable experience, compact a working transcript, and spawn a child agent with an inherited context snapshot.
Requirements & limitations
- Installation uses pip install SimpleLLMFunc; the documented initial configuration copies env_template to .env and configures API keys there.
Discussion
No comments yet.
Sign in with Google to comment. Browsing is open to everyone.