Name | byllm JSON |
Version |
0.4.1.post1
JSON |
| download |
home_page | None |
Summary | byLLM Provides Easy to use APIs for different LLM Providers to be used with Jaseci's Jaclang Programming Language. |
upload_time | 2025-09-01 19:24:34 |
maintainer | Jason Mars |
docs_url | None |
author | Jason Mars |
requires_python | None |
license | MIT |
keywords |
llm
jaclang
jaseci
byllm
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# byLLM - AI Integration Framework for Jac-lang
[](https://pypi.org/project/mtllm/) [](https://github.com/jaseci-labs/jaseci/actions/workflows/test-jaseci.yml)
Meaning Typed Programming (MTP) is a programming paradigm for AI integration where prompt engineering is hidden through code semantics. byLLM is the plugin built, exploring this hypothesis. byLLM is built as a plugin to the Jaseci ecosystem. This plugin can be installed as a PyPI package.
```bash
pip install byllm
```
## Basic Example
A basic usecase of MTP can be demonstrated as follows:
```python
import from byllm {Model}
glob llm = Model(model_name="openai\gpt-4o");
def translate_to(language: str, phrase: str) -> str by llm();
with entry {
output = translate_to(language="Welsh", phrase="Hello world");
print(output);
}
```
## AI-Powered Object Generation
```python
import from byllm {Model}
glob llm = Model(model_name="gpt-4o");
obj Task {
has description: str,
priority: int,
estimated_time: int;
}
sem Task.priority = "priority between 0 (highest priority) and 10(lowest priority)";
def create_task(description: str, previous_tasks: list[Task]) -> Task by llm();
with entry {
tasks = [];
new_task = create_task("Write documentation for the API", tasks);
print(f"Task: {new_task.description}, Priority: {new_task.priority}, Time: {new_task.estimated_time}min");
}
```
The `by` abstraction allows to automate semantic extraction from existing code semantics, eliminating manual prompt engineering while leveraging type annotations for structured AI responses.
## Documentation and Examples
**📚 Full Documentation**: [Jac byLLM Documentation](https://www.jac-lang.org/learn/jac-byllm/with_llm/)
**🎮 Complete Examples**:
- [Fantasy Trading Game](https://www.jac-lang.org/learn/examples/mtp_examples/fantasy_trading_game/) - Interactive RPG with AI-generated characters
- [RPG Level Generator](https://www.jac-lang.org/learn/examples/mtp_examples/rpg_game/) - AI-powered game level creation
- [RAG Chatbot Tutorial](https://www.jac-lang.org/learn/examples/rag_chatbot/Overview/) - Building chatbots with document retrieval
**🔬 Research**: The research journey of MTP is available on [Arxiv](https://arxiv.org/abs/2405.08965).
## Quick Links
- [Getting Started Guide](https://www.jac-lang.org/learn/jac-byllm/with_llm/)
- [Model Configuration](https://www.jac-lang.org/learn/jac-byllm/model_declaration/)
- [Jac Language Documentation](https://www.jac-lang.org/)
- [GitHub Repository](https://github.com/jaseci-labs/jaseci)
Raw data
{
"_id": null,
"home_page": null,
"name": "byllm",
"maintainer": "Jason Mars",
"docs_url": null,
"requires_python": null,
"maintainer_email": "jason@jaseci.org",
"keywords": "llm, jaclang, jaseci, byLLM",
"author": "Jason Mars",
"author_email": "jason@jaseci.org",
"download_url": "https://files.pythonhosted.org/packages/41/95/661ff0be94f7f53741947746e55b73d42a2a1a948f005643d02e098667c0/byllm-0.4.1.post1.tar.gz",
"platform": null,
"description": "# byLLM - AI Integration Framework for Jac-lang\n\n[](https://pypi.org/project/mtllm/) [](https://github.com/jaseci-labs/jaseci/actions/workflows/test-jaseci.yml)\n\nMeaning Typed Programming (MTP) is a programming paradigm for AI integration where prompt engineering is hidden through code semantics. byLLM is the plugin built, exploring this hypothesis. byLLM is built as a plugin to the Jaseci ecosystem. This plugin can be installed as a PyPI package.\n\n```bash\npip install byllm\n```\n\n## Basic Example\n\nA basic usecase of MTP can be demonstrated as follows:\n\n```python\nimport from byllm {Model}\n\nglob llm = Model(model_name=\"openai\\gpt-4o\");\n\ndef translate_to(language: str, phrase: str) -> str by llm();\n\nwith entry {\n output = translate_to(language=\"Welsh\", phrase=\"Hello world\");\n print(output);\n}\n```\n\n## AI-Powered Object Generation\n\n```python\nimport from byllm {Model}\n\nglob llm = Model(model_name=\"gpt-4o\");\n\nobj Task {\n has description: str,\n priority: int,\n estimated_time: int;\n}\n\nsem Task.priority = \"priority between 0 (highest priority) and 10(lowest priority)\";\n\ndef create_task(description: str, previous_tasks: list[Task]) -> Task by llm();\n\nwith entry {\n tasks = [];\n new_task = create_task(\"Write documentation for the API\", tasks);\n print(f\"Task: {new_task.description}, Priority: {new_task.priority}, Time: {new_task.estimated_time}min\");\n}\n```\n\nThe `by` abstraction allows to automate semantic extraction from existing code semantics, eliminating manual prompt engineering while leveraging type annotations for structured AI responses.\n\n## Documentation and Examples\n\n**\ud83d\udcda Full Documentation**: [Jac byLLM Documentation](https://www.jac-lang.org/learn/jac-byllm/with_llm/)\n\n**\ud83c\udfae Complete Examples**:\n- [Fantasy Trading Game](https://www.jac-lang.org/learn/examples/mtp_examples/fantasy_trading_game/) - Interactive RPG with AI-generated characters\n- [RPG Level Generator](https://www.jac-lang.org/learn/examples/mtp_examples/rpg_game/) - AI-powered game level creation\n- [RAG Chatbot Tutorial](https://www.jac-lang.org/learn/examples/rag_chatbot/Overview/) - Building chatbots with document retrieval\n\n**\ud83d\udd2c Research**: The research journey of MTP is available on [Arxiv](https://arxiv.org/abs/2405.08965).\n\n## Quick Links\n\n- [Getting Started Guide](https://www.jac-lang.org/learn/jac-byllm/with_llm/)\n- [Model Configuration](https://www.jac-lang.org/learn/jac-byllm/model_declaration/)\n- [Jac Language Documentation](https://www.jac-lang.org/)\n- [GitHub Repository](https://github.com/jaseci-labs/jaseci)",
"bugtrack_url": null,
"license": "MIT",
"summary": "byLLM Provides Easy to use APIs for different LLM Providers to be used with Jaseci's Jaclang Programming Language.",
"version": "0.4.1.post1",
"project_urls": null,
"split_keywords": [
"llm",
" jaclang",
" jaseci",
" byllm"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "591de769b7755d8d0fa8f806db16bc697700e6e837b7892b9f75f21e76e0d11f",
"md5": "8bc90241717e1342f9e5b422572d08d0",
"sha256": "33f842a331f930d2ba6367b305d156e15d98300e03257dbb354bb67242864f50"
},
"downloads": -1,
"filename": "byllm-0.4.1.post1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "8bc90241717e1342f9e5b422572d08d0",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 16166,
"upload_time": "2025-09-01T19:24:33",
"upload_time_iso_8601": "2025-09-01T19:24:33.572826Z",
"url": "https://files.pythonhosted.org/packages/59/1d/e769b7755d8d0fa8f806db16bc697700e6e837b7892b9f75f21e76e0d11f/byllm-0.4.1.post1-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4195661ff0be94f7f53741947746e55b73d42a2a1a948f005643d02e098667c0",
"md5": "6aecb9610b53ec553d45107ffa52b85f",
"sha256": "409a524c04064df63704f9411a5a316d9b3fee285719a0174d0192d52021afdb"
},
"downloads": -1,
"filename": "byllm-0.4.1.post1.tar.gz",
"has_sig": false,
"md5_digest": "6aecb9610b53ec553d45107ffa52b85f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 13534,
"upload_time": "2025-09-01T19:24:34",
"upload_time_iso_8601": "2025-09-01T19:24:34.774294Z",
"url": "https://files.pythonhosted.org/packages/41/95/661ff0be94f7f53741947746e55b73d42a2a1a948f005643d02e098667c0/byllm-0.4.1.post1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-01 19:24:34",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "byllm"
}