Skip to main content

GraphLang

GraphLang provides a domain-specific language (DSL) to define large language model (LLM) agent graphs. The DSL allows you to structure and manage complex interactions between LLMs and their attributes. This library helps you create agent graphs with flexible syntax and is designed for advanced AI workflows.

Features

  • Define LLM agent graphs with nodes, edges, and attributes
  • Use flexible syntax to add models and prompts
  • Supports complex attribute assignment via lists, tuples, and dictionaries

Installation

Install the library using pip:

pip install graphlang

Example Usage

Example DSL Graph

Here is an example graph defined using the DSL:

start node1;

node node1, node2;
node1 -> node2;

graph my_graph {
    model my_model {
        attribute = 1;
    }
    prompt my_prompt {
        text = "Enter your message.";
    }
}

DSL Syntax

The DSL follows these key rules:

Development

For development, install the necessary dependencies:

pip install graphlang[dev]

Run tests with:

pytest

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for graphlang 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for graphlang 0.0.1
File Size Uploaded Provenance Actions
graphlang-0.0.1.tar.gz 3.0 kB Without provenance Details for graphlang-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for graphlang 0.0.1
File Interpreter ABI Platform Actions
graphlang-0.0.1-py3-none-any.whl Python 3 none any Details for graphlang-0.0.1-py3-none-any.whl

Total release size: 5.6 kB

Release files / graphlang-0.0.1.tar.gz

Download URL graphlang-0.0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
49758496243e9bf885ecb39081e7b525f2a23e7ba50b34b53517e3735d4d5be0
BLAKE2b-256 checksum
How to use checksums
3b1b9b303adb1d5991bf6792c8e5003fa0718e36c875e5bc5f70a4067f37a07d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / graphlang-0.0.1-py3-none-any.whl

Download URL graphlang-0.0.1-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33c24ba0a3413932be5dcdc8e9179116ecef533aed52bc3b30d01624fe9eb69c
BLAKE2b-256 checksum
How to use checksums
88ccc0cb796321cc0c1cdd559ef3e0202fabd0c6e2a8de841752866db6510114
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Security for graphlang 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page