jaxforge 0.2.0__py3-none-any.whl
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.
- jax_gemini/__init__.py +98 -0
- jax_gemini/agent.py +5 -0
- jax_gemini/config.py +5 -0
- jax_gemini/exceptions.py +23 -0
- jaxforge/__init__.py +80 -0
- jaxforge/agent.py +778 -0
- jaxforge/cli.py +112 -0
- jaxforge/codegen/__init__.py +15 -0
- jaxforge/codegen/diff.py +92 -0
- jaxforge/codegen/fixer.py +90 -0
- jaxforge/codegen/parser.py +58 -0
- jaxforge/codegen/validator.py +370 -0
- jaxforge/config.py +211 -0
- jaxforge/contrib/__init__.py +39 -0
- jaxforge/contrib/flax.py +49 -0
- jaxforge/contrib/optax.py +67 -0
- jaxforge/contrib/sharding.py +51 -0
- jaxforge/contrib/tracking.py +63 -0
- jaxforge/exceptions.py +60 -0
- jaxforge/exporter.py +63 -0
- jaxforge/llm/__init__.py +22 -0
- jaxforge/llm/base.py +35 -0
- jaxforge/llm/gemini.py +221 -0
- jaxforge/llm/providers.py +361 -0
- jaxforge/mcp_server.py +59 -0
- jaxforge/memory/__init__.py +5 -0
- jaxforge/memory/conversation.py +92 -0
- jaxforge/pipeline/__init__.py +13 -0
- jaxforge/pipeline/builder.py +19 -0
- jaxforge/pipeline/evaluator.py +16 -0
- jaxforge/pipeline/exporter.py +20 -0
- jaxforge/pipeline/trainer.py +21 -0
- jaxforge/plan.py +153 -0
- jaxforge/prompts/__init__.py +15 -0
- jaxforge/prompts/context_builder.py +142 -0
- jaxforge/prompts/intent.py +77 -0
- jaxforge/prompts/system_prompt.py +201 -0
- jaxforge/sandbox/__init__.py +25 -0
- jaxforge/sandbox/backends.py +385 -0
- jaxforge/sandbox/executor.py +80 -0
- jaxforge/sandbox/namespace.py +459 -0
- jaxforge-0.2.0.dist-info/METADATA +188 -0
- jaxforge-0.2.0.dist-info/RECORD +46 -0
- jaxforge-0.2.0.dist-info/WHEEL +4 -0
- jaxforge-0.2.0.dist-info/entry_points.txt +2 -0
- jaxforge-0.2.0.dist-info/licenses/LICENSE +21 -0
jax_gemini/__init__.py
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"""Backward-compatibility shim redirecting jax_gemini imports to jaxforge."""
|
|
2
|
+
|
|
3
|
+
import warnings
|
|
4
|
+
|
|
5
|
+
from jaxforge import (
|
|
6
|
+
JaxForge as JaxGemini,
|
|
7
|
+
)
|
|
8
|
+
from jaxforge import (
|
|
9
|
+
JaxForgeApprovalError,
|
|
10
|
+
__author__,
|
|
11
|
+
__license__,
|
|
12
|
+
__version__,
|
|
13
|
+
analyze_data,
|
|
14
|
+
build,
|
|
15
|
+
config,
|
|
16
|
+
evaluate,
|
|
17
|
+
explain,
|
|
18
|
+
explore,
|
|
19
|
+
export_project,
|
|
20
|
+
load,
|
|
21
|
+
load_data,
|
|
22
|
+
modify,
|
|
23
|
+
preprocess_data,
|
|
24
|
+
preview,
|
|
25
|
+
reset,
|
|
26
|
+
run,
|
|
27
|
+
save,
|
|
28
|
+
show_code,
|
|
29
|
+
train,
|
|
30
|
+
usage_summary,
|
|
31
|
+
visualize_data,
|
|
32
|
+
)
|
|
33
|
+
from jaxforge import (
|
|
34
|
+
JaxForgeCheckpointError as JaxGeminiCheckpointError,
|
|
35
|
+
)
|
|
36
|
+
from jaxforge import (
|
|
37
|
+
JaxForgeConfig as JaxGeminiConfig,
|
|
38
|
+
)
|
|
39
|
+
from jaxforge import (
|
|
40
|
+
JaxForgeConfigError as JaxGeminiConfigError,
|
|
41
|
+
)
|
|
42
|
+
from jaxforge import (
|
|
43
|
+
JaxForgeError as JaxGeminiError,
|
|
44
|
+
)
|
|
45
|
+
from jaxforge import (
|
|
46
|
+
JaxForgeExecutionError as JaxGeminiExecutionError,
|
|
47
|
+
)
|
|
48
|
+
from jaxforge import (
|
|
49
|
+
JaxForgeIntentError as JaxGeminiIntentError,
|
|
50
|
+
)
|
|
51
|
+
from jaxforge import (
|
|
52
|
+
JaxForgeLLMError as JaxGeminiLLMError,
|
|
53
|
+
)
|
|
54
|
+
from jaxforge import (
|
|
55
|
+
JaxForgeValidationError as JaxGeminiValidationError,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
warnings.warn(
|
|
59
|
+
"jax_gemini is deprecated and has been renamed to jaxforge. "
|
|
60
|
+
"Install 'jaxforge' and use 'import jaxforge as jf'.",
|
|
61
|
+
DeprecationWarning,
|
|
62
|
+
stacklevel=2,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
__all__ = [
|
|
66
|
+
"JaxForgeApprovalError",
|
|
67
|
+
"JaxGemini",
|
|
68
|
+
"JaxGeminiCheckpointError",
|
|
69
|
+
"JaxGeminiConfig",
|
|
70
|
+
"JaxGeminiConfigError",
|
|
71
|
+
"JaxGeminiError",
|
|
72
|
+
"JaxGeminiExecutionError",
|
|
73
|
+
"JaxGeminiIntentError",
|
|
74
|
+
"JaxGeminiLLMError",
|
|
75
|
+
"JaxGeminiValidationError",
|
|
76
|
+
"__author__",
|
|
77
|
+
"__license__",
|
|
78
|
+
"__version__",
|
|
79
|
+
"analyze_data",
|
|
80
|
+
"build",
|
|
81
|
+
"config",
|
|
82
|
+
"evaluate",
|
|
83
|
+
"explain",
|
|
84
|
+
"explore",
|
|
85
|
+
"export_project",
|
|
86
|
+
"load",
|
|
87
|
+
"load_data",
|
|
88
|
+
"modify",
|
|
89
|
+
"preprocess_data",
|
|
90
|
+
"preview",
|
|
91
|
+
"reset",
|
|
92
|
+
"run",
|
|
93
|
+
"save",
|
|
94
|
+
"show_code",
|
|
95
|
+
"train",
|
|
96
|
+
"usage_summary",
|
|
97
|
+
"visualize_data",
|
|
98
|
+
]
|
jax_gemini/agent.py
ADDED
jax_gemini/config.py
ADDED
jax_gemini/exceptions.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""Backward-compatibility shim for jax_gemini.exceptions."""
|
|
2
|
+
|
|
3
|
+
from jaxforge.exceptions import (
|
|
4
|
+
JaxForgeApprovalError,
|
|
5
|
+
JaxGeminiCheckpointError,
|
|
6
|
+
JaxGeminiConfigError,
|
|
7
|
+
JaxGeminiError,
|
|
8
|
+
JaxGeminiExecutionError,
|
|
9
|
+
JaxGeminiIntentError,
|
|
10
|
+
JaxGeminiLLMError,
|
|
11
|
+
JaxGeminiValidationError,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
__all__ = [
|
|
15
|
+
"JaxForgeApprovalError",
|
|
16
|
+
"JaxGeminiCheckpointError",
|
|
17
|
+
"JaxGeminiConfigError",
|
|
18
|
+
"JaxGeminiError",
|
|
19
|
+
"JaxGeminiExecutionError",
|
|
20
|
+
"JaxGeminiIntentError",
|
|
21
|
+
"JaxGeminiLLMError",
|
|
22
|
+
"JaxGeminiValidationError",
|
|
23
|
+
]
|
jaxforge/__init__.py
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"""
|
|
2
|
+
jaxforge (Jax Forge): Model-agnostic natural language engineering workbench for JAX and Flax.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from jaxforge.agent import JaxForge
|
|
6
|
+
from jaxforge.config import JaxForgeConfig
|
|
7
|
+
from jaxforge.exceptions import (
|
|
8
|
+
JaxForgeApprovalError,
|
|
9
|
+
JaxForgeCheckpointError,
|
|
10
|
+
JaxForgeConfigError,
|
|
11
|
+
JaxForgeError,
|
|
12
|
+
JaxForgeExecutionError,
|
|
13
|
+
JaxForgeIntentError,
|
|
14
|
+
JaxForgeLLMError,
|
|
15
|
+
JaxForgeValidationError,
|
|
16
|
+
)
|
|
17
|
+
from jaxforge.plan import DatasetProfile, ExperimentCandidate, ExperimentResult, GeneratedPlan
|
|
18
|
+
|
|
19
|
+
__version__ = "0.2.0"
|
|
20
|
+
__author__ = "Wesley Kambale"
|
|
21
|
+
__license__ = "MIT"
|
|
22
|
+
|
|
23
|
+
__all__ = [
|
|
24
|
+
"DatasetProfile",
|
|
25
|
+
"ExperimentCandidate",
|
|
26
|
+
"ExperimentResult",
|
|
27
|
+
"GeneratedPlan",
|
|
28
|
+
"JaxForge",
|
|
29
|
+
"JaxForgeApprovalError",
|
|
30
|
+
"JaxForgeCheckpointError",
|
|
31
|
+
"JaxForgeConfig",
|
|
32
|
+
"JaxForgeConfigError",
|
|
33
|
+
"JaxForgeError",
|
|
34
|
+
"JaxForgeExecutionError",
|
|
35
|
+
"JaxForgeIntentError",
|
|
36
|
+
"JaxForgeLLMError",
|
|
37
|
+
"JaxForgeValidationError",
|
|
38
|
+
"analyze_data",
|
|
39
|
+
"build",
|
|
40
|
+
"config",
|
|
41
|
+
"evaluate",
|
|
42
|
+
"explain",
|
|
43
|
+
"explore",
|
|
44
|
+
"export_project",
|
|
45
|
+
"load",
|
|
46
|
+
"load_data",
|
|
47
|
+
"modify",
|
|
48
|
+
"preprocess_data",
|
|
49
|
+
"preview",
|
|
50
|
+
"reset",
|
|
51
|
+
"run",
|
|
52
|
+
"save",
|
|
53
|
+
"show_code",
|
|
54
|
+
"train",
|
|
55
|
+
"usage_summary",
|
|
56
|
+
"visualize_data",
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
# Module-level singleton for single-session interactive usage.
|
|
60
|
+
# Multi-user or concurrent callers must instantiate separate JaxForge() instances.
|
|
61
|
+
_default_agent = JaxForge()
|
|
62
|
+
config = _default_agent.config
|
|
63
|
+
build = _default_agent.build
|
|
64
|
+
modify = _default_agent.modify
|
|
65
|
+
train = _default_agent.train
|
|
66
|
+
evaluate = _default_agent.evaluate
|
|
67
|
+
explore = _default_agent.explore
|
|
68
|
+
preview = _default_agent.preview
|
|
69
|
+
export_project = _default_agent.export_project
|
|
70
|
+
save = _default_agent.save
|
|
71
|
+
load = _default_agent.load
|
|
72
|
+
explain = _default_agent.explain
|
|
73
|
+
show_code = _default_agent.show_code
|
|
74
|
+
reset = _default_agent.reset
|
|
75
|
+
usage_summary = _default_agent.usage_summary
|
|
76
|
+
load_data = _default_agent.load_data
|
|
77
|
+
preprocess_data = _default_agent.preprocess_data
|
|
78
|
+
analyze_data = _default_agent.analyze_data
|
|
79
|
+
visualize_data = _default_agent.visualize_data
|
|
80
|
+
run = _default_agent.run
|