https://github.com/project-llama/llamascript
World’s first and simplest AI-oriented programming language using Ollama.
https://github.com/project-llama/llamascript
no-code ollama
Last synced: 6 months ago
JSON representation
World’s first and simplest AI-oriented programming language using Ollama.
- Host: GitHub
- URL: https://github.com/project-llama/llamascript
- Owner: Project-Llama
- License: apache-2.0
- Created: 2024-04-30T20:53:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-29T16:43:30.000Z (about 1 year ago)
- Last Synced: 2024-10-30T01:02:22.474Z (9 months ago)
- Topics: no-code, ollama
- Language: Python
- Homepage: https://pypi.org/project/llamascript/
- Size: 117 KB
- Stars: 21
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
# LlamaScript
[](https://github.com/Project-Llama/llamascript/actions/workflows/format.yml)
[](https://github.com/Project-Llama/llamascript/actions/workflows/python-publish.yml)
[](https://github.com/Project-Llama/llamascript/actions/workflows/github-code-scanning/codeql)[](https://marketplace.visualstudio.com/items?itemName=zanderlewis.llamascript)

LlamaScript is a no-code AI chatbot using Ollama.
## Table of Contents
- [LlamaScript](#llamascript)
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)
- [Examples](https://github.com/Project-Llama/llamascript/blob/main/examples/)## Installation
You can install LlamaScript using pip:
```bash
pip install llamascript
```## Usage
To use LlamaScript, create a `.llama` file and write your script. Here are a few functions you can use:
```llamascript
use(...) // Specify the model to use
prompt(...) // Prompt the user for input
system(...) // System message for the AI
chat(...) // Chat with the user
save(...) // Save the model
```Here's an example:
```llamascript
use("llama3")
prompt("Why is the sky blue?")
chat()
```> [!NOTE]\
> For more examples see [here.](https://github.com/Project-Llama/llamascript/blob/main/examples/)You can then run LlamaScript with the following command:
```bash
llamascript myscript.llama
```## License
LlamaScript is licensed under the Apache 2.0 License. See [LICENSE](https://github.com/Project-Llama/llamascript/blob/main/LICENSE) for more information.