Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphlang

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphlang

A DSL for defining LLM agent graphs with dotlang-inspired syntax

  • 0.0.1
  • PyPI
  • Socket score

Maintainers
1

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc