praxo-core 0.3.0 → 0.4.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/README.md +5 -4
- data/api/0.1.0.txt +110 -110
- data/api/0.2.0.txt +112 -112
- data/api/0.3.0.txt +122 -119
- data/api/0.4.0.txt +122 -0
- data/lib/praxo/agent.rb +352 -292
- data/lib/praxo/models.rb +21 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f152be83ed07ff5267bc2c7266c0fdfad4ab1de6706dcfeac37127ac26aa062
|
|
4
|
+
data.tar.gz: 32682accb4f7219756fae4cc38b4fef6c32b5f03bed61d72a38e0d5e4a652c87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 860ff6614eee9183733006a0866c1537b23d2729d72791288d5ee967a196743e47e01b1692c26f3e828344c7804d3a37694125454ab506ffe4aebc687e01decd
|
|
7
|
+
data.tar.gz: f47cf1a06d81fef7f1738e05300d8c30447c25d6a9bf636ff9584291d6e8ba823466977f087247193aec5691054ee981bc32d8ad5d70211340a8fd0a8e09e357
|
data/README.md
CHANGED
|
@@ -9,11 +9,11 @@ The normative contract is [`spec/`](../../spec/README.md); Go remains the
|
|
|
9
9
|
reference implementation.
|
|
10
10
|
|
|
11
11
|
- `SPEC_VERSION`: `0.2.0`
|
|
12
|
-
- Core version: `0.
|
|
12
|
+
- Core version: `0.4.0`
|
|
13
13
|
- Tier: core
|
|
14
14
|
- License: MIT
|
|
15
15
|
- Dependencies: Ruby standard library only
|
|
16
|
-
- The latest RubyGems package is `praxo-core@0.1.0`; `0.
|
|
16
|
+
- The latest RubyGems package is `praxo-core@0.1.0`; `0.4.0` is a source release
|
|
17
17
|
|
|
18
18
|
## Install
|
|
19
19
|
|
|
@@ -25,7 +25,8 @@ gem install praxo-core
|
|
|
25
25
|
|
|
26
26
|
The Core implements all eleven vector groups: toolcall, JSON Schema, plugin,
|
|
27
27
|
memory, event, stream, checkpoint, policy, context, middleware, and the agent
|
|
28
|
-
loop. It
|
|
28
|
+
loop. It also implements human-in-the-loop interrupt decisions, and includes a
|
|
29
|
+
public API snapshot and a dependency-free test runner.
|
|
29
30
|
|
|
30
31
|
## Build and test
|
|
31
32
|
|
|
@@ -88,5 +89,5 @@ execution, and run-scoped call limits:
|
|
|
88
89
|
|
|
89
90
|
## Release
|
|
90
91
|
|
|
91
|
-
Tag shape: `ruby/v0.
|
|
92
|
+
Tag shape: `ruby/v0.4.0`. The tag targets `SPEC_VERSION` `0.2.0`. See
|
|
92
93
|
[CHANGELOG.md](CHANGELOG.md) for per-release changes and compatibility notes.
|
data/api/0.1.0.txt
CHANGED
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
# PRAXO-CORE Ruby API 0.1.0
|
|
2
|
-
# SPEC_VERSION 0.2.0
|
|
3
|
-
|
|
4
|
-
class AgentOptions
|
|
5
|
-
class CallLimit
|
|
6
|
-
class CheckpointAllowlist
|
|
7
|
-
class ContextBudget
|
|
8
|
-
class Error
|
|
9
|
-
class FilterSink
|
|
10
|
-
class FuncTool
|
|
11
|
-
class MemoryStore
|
|
12
|
-
class MultiSink
|
|
13
|
-
class PathChecker
|
|
14
|
-
class PiiRedactor
|
|
15
|
-
class Runner
|
|
16
|
-
class StaticModel
|
|
17
|
-
class StructuredOutput
|
|
18
|
-
class ToolRegistry
|
|
19
|
-
class ToolSelection
|
|
20
|
-
def action
|
|
21
|
-
def allowed?
|
|
22
|
-
def allows?
|
|
23
|
-
def apply
|
|
24
|
-
def array
|
|
25
|
-
def as_int
|
|
26
|
-
def as_object
|
|
27
|
-
def as_string
|
|
28
|
-
def authorize
|
|
29
|
-
def before_model
|
|
30
|
-
def before_tool
|
|
31
|
-
def bool
|
|
32
|
-
def check
|
|
33
|
-
def check_enum
|
|
34
|
-
def check_keys
|
|
35
|
-
def compact
|
|
36
|
-
def content_block
|
|
37
|
-
def decision
|
|
38
|
-
def emit
|
|
39
|
-
def equals
|
|
40
|
-
def error
|
|
41
|
-
def error_code
|
|
42
|
-
def estimate_tokens
|
|
43
|
-
def event
|
|
44
|
-
def extract_json
|
|
45
|
-
def fallback_model
|
|
46
|
-
def filter
|
|
47
|
-
def generate
|
|
48
|
-
def get
|
|
49
|
-
def has?
|
|
50
|
-
def initialize
|
|
51
|
-
def int
|
|
52
|
-
def invoke
|
|
53
|
-
def invoke_tool
|
|
54
|
-
def marshal
|
|
55
|
-
def memory_record
|
|
56
|
-
def message
|
|
57
|
-
def message_assistant
|
|
58
|
-
def message_text
|
|
59
|
-
def message_tool
|
|
60
|
-
def message_wire
|
|
61
|
-
def parse
|
|
62
|
-
def parse_input_json
|
|
63
|
-
def parse_json_call
|
|
64
|
-
def parse_manifest
|
|
65
|
-
def parse_plain
|
|
66
|
-
def parse_tag
|
|
67
|
-
def parse_toolcall
|
|
68
|
-
def parse_xml
|
|
69
|
-
def plus
|
|
70
|
-
def put
|
|
71
|
-
def redact
|
|
72
|
-
def redact_value
|
|
73
|
-
def register
|
|
74
|
-
def reject
|
|
75
|
-
def request
|
|
76
|
-
def resolve_path
|
|
77
|
-
def response
|
|
78
|
-
def run
|
|
79
|
-
def run_agent
|
|
80
|
-
def run_result
|
|
81
|
-
def search
|
|
82
|
-
def session
|
|
83
|
-
def specs
|
|
84
|
-
def string
|
|
85
|
-
def stringify
|
|
86
|
-
def strip_markup
|
|
87
|
-
def structured_apply
|
|
88
|
-
def text_present
|
|
89
|
-
def tool_call
|
|
90
|
-
def tool_spec
|
|
91
|
-
def truncate_to_tokens
|
|
92
|
-
def unmarshal
|
|
93
|
-
def usage
|
|
94
|
-
def validate
|
|
95
|
-
def visit
|
|
96
|
-
def visit_array
|
|
97
|
-
def visit_boolean
|
|
98
|
-
def visit_number
|
|
99
|
-
def visit_object
|
|
100
|
-
def visit_string
|
|
101
|
-
def within?
|
|
102
|
-
module Agent
|
|
103
|
-
module Json
|
|
104
|
-
module JsonSchema
|
|
105
|
-
module Middleware
|
|
106
|
-
module Models
|
|
107
|
-
module Plugin
|
|
108
|
-
module Praxo
|
|
109
|
-
module Runtime
|
|
110
|
-
module Toolcall
|
|
1
|
+
# PRAXO-CORE Ruby API 0.1.0
|
|
2
|
+
# SPEC_VERSION 0.2.0
|
|
3
|
+
|
|
4
|
+
class AgentOptions
|
|
5
|
+
class CallLimit
|
|
6
|
+
class CheckpointAllowlist
|
|
7
|
+
class ContextBudget
|
|
8
|
+
class Error
|
|
9
|
+
class FilterSink
|
|
10
|
+
class FuncTool
|
|
11
|
+
class MemoryStore
|
|
12
|
+
class MultiSink
|
|
13
|
+
class PathChecker
|
|
14
|
+
class PiiRedactor
|
|
15
|
+
class Runner
|
|
16
|
+
class StaticModel
|
|
17
|
+
class StructuredOutput
|
|
18
|
+
class ToolRegistry
|
|
19
|
+
class ToolSelection
|
|
20
|
+
def action
|
|
21
|
+
def allowed?
|
|
22
|
+
def allows?
|
|
23
|
+
def apply
|
|
24
|
+
def array
|
|
25
|
+
def as_int
|
|
26
|
+
def as_object
|
|
27
|
+
def as_string
|
|
28
|
+
def authorize
|
|
29
|
+
def before_model
|
|
30
|
+
def before_tool
|
|
31
|
+
def bool
|
|
32
|
+
def check
|
|
33
|
+
def check_enum
|
|
34
|
+
def check_keys
|
|
35
|
+
def compact
|
|
36
|
+
def content_block
|
|
37
|
+
def decision
|
|
38
|
+
def emit
|
|
39
|
+
def equals
|
|
40
|
+
def error
|
|
41
|
+
def error_code
|
|
42
|
+
def estimate_tokens
|
|
43
|
+
def event
|
|
44
|
+
def extract_json
|
|
45
|
+
def fallback_model
|
|
46
|
+
def filter
|
|
47
|
+
def generate
|
|
48
|
+
def get
|
|
49
|
+
def has?
|
|
50
|
+
def initialize
|
|
51
|
+
def int
|
|
52
|
+
def invoke
|
|
53
|
+
def invoke_tool
|
|
54
|
+
def marshal
|
|
55
|
+
def memory_record
|
|
56
|
+
def message
|
|
57
|
+
def message_assistant
|
|
58
|
+
def message_text
|
|
59
|
+
def message_tool
|
|
60
|
+
def message_wire
|
|
61
|
+
def parse
|
|
62
|
+
def parse_input_json
|
|
63
|
+
def parse_json_call
|
|
64
|
+
def parse_manifest
|
|
65
|
+
def parse_plain
|
|
66
|
+
def parse_tag
|
|
67
|
+
def parse_toolcall
|
|
68
|
+
def parse_xml
|
|
69
|
+
def plus
|
|
70
|
+
def put
|
|
71
|
+
def redact
|
|
72
|
+
def redact_value
|
|
73
|
+
def register
|
|
74
|
+
def reject
|
|
75
|
+
def request
|
|
76
|
+
def resolve_path
|
|
77
|
+
def response
|
|
78
|
+
def run
|
|
79
|
+
def run_agent
|
|
80
|
+
def run_result
|
|
81
|
+
def search
|
|
82
|
+
def session
|
|
83
|
+
def specs
|
|
84
|
+
def string
|
|
85
|
+
def stringify
|
|
86
|
+
def strip_markup
|
|
87
|
+
def structured_apply
|
|
88
|
+
def text_present
|
|
89
|
+
def tool_call
|
|
90
|
+
def tool_spec
|
|
91
|
+
def truncate_to_tokens
|
|
92
|
+
def unmarshal
|
|
93
|
+
def usage
|
|
94
|
+
def validate
|
|
95
|
+
def visit
|
|
96
|
+
def visit_array
|
|
97
|
+
def visit_boolean
|
|
98
|
+
def visit_number
|
|
99
|
+
def visit_object
|
|
100
|
+
def visit_string
|
|
101
|
+
def within?
|
|
102
|
+
module Agent
|
|
103
|
+
module Json
|
|
104
|
+
module JsonSchema
|
|
105
|
+
module Middleware
|
|
106
|
+
module Models
|
|
107
|
+
module Plugin
|
|
108
|
+
module Praxo
|
|
109
|
+
module Runtime
|
|
110
|
+
module Toolcall
|
data/api/0.2.0.txt
CHANGED
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
# PRAXO-CORE Ruby API 0.2.0
|
|
2
|
-
# SPEC_VERSION 0.2.0
|
|
3
|
-
|
|
4
|
-
class AgentOptions
|
|
5
|
-
class CallLimit
|
|
6
|
-
class CheckpointAllowlist
|
|
7
|
-
class ContextBudget
|
|
8
|
-
class Error
|
|
9
|
-
class FilterSink
|
|
10
|
-
class FuncTool
|
|
11
|
-
class MemoryStore
|
|
12
|
-
class MultiSink
|
|
13
|
-
class PathChecker
|
|
14
|
-
class PiiRedactor
|
|
15
|
-
class Runner
|
|
16
|
-
class StaticModel
|
|
17
|
-
class StructuredOutput
|
|
18
|
-
class ToolRegistry
|
|
19
|
-
class ToolSelection
|
|
20
|
-
def action
|
|
21
|
-
def after_run
|
|
22
|
-
def allowed?
|
|
23
|
-
def allows?
|
|
24
|
-
def apply
|
|
25
|
-
def array
|
|
26
|
-
def as_int
|
|
27
|
-
def as_object
|
|
28
|
-
def as_string
|
|
29
|
-
def authorize
|
|
30
|
-
def before_model
|
|
31
|
-
def before_run
|
|
32
|
-
def before_tool
|
|
33
|
-
def bool
|
|
34
|
-
def check
|
|
35
|
-
def check_enum
|
|
36
|
-
def check_keys
|
|
37
|
-
def compact
|
|
38
|
-
def content_block
|
|
39
|
-
def decision
|
|
40
|
-
def emit
|
|
41
|
-
def equals
|
|
42
|
-
def error
|
|
43
|
-
def error_code
|
|
44
|
-
def estimate_tokens
|
|
45
|
-
def event
|
|
46
|
-
def extract_json
|
|
47
|
-
def fallback_model
|
|
48
|
-
def filter
|
|
49
|
-
def generate
|
|
50
|
-
def get
|
|
51
|
-
def has?
|
|
52
|
-
def initialize
|
|
53
|
-
def int
|
|
54
|
-
def invoke
|
|
55
|
-
def invoke_tool
|
|
56
|
-
def marshal
|
|
57
|
-
def memory_record
|
|
58
|
-
def message
|
|
59
|
-
def message_assistant
|
|
60
|
-
def message_text
|
|
61
|
-
def message_tool
|
|
62
|
-
def message_wire
|
|
63
|
-
def parse
|
|
64
|
-
def parse_input_json
|
|
65
|
-
def parse_json_call
|
|
66
|
-
def parse_manifest
|
|
67
|
-
def parse_plain
|
|
68
|
-
def parse_tag
|
|
69
|
-
def parse_toolcall
|
|
70
|
-
def parse_xml
|
|
71
|
-
def plus
|
|
72
|
-
def put
|
|
73
|
-
def redact
|
|
74
|
-
def redact_value
|
|
75
|
-
def register
|
|
76
|
-
def reject
|
|
77
|
-
def request
|
|
78
|
-
def resolve_path
|
|
79
|
-
def response
|
|
80
|
-
def run
|
|
81
|
-
def run_agent
|
|
82
|
-
def run_result
|
|
83
|
-
def search
|
|
84
|
-
def session
|
|
85
|
-
def specs
|
|
86
|
-
def string
|
|
87
|
-
def stringify
|
|
88
|
-
def strip_markup
|
|
89
|
-
def structured_apply
|
|
90
|
-
def text_present
|
|
91
|
-
def tool_call
|
|
92
|
-
def tool_spec
|
|
93
|
-
def truncate_to_tokens
|
|
94
|
-
def unmarshal
|
|
95
|
-
def usage
|
|
96
|
-
def validate
|
|
97
|
-
def visit
|
|
98
|
-
def visit_array
|
|
99
|
-
def visit_boolean
|
|
100
|
-
def visit_number
|
|
101
|
-
def visit_object
|
|
102
|
-
def visit_string
|
|
103
|
-
def within?
|
|
104
|
-
module Agent
|
|
105
|
-
module Json
|
|
106
|
-
module JsonSchema
|
|
107
|
-
module Middleware
|
|
108
|
-
module Models
|
|
109
|
-
module Plugin
|
|
110
|
-
module Praxo
|
|
111
|
-
module Runtime
|
|
112
|
-
module Toolcall
|
|
1
|
+
# PRAXO-CORE Ruby API 0.2.0
|
|
2
|
+
# SPEC_VERSION 0.2.0
|
|
3
|
+
|
|
4
|
+
class AgentOptions
|
|
5
|
+
class CallLimit
|
|
6
|
+
class CheckpointAllowlist
|
|
7
|
+
class ContextBudget
|
|
8
|
+
class Error
|
|
9
|
+
class FilterSink
|
|
10
|
+
class FuncTool
|
|
11
|
+
class MemoryStore
|
|
12
|
+
class MultiSink
|
|
13
|
+
class PathChecker
|
|
14
|
+
class PiiRedactor
|
|
15
|
+
class Runner
|
|
16
|
+
class StaticModel
|
|
17
|
+
class StructuredOutput
|
|
18
|
+
class ToolRegistry
|
|
19
|
+
class ToolSelection
|
|
20
|
+
def action
|
|
21
|
+
def after_run
|
|
22
|
+
def allowed?
|
|
23
|
+
def allows?
|
|
24
|
+
def apply
|
|
25
|
+
def array
|
|
26
|
+
def as_int
|
|
27
|
+
def as_object
|
|
28
|
+
def as_string
|
|
29
|
+
def authorize
|
|
30
|
+
def before_model
|
|
31
|
+
def before_run
|
|
32
|
+
def before_tool
|
|
33
|
+
def bool
|
|
34
|
+
def check
|
|
35
|
+
def check_enum
|
|
36
|
+
def check_keys
|
|
37
|
+
def compact
|
|
38
|
+
def content_block
|
|
39
|
+
def decision
|
|
40
|
+
def emit
|
|
41
|
+
def equals
|
|
42
|
+
def error
|
|
43
|
+
def error_code
|
|
44
|
+
def estimate_tokens
|
|
45
|
+
def event
|
|
46
|
+
def extract_json
|
|
47
|
+
def fallback_model
|
|
48
|
+
def filter
|
|
49
|
+
def generate
|
|
50
|
+
def get
|
|
51
|
+
def has?
|
|
52
|
+
def initialize
|
|
53
|
+
def int
|
|
54
|
+
def invoke
|
|
55
|
+
def invoke_tool
|
|
56
|
+
def marshal
|
|
57
|
+
def memory_record
|
|
58
|
+
def message
|
|
59
|
+
def message_assistant
|
|
60
|
+
def message_text
|
|
61
|
+
def message_tool
|
|
62
|
+
def message_wire
|
|
63
|
+
def parse
|
|
64
|
+
def parse_input_json
|
|
65
|
+
def parse_json_call
|
|
66
|
+
def parse_manifest
|
|
67
|
+
def parse_plain
|
|
68
|
+
def parse_tag
|
|
69
|
+
def parse_toolcall
|
|
70
|
+
def parse_xml
|
|
71
|
+
def plus
|
|
72
|
+
def put
|
|
73
|
+
def redact
|
|
74
|
+
def redact_value
|
|
75
|
+
def register
|
|
76
|
+
def reject
|
|
77
|
+
def request
|
|
78
|
+
def resolve_path
|
|
79
|
+
def response
|
|
80
|
+
def run
|
|
81
|
+
def run_agent
|
|
82
|
+
def run_result
|
|
83
|
+
def search
|
|
84
|
+
def session
|
|
85
|
+
def specs
|
|
86
|
+
def string
|
|
87
|
+
def stringify
|
|
88
|
+
def strip_markup
|
|
89
|
+
def structured_apply
|
|
90
|
+
def text_present
|
|
91
|
+
def tool_call
|
|
92
|
+
def tool_spec
|
|
93
|
+
def truncate_to_tokens
|
|
94
|
+
def unmarshal
|
|
95
|
+
def usage
|
|
96
|
+
def validate
|
|
97
|
+
def visit
|
|
98
|
+
def visit_array
|
|
99
|
+
def visit_boolean
|
|
100
|
+
def visit_number
|
|
101
|
+
def visit_object
|
|
102
|
+
def visit_string
|
|
103
|
+
def within?
|
|
104
|
+
module Agent
|
|
105
|
+
module Json
|
|
106
|
+
module JsonSchema
|
|
107
|
+
module Middleware
|
|
108
|
+
module Models
|
|
109
|
+
module Plugin
|
|
110
|
+
module Praxo
|
|
111
|
+
module Runtime
|
|
112
|
+
module Toolcall
|