llm.rb 13.0.0 → 13.1.0
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 +185 -14
- data/README.md +155 -30
- data/bin/llm.rb +124 -0
- data/lib/llm/agent.rb +78 -8
- data/lib/llm/function/array.rb +3 -3
- data/lib/llm/function.rb +1 -2
- data/lib/llm/providers/anthropic.rb +1 -1
- data/lib/llm/providers/bedrock/request_adapter.rb +1 -1
- data/lib/llm/providers/mistral.rb +1 -1
- data/lib/llm/providers/ollama.rb +1 -1
- data/lib/llm/providers/openai/responses.rb +1 -1
- data/lib/llm/providers/openai.rb +1 -1
- data/lib/llm/repl/{transcript.rb → buffer.rb} +34 -21
- data/lib/llm/repl/command.rb +12 -5
- data/lib/llm/repl/commands/compact.rb +2 -2
- data/lib/llm/repl/commands/help.rb +3 -5
- data/lib/llm/repl/markdown/table.rb +7 -3
- data/lib/llm/repl/markdown.rb +3 -3
- data/lib/llm/repl/node.rb +37 -0
- data/lib/llm/repl/status.rb +4 -4
- data/lib/llm/repl/stream.rb +2 -2
- data/lib/llm/repl/window.rb +31 -32
- data/lib/llm/repl.rb +56 -30
- data/lib/llm/skill.rb +20 -4
- data/lib/llm/tools/{swap_text.rb → edit-file.rb} +3 -3
- data/lib/llm/tools/git.rb +3 -0
- data/lib/llm/tools/mkdir.rb +3 -0
- data/lib/llm/tools/rg.rb +3 -0
- data/lib/llm/tools/ruby.rb +46 -0
- data/lib/llm/tools/shell.rb +3 -0
- data/lib/llm/tracer/pretty_logger.rb +127 -0
- data/lib/llm/tracer.rb +1 -0
- data/lib/llm/version.rb +1 -1
- data/llm.gemspec +8 -2
- data/resources/deepdive.md +45 -1785
- metadata +16 -5
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: llm.rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 13.
|
|
4
|
+
version: 13.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- robert
|
|
@@ -280,17 +280,19 @@ dependencies:
|
|
|
280
280
|
description: |
|
|
281
281
|
llm.rb is an advanced runtime for building capable AI applications
|
|
282
282
|
on CRuby. By default it has zero runtime dependencies although certain
|
|
283
|
-
functionality
|
|
283
|
+
functionality (such as ActiveRecord support) require
|
|
284
284
|
optional dependencies that are opt-in.
|
|
285
285
|
email:
|
|
286
286
|
- robert@r.uby.dev
|
|
287
|
-
executables:
|
|
287
|
+
executables:
|
|
288
|
+
- llm.rb
|
|
288
289
|
extensions: []
|
|
289
290
|
extra_rdoc_files: []
|
|
290
291
|
files:
|
|
291
292
|
- CHANGELOG.md
|
|
292
293
|
- LICENSE
|
|
293
294
|
- README.md
|
|
295
|
+
- bin/llm.rb
|
|
294
296
|
- data/anthropic.json
|
|
295
297
|
- data/bedrock.json
|
|
296
298
|
- data/deepinfra.json
|
|
@@ -475,6 +477,7 @@ files:
|
|
|
475
477
|
- lib/llm/registry.rb
|
|
476
478
|
- lib/llm/repl.rb
|
|
477
479
|
- lib/llm/repl/bar.rb
|
|
480
|
+
- lib/llm/repl/buffer.rb
|
|
478
481
|
- lib/llm/repl/command.rb
|
|
479
482
|
- lib/llm/repl/commands/compact.rb
|
|
480
483
|
- lib/llm/repl/commands/exit.rb
|
|
@@ -482,9 +485,9 @@ files:
|
|
|
482
485
|
- lib/llm/repl/input.rb
|
|
483
486
|
- lib/llm/repl/markdown.rb
|
|
484
487
|
- lib/llm/repl/markdown/table.rb
|
|
488
|
+
- lib/llm/repl/node.rb
|
|
485
489
|
- lib/llm/repl/status.rb
|
|
486
490
|
- lib/llm/repl/stream.rb
|
|
487
|
-
- lib/llm/repl/transcript.rb
|
|
488
491
|
- lib/llm/repl/walker.rb
|
|
489
492
|
- lib/llm/repl/window.rb
|
|
490
493
|
- lib/llm/response.rb
|
|
@@ -517,20 +520,22 @@ files:
|
|
|
517
520
|
- lib/llm/tool/param.rb
|
|
518
521
|
- lib/llm/tools.rb
|
|
519
522
|
- lib/llm/tools/chdir.rb
|
|
523
|
+
- lib/llm/tools/edit-file.rb
|
|
520
524
|
- lib/llm/tools/git.rb
|
|
521
525
|
- lib/llm/tools/ls.rb
|
|
522
526
|
- lib/llm/tools/mkdir.rb
|
|
523
527
|
- lib/llm/tools/pwd.rb
|
|
524
528
|
- lib/llm/tools/read_file.rb
|
|
525
529
|
- lib/llm/tools/rg.rb
|
|
530
|
+
- lib/llm/tools/ruby.rb
|
|
526
531
|
- lib/llm/tools/shell.rb
|
|
527
|
-
- lib/llm/tools/swap_text.rb
|
|
528
532
|
- lib/llm/tools/utils.rb
|
|
529
533
|
- lib/llm/tools/which.rb
|
|
530
534
|
- lib/llm/tools/write_file.rb
|
|
531
535
|
- lib/llm/tracer.rb
|
|
532
536
|
- lib/llm/tracer/logger.rb
|
|
533
537
|
- lib/llm/tracer/null.rb
|
|
538
|
+
- lib/llm/tracer/pretty_logger.rb
|
|
534
539
|
- lib/llm/tracer/telemetry.rb
|
|
535
540
|
- lib/llm/transport.rb
|
|
536
541
|
- lib/llm/transport/curb.rb
|
|
@@ -560,6 +565,11 @@ metadata:
|
|
|
560
565
|
source_code_uri: https://github.com/r-uby-dev/llm.rb
|
|
561
566
|
documentation_uri: https://r.uby.dev/llm/
|
|
562
567
|
changelog_uri: https://r.uby.dev/api-docs/llm.rb/file.CHANGELOG.html
|
|
568
|
+
post_install_message: |2+
|
|
569
|
+
|
|
570
|
+
Learn more about llm.rb by reading the deepdive:
|
|
571
|
+
https://r.uby.dev/llm/deepdive
|
|
572
|
+
|
|
563
573
|
rdoc_options: []
|
|
564
574
|
require_paths:
|
|
565
575
|
- lib
|
|
@@ -578,3 +588,4 @@ rubygems_version: 4.0.6
|
|
|
578
588
|
specification_version: 4
|
|
579
589
|
summary: Ruby's capable AI runtime
|
|
580
590
|
test_files: []
|
|
591
|
+
...
|