beddel 0.1.0__tar.gz
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.
- beddel-0.1.0/.gitignore +169 -0
- beddel-0.1.0/CHANGELOG.md +22 -0
- beddel-0.1.0/LICENSE +21 -0
- beddel-0.1.0/PKG-INFO +625 -0
- beddel-0.1.0/README.md +563 -0
- beddel-0.1.0/examples/chat-with-guardrail.yaml +86 -0
- beddel-0.1.0/examples/email-classifier.yaml +107 -0
- beddel-0.1.0/examples/research-pipeline.yaml +85 -0
- beddel-0.1.0/pyproject.toml +140 -0
- beddel-0.1.0/src/beddel/__init__.py +98 -0
- beddel-0.1.0/src/beddel/adapters/__init__.py +10 -0
- beddel-0.1.0/src/beddel/adapters/hooks.py +209 -0
- beddel-0.1.0/src/beddel/adapters/kiro_cli.py +264 -0
- beddel-0.1.0/src/beddel/adapters/litellm_adapter.py +255 -0
- beddel-0.1.0/src/beddel/adapters/otel_adapter.py +125 -0
- beddel-0.1.0/src/beddel/cli/__init__.py +5 -0
- beddel-0.1.0/src/beddel/cli/commands.py +321 -0
- beddel-0.1.0/src/beddel/constants.py +12 -0
- beddel-0.1.0/src/beddel/domain/__init__.py +68 -0
- beddel-0.1.0/src/beddel/domain/errors.py +169 -0
- beddel-0.1.0/src/beddel/domain/executor.py +990 -0
- beddel-0.1.0/src/beddel/domain/models.py +440 -0
- beddel-0.1.0/src/beddel/domain/parser.py +191 -0
- beddel-0.1.0/src/beddel/domain/ports.py +577 -0
- beddel-0.1.0/src/beddel/domain/registry.py +142 -0
- beddel-0.1.0/src/beddel/domain/resolver.py +367 -0
- beddel-0.1.0/src/beddel/domain/strategies/__init__.py +7 -0
- beddel-0.1.0/src/beddel/domain/strategies/agent_delegation.py +244 -0
- beddel-0.1.0/src/beddel/domain/tracing_utils.py +43 -0
- beddel-0.1.0/src/beddel/error_codes.py +303 -0
- beddel-0.1.0/src/beddel/integrations/__init__.py +20 -0
- beddel-0.1.0/src/beddel/integrations/fastapi.py +187 -0
- beddel-0.1.0/src/beddel/integrations/sse.py +111 -0
- beddel-0.1.0/src/beddel/primitives/__init__.py +40 -0
- beddel-0.1.0/src/beddel/primitives/_llm_utils.py +107 -0
- beddel-0.1.0/src/beddel/primitives/agent_exec.py +241 -0
- beddel-0.1.0/src/beddel/primitives/call_agent.py +201 -0
- beddel-0.1.0/src/beddel/primitives/chat.py +382 -0
- beddel-0.1.0/src/beddel/primitives/guardrail.py +420 -0
- beddel-0.1.0/src/beddel/primitives/llm.py +162 -0
- beddel-0.1.0/src/beddel/primitives/output_generator.py +182 -0
- beddel-0.1.0/src/beddel/primitives/tool.py +272 -0
- beddel-0.1.0/src/beddel/primitives/utils.py +29 -0
- beddel-0.1.0/src/beddel/py.typed +0 -0
- beddel-0.1.0/src/beddel/utils/__init__.py +5 -0
- beddel-0.1.0/src/beddel/utils/subprocess.py +139 -0
beddel-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# =============================================================================
|
|
2
|
+
# Beddel Python - .gitignore
|
|
3
|
+
# =============================================================================
|
|
4
|
+
|
|
5
|
+
# -----------------------------------------------------------------------------
|
|
6
|
+
# Python
|
|
7
|
+
# -----------------------------------------------------------------------------
|
|
8
|
+
__pycache__/
|
|
9
|
+
*.py[cod]
|
|
10
|
+
*$py.class
|
|
11
|
+
*.so
|
|
12
|
+
.Python
|
|
13
|
+
build/
|
|
14
|
+
develop-eggs/
|
|
15
|
+
dist/
|
|
16
|
+
downloads/
|
|
17
|
+
eggs/
|
|
18
|
+
.eggs/
|
|
19
|
+
lib/
|
|
20
|
+
lib64/
|
|
21
|
+
parts/
|
|
22
|
+
sdist/
|
|
23
|
+
var/
|
|
24
|
+
wheels/
|
|
25
|
+
share/python-wheels/
|
|
26
|
+
*.egg-info/
|
|
27
|
+
.installed.cfg
|
|
28
|
+
*.egg
|
|
29
|
+
MANIFEST
|
|
30
|
+
|
|
31
|
+
# Virtual environments
|
|
32
|
+
.env
|
|
33
|
+
.venv
|
|
34
|
+
env/
|
|
35
|
+
venv/
|
|
36
|
+
ENV/
|
|
37
|
+
env.bak/
|
|
38
|
+
venv.bak/
|
|
39
|
+
.python-version
|
|
40
|
+
|
|
41
|
+
# -----------------------------------------------------------------------------
|
|
42
|
+
# Testing & Coverage
|
|
43
|
+
# -----------------------------------------------------------------------------
|
|
44
|
+
.pytest_cache/
|
|
45
|
+
.coverage
|
|
46
|
+
.coverage.*
|
|
47
|
+
htmlcov/
|
|
48
|
+
.tox/
|
|
49
|
+
.nox/
|
|
50
|
+
coverage.xml
|
|
51
|
+
*.cover
|
|
52
|
+
*.py,cover
|
|
53
|
+
.hypothesis/
|
|
54
|
+
|
|
55
|
+
# -----------------------------------------------------------------------------
|
|
56
|
+
# Type Checking & Linting
|
|
57
|
+
# -----------------------------------------------------------------------------
|
|
58
|
+
.mypy_cache/
|
|
59
|
+
.dmypy.json
|
|
60
|
+
dmypy.json
|
|
61
|
+
.ruff_cache/
|
|
62
|
+
.pytype/
|
|
63
|
+
|
|
64
|
+
# -----------------------------------------------------------------------------
|
|
65
|
+
# IDE & Editors
|
|
66
|
+
# -----------------------------------------------------------------------------
|
|
67
|
+
.idea/
|
|
68
|
+
.vscode/
|
|
69
|
+
*.swp
|
|
70
|
+
*.swo
|
|
71
|
+
*~
|
|
72
|
+
.project
|
|
73
|
+
.pydevproject
|
|
74
|
+
.settings/
|
|
75
|
+
*.sublime-project
|
|
76
|
+
*.sublime-workspace
|
|
77
|
+
|
|
78
|
+
# -----------------------------------------------------------------------------
|
|
79
|
+
# OS Generated
|
|
80
|
+
# -----------------------------------------------------------------------------
|
|
81
|
+
.DS_Store
|
|
82
|
+
.DS_Store?
|
|
83
|
+
._*
|
|
84
|
+
.Spotlight-V100
|
|
85
|
+
.Trashes
|
|
86
|
+
ehthumbs.db
|
|
87
|
+
Thumbs.db
|
|
88
|
+
desktop.ini
|
|
89
|
+
|
|
90
|
+
# -----------------------------------------------------------------------------
|
|
91
|
+
# Project-Specific: AI/Agent Folders (ignored)
|
|
92
|
+
# -----------------------------------------------------------------------------
|
|
93
|
+
.ai/
|
|
94
|
+
_bmad/
|
|
95
|
+
_bmad-output
|
|
96
|
+
.gemini/
|
|
97
|
+
agents/
|
|
98
|
+
mailbox/
|
|
99
|
+
src/beddel-gui
|
|
100
|
+
|
|
101
|
+
# -----------------------------------------------------------------------------
|
|
102
|
+
# Environment & Secrets
|
|
103
|
+
# -----------------------------------------------------------------------------
|
|
104
|
+
.env
|
|
105
|
+
.env.*
|
|
106
|
+
.envrc
|
|
107
|
+
!.env.example
|
|
108
|
+
*.pem
|
|
109
|
+
*.key
|
|
110
|
+
secrets/
|
|
111
|
+
credentials/
|
|
112
|
+
|
|
113
|
+
# -----------------------------------------------------------------------------
|
|
114
|
+
# Logs & Temp Files
|
|
115
|
+
# -----------------------------------------------------------------------------
|
|
116
|
+
*.log
|
|
117
|
+
logs/
|
|
118
|
+
tmp/
|
|
119
|
+
temp/
|
|
120
|
+
*.tmp
|
|
121
|
+
*.temp
|
|
122
|
+
*.bak
|
|
123
|
+
|
|
124
|
+
# -----------------------------------------------------------------------------
|
|
125
|
+
# Build & Distribution
|
|
126
|
+
# -----------------------------------------------------------------------------
|
|
127
|
+
*.manifest
|
|
128
|
+
*.spec
|
|
129
|
+
|
|
130
|
+
# Jupyter Notebooks
|
|
131
|
+
.ipynb_checkpoints/
|
|
132
|
+
|
|
133
|
+
# Celery
|
|
134
|
+
celerybeat-schedule
|
|
135
|
+
celerybeat.pid
|
|
136
|
+
|
|
137
|
+
# SageMath
|
|
138
|
+
*.sage.py
|
|
139
|
+
|
|
140
|
+
# Spyder
|
|
141
|
+
.spyderproject
|
|
142
|
+
.spyproject
|
|
143
|
+
|
|
144
|
+
# Rope
|
|
145
|
+
.ropeproject
|
|
146
|
+
|
|
147
|
+
# mkdocs
|
|
148
|
+
/site
|
|
149
|
+
|
|
150
|
+
# -----------------------------------------------------------------------------
|
|
151
|
+
# OpenTelemetry & Observability
|
|
152
|
+
# -----------------------------------------------------------------------------
|
|
153
|
+
traces/
|
|
154
|
+
spans/
|
|
155
|
+
*.otlp
|
|
156
|
+
|
|
157
|
+
# -----------------------------------------------------------------------------
|
|
158
|
+
# LiteLLM Cache
|
|
159
|
+
# -----------------------------------------------------------------------------
|
|
160
|
+
.litellm/
|
|
161
|
+
litellm_cache/
|
|
162
|
+
.kiroignore
|
|
163
|
+
report_session.md
|
|
164
|
+
docs/architecture/bmad-workflow-automation.md
|
|
165
|
+
|
|
166
|
+
gate-metrics/
|
|
167
|
+
pytest_output.txt
|
|
168
|
+
test_output.txt
|
|
169
|
+
src/beddel-dashboard/bun.lock
|
|
@@ -0,0 +1,22 @@
|
|
|
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.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.1.0] - 2026-03-19
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Adaptive core engine: YAML parser, variable resolver, workflow executor
|
|
13
|
+
- Five execution strategies: fail, skip, retry (with exponential backoff), fallback, delegate
|
|
14
|
+
- Seven built-in primitives: llm, chat, output-generator, guardrail, call-agent, tool, agent-exec
|
|
15
|
+
- LiteLLM adapter for multi-provider LLM access (100+ providers)
|
|
16
|
+
- OpenTelemetry adapter with three-level span nesting and token usage tracking
|
|
17
|
+
- Lifecycle hooks: workflow/step start/end, error, retry events
|
|
18
|
+
- FastAPI integration with SSE streaming
|
|
19
|
+
- CLI: validate, run, serve, list-primitives, version
|
|
20
|
+
- Hexagonal architecture with strict port/adapter separation
|
|
21
|
+
- Pydantic 2.x model validation
|
|
22
|
+
- Strict mypy type checking
|
beddel-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Beddel Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|