Releases: ruslanmv/agent-generator
Releases · ruslanmv/agent-generator
v0.1.2
v0.1.2 — 2025‑07‑23
Highlights
Reliable .env
Loading
- Both the CLI and Pydantic settings now only load the
.env
file from your current working directory (Path.cwd()/.env
). - Prevents accidental loading of environment files from install directories.
Dynamic, Plugin‑Friendly Provider Registry
- Automatically discovers all
*_provider.py
modules insrc/agent_generator/providers/
. - No need to modify
__init__.py
when adding a new provider. - Merges external packages via the
agent_generator.providers
entry-point group. - Eliminates hard-coded imports and avoids import errors when optional SDKs (e.g.
openai
) are not installed.
Dry‑Run Mode Shortcut
- The
--dry-run
flag now short-circuits before any credential checks or LLM calls. - Validates
--framework
and--provider
values first. - Generates scaffold code only.
- Typos in framework or provider names trigger helpful “Options: [...]” messages instead of raw
KeyError
s.
Up‑Front Validation
--framework
and--provider
arguments are validated immediately.- Provides clear feedback about valid options before any other logic is executed.
Other Changes
- Bumped version to
0.1.2
. - Updated documentation to reflect new
.env
loading and provider plugin patterns. - Minor code cleanup and lint fixes.
v0.1.1
v0.1.1 — 2025‑07‑22
This patch release ensures that your .env
file (at the repo root) is properly loaded before any environment checks run in the CLI. If you previously had to manually export your WatsonX or OpenAI keys despite having them in .env
, this update fixes exactly that by:
- Adjusting the
project_root
calculation incli.py
to two levels up. - Calling
load_dotenv(...)
on the correct path before verifying credentials.
No new features — purely a reliability/bugfix release.
Bug fixes
- CLI: fix
.env
loader path (project_root = parents[2]
), soload_dotenv()
actually finds your.env
at the repo root. - Env check: moved pre‑flight variable validation to run after
.env
is loaded, so missing‑var errors only occur if truly unset.
No new features — purely a reliability/bugfix release.