llm_chain 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +51 -0
- data/README.md +516 -102
- data/examples/quick_demo.rb +93 -0
- data/examples/tools_example.rb +255 -0
- data/lib/llm_chain/chain.rb +24 -5
- data/lib/llm_chain/client_registry.rb +0 -1
- data/lib/llm_chain/clients/qwen.rb +13 -1
- data/lib/llm_chain/tools/base_tool.rb +81 -0
- data/lib/llm_chain/tools/calculator.rb +154 -0
- data/lib/llm_chain/tools/code_interpreter.rb +242 -0
- data/lib/llm_chain/tools/tool_manager.rb +204 -0
- data/lib/llm_chain/tools/web_search.rb +305 -0
- data/lib/llm_chain/version.rb +1 -1
- data/lib/llm_chain.rb +68 -18
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d2f08734c93afa3880316d14f129a90502e0f6d9094d939257a5bf0740b6754
|
4
|
+
data.tar.gz: a1f6665f3dd39c1401e54770e8fd23f10fba1b47195f88b461b2e76fe4a0212a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aebdbe64169f31b55ea55278103769acd71c4a8d786c1e84235abd9d2e6f271dcfe9eeba46796675c096a4bef3a34843a5f093dddf5964ad0fdfe974d18b2d79
|
7
|
+
data.tar.gz: 57f61024965d99528e8e0f56c60106af3168a408bc0f612b4c1fbca7ac79eeb46b564bee50f648128e34850268717f57362f96911b4be290a8a4288bcc548d83
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
|
+
|
8
|
+
## [Unreleased]
|
9
|
+
|
10
|
+
## [0.5.1] - 2025-06-26
|
11
|
+
|
12
|
+
### Added
|
13
|
+
- Quick chain creation method `LLMChain.quick_chain` for rapid setup
|
14
|
+
- Global configuration system with `LLMChain.configure`
|
15
|
+
- Google Search integration for accurate, up-to-date search results
|
16
|
+
- Fallback search data for common queries (Ruby versions, etc.)
|
17
|
+
- Production-ready output without debug noise
|
18
|
+
|
19
|
+
### Changed
|
20
|
+
- **BREAKING**: Replaced DuckDuckGo with Google as default search engine
|
21
|
+
- Web search now returns accurate results instead of outdated information
|
22
|
+
- Removed all debug output functionality for cleaner user experience
|
23
|
+
- Improved calculator expression parsing for better math evaluation
|
24
|
+
- Enhanced code interpreter to handle inline code prompts (e.g., "Execute code: puts ...")
|
25
|
+
|
26
|
+
### Fixed
|
27
|
+
- Calculator now correctly parses expressions like "50 / 2" instead of extracting just "2"
|
28
|
+
- Code interpreter properly extracts code from "Execute code: ..." format
|
29
|
+
- Web search HTTP 202 responses no longer treated as errors
|
30
|
+
- Removed excessive debug console output
|
31
|
+
|
32
|
+
## [0.5.0] - 2025-06-25
|
33
|
+
|
34
|
+
### Added
|
35
|
+
- Core tool system with automatic tool selection
|
36
|
+
- Calculator tool for mathematical expressions
|
37
|
+
- Web search tool with DuckDuckGo integration
|
38
|
+
- Code interpreter tool for Ruby code execution
|
39
|
+
- Multi-LLM support (OpenAI, Qwen, LLaMA2, Gemma)
|
40
|
+
- Memory system with Array and Redis backends
|
41
|
+
- RAG support with vector databases
|
42
|
+
- Streaming output support
|
43
|
+
- Comprehensive error handling
|
44
|
+
- Tool manager for organizing and managing tools
|
45
|
+
|
46
|
+
### Changed
|
47
|
+
- Initial stable release with core functionality
|
48
|
+
|
49
|
+
[Unreleased]: https://github.com/FuryCow/llm_chain/compare/v0.5.1...HEAD
|
50
|
+
[0.5.1]: https://github.com/FuryCow/llm_chain/compare/v0.5.0...v0.5.1
|
51
|
+
[0.5.0]: https://github.com/FuryCow/llm_chain/releases/tag/v0.5.0
|