feat: add embedding support to LLM providers (#3) - #6
Closed
ngoclam9415 wants to merge 2 commits into
Closed
Conversation
* ci: add auto-release workflow on merge to stable Tags stable with current version, creates GitHub Release, and bumps patch version on source branch. Supports bump:major and bump:minor PR labels for controlling version increment. * ci: split release workflow into bump-on-PR and tag-on-merge - bump-version-on-pr-to-stable: auto-bumps patch version on main/* when PR is opened if source version <= stable version - release-on-merge-to-stable: tags + creates GitHub Release only - For major/minor bumps, manually edit pyproject.toml before PR * chore: bump version to 0.1.2 * feat: add embedding support to LLM providers Add centralized embedding functionality to dana.common.llm: - EmbeddingResponse type, EmbeddingNotSupportedError exception - embed()/embed_batch() on OpenAI, Gemini, Azure providers - Embedder class with sync/async support, auto-provider selection - Providers without embedding (Anthropic, Moonshot) raise clear errors - Config: embedding_models per provider in config.json - Unit tests (18 tests) and live integration tests --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ngoclam9415
added a commit
that referenced
this pull request
Aug 13, 2026
… flags, cancel-watcher Wire the D2-D6 capability surface into dana-code (in-process AgentSession): - permissions.py: CLIPermissionAdapter (AC #2) — in-process analog of ACP session/request_permission; evaluates via PolicyEvaluator (ADR-006 precedence), prompts the terminal user, persists durable grants. - commands/__init__.py (AC #3, #6): extract /help /compact /status /reset; add /model (busy-reject via session._lock.locked(), atomic switch via ModelSwitcher) and /permissions; use public AgentSession accessors. /reset -> journal semantics (close repo + re-init session). - code_app.py: wire grant_store + evaluator + set_policy_evaluator in _initialize_session (gate DANA_CODE_PERMISSION_PREFLIGHT_ENABLED); split _handle_command into _async (AgentSession) / _legacy (sync); close the in-memory grant_db on exit (avoids shutdown hang). - Ctrl-C -> TURN_CANCELLED (ADR-005): cooperative cancel via session.cancel() + drain; mid-turn interrupt terminalizes truthfully (turn_cancelled fact) and RESUMES the REPL; between-turns Ctrl-C continues. Add TURN_INTERRUPTED to host_event_adapter TURN_TERMINAL_KIND. - code_capabilities.py (AC #1, #4, #5, #6): DANA_CODE_*_ENABLED rollback flags (permission preflight, model switch, tool catalog, MCP, multimodal). tmux smoke (azure): turn renders, /status shows live state, /model lists, /reset mints new session, mid-turn Ctrl-C -> turn_cancelled + resume, /exit CLEAN. 25 new tests green; 2660 total (minus known OS-PID flake).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tags stable with current version, creates GitHub Release, and bumps patch version on source branch. Supports bump:major and bump:minor PR labels for controlling version increment.
chore: bump version to 0.1.2
feat: add embedding support to LLM providers
Add centralized embedding functionality to dana.common.llm: