Skip to content

fix(jac-gpt): import byllm from jaclang.byllm after core fold#668

Merged
udithishanka merged 2 commits into
mainfrom
fix/byllm-jaclang-import
Jul 1, 2026
Merged

fix(jac-gpt): import byllm from jaclang.byllm after core fold#668
udithishanka merged 2 commits into
mainfrom
fix/byllm-jaclang-import

Conversation

@udithishanka

Copy link
Copy Markdown
Collaborator

byLLM was folded into jaclang core (jac/jaclang/byllm), so the top-level byllm package no longer exists on jaseci main. The jac-gpt server still imported byllm.lib / byllm.types, so jac start main.jac fails at load with No module named 'byllm', which breaks the jaseci jacpack integration CI (test-pypi-build -> "Start jac-gpt server").

Fix

Repoint the four import sites at the new jaclang.byllm module path (matches the canonical usage across jaseci examples/docs, e.g. import from jaclang.byllm.lib { Model }):

  • services/jacServer.jac: byllm.lib -> jaclang.byllm.lib
  • services/jacServer.impl.jac: byllm.types -> jaclang.byllm.types
  • services/generate_doc_links.jac: byllm.lib -> jaclang.byllm.lib
  • services/testing/rag_testing.jac: byllm.lib -> jaclang.byllm.lib

The runtime llm capability (litellm, pillow, httpx, loguru) is already installed --global by the CI, so only the import path needed updating.

Once merged, the auto-generated jac-gpt jacpack regenerates from main and the jaseci CI passes.

byLLM was folded into jaclang core (jac/jaclang/byllm), so the
top-level `byllm` package no longer exists. The jac-gpt server was
still importing `byllm.lib` / `byllm.types`, which now fails at load
with "No module named 'byllm'" and breaks the jaseci jacpack CI.

Point the four import sites at the new `jaclang.byllm` module path:
- services/jacServer.jac
- services/jacServer.impl.jac
- services/generate_doc_links.jac
- services/testing/rag_testing.jac
jaseci migrated jaclang to a self-contained Zig binary: `jac/` no longer
ships a pyproject.toml and the `jac-byllm` / `jac-scale` package dirs are
gone (folded into the single `jac` binary). The old install method
(`pip install -e /tmp/jaseci/jac` + `jac install -e .../jac-byllm`)
therefore failed at setup, leaving this canary red on main for days.

Rework the workflow to mirror jaseci's own CI:
- Check out jaseci at the workspace root and reuse its `setup-jac`
  composite action to build + cache the binary; check out Agentic-AI
  into ./app.
- Install the serve and byllm runtime capability closures with
  `jac install --global` (pins mirror capabilities.jac).
- Install Playwright via `jac install playwright --global` and run E2E
  with `jac test` (the binary provides jaclang + pytest; system pytest
  has neither).
- Bump the timeout to 60m to cover the cold binary build.
@udithishanka udithishanka merged commit 024df20 into main Jul 1, 2026
1 check passed
@udithishanka udithishanka deleted the fix/byllm-jaclang-import branch July 1, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant