| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Sim::AgentSoar; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
272191
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
63
|
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
118
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.06'; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# Load the distribution's public modules so "use Sim::AgentSoar" is enough |
|
9
|
|
|
|
|
|
|
# for common consumers. |
|
10
|
1
|
|
|
1
|
|
661
|
use Sim::AgentSoar::AgentSoar (); |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
30
|
|
|
11
|
1
|
|
|
1
|
|
10
|
use Sim::AgentSoar::Engine (); |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
18
|
|
|
12
|
1
|
|
|
1
|
|
4
|
use Sim::AgentSoar::Node (); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
16
|
|
|
13
|
1
|
|
|
1
|
|
618
|
use Sim::AgentSoar::Worker (); |
|
|
1
|
|
|
|
|
4
|
|
|
|
1
|
|
|
|
|
37
|
|
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
1; |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=pod |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 NAME |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Sim::AgentSoar - SOAR-inspired explicit search with a pluggable LLM worker |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
use Sim::AgentSoar; |
|
26
|
|
|
|
|
|
|
use Sim::AgentSoar::AgentSoar; |
|
27
|
|
|
|
|
|
|
use Sim::AgentSoar::Worker; |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
my $worker = Sim::AgentSoar::Worker->new(model => 'llama3.2:1b'); |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
my $search = Sim::AgentSoar::AgentSoar->new( |
|
32
|
|
|
|
|
|
|
worker => $worker, |
|
33
|
|
|
|
|
|
|
branching_factor => 2, |
|
34
|
|
|
|
|
|
|
regression_tolerance => 2, |
|
35
|
|
|
|
|
|
|
max_depth => 20, |
|
36
|
|
|
|
|
|
|
); |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
my $path = $search->run(start => 4, target => 19); |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This distribution implements a deterministic, inspectable best-first search |
|
43
|
|
|
|
|
|
|
controller (L) plus a deterministic environment |
|
44
|
|
|
|
|
|
|
(L) and an optional LLM-backed operator proposer |
|
45
|
|
|
|
|
|
|
(L). |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 AUTHOR |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Gian Luca Brunetti (2026), gianluca.brunetti\@gmail.com |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 LICENSE |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
GPLv3. |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=cut |