An AI Agent IaC tool that aims to make developing and deploying AI Agents easier.
Project description
woodwork-engine
Welcome to woodwork-engine, an AI Agent IaC tool that aims to make developing and deploying AI Agents easier.
Through defining components in a configuration language, an LLM will decompose the task into actionable steps, which can be executed using the supplied tools. We use latest research to inform design decisions, and we implement this as most of the setup is copy/paste across projects. Through only focussing on the necessary components of a system, this package should make designing custom, vertical agents much easier.
Table of Contents
Features
- A custom config language, woodwork (.ww files), allowing agent components to be declared
- Integrations and communication between components are handled
- Additional customisation or extension can be provided by implementing some of our interfaces
A roadmap is provided with details on future features.
Installation
- Run
pip install woodwork-engine: This gives access to thewoodworkCLI tool, along with the ability to parse and deploy AI Agent components from .ww files - Install the Woodwork extension on VSCode if relevant: This provides syntax highlighting and intellisense for code in .ww files
Usage
- Begin by duplicating the
.env.examplefile and placing it in your project's root directory - Rename the file to
.env(ensure this is part of your project's.gitignoreso that it isn't committed) - Depending on the
.wwconfiguration file, populate the.envfile with your corresponding keys
See the .env.example file for further details.
Once you've configured your .ww config file and your .env file, there are two ways to run woodwork: A standalone application, or used as a dependency.
Standalone Application
- Create a main.ww file and write some code: This file is where component declarations are read from. For some inspiration, consult the examples
- Run
woodwork init: This installs the necessary dependencies to run your components - Run
woodwork: This activates the components and initializes a logger
As A Dependency
When using woodwork as a dependency, you will need to build your own logger implementation. Not building your own logger will result in no logs being generated but the application will still run.
- (Optional) Create a
./configdirectory: This is where the logging configuration will live. - (Optional) Copy the
log_config.jsoninto your./configdirectory: This configures your logger - In your file you'd like to utilize
woodworkin, addfrom woodwork import __main__ as m - See
dev-main.pyfor how to build your logger and configure callingwoodwork
Developer Setup
If you are interested in contributing, the following steps are used to activate a developer environment.
- Install
pre-commitif needed viapip install pre-commit - Run
pre-commit install [--hook-type pre-push]to run linting and formatting before commiting or pushing
Available Arguments
You can pass arguments to woodwork. For more details, see woodwork --help.
| Argument | Options | Default | Notes |
|---|---|---|---|
--mode |
run, debug, embed, clear |
run |
Debug is deprecated, use Run instead. If using a workflow, you must use embed or clear. |
--init |
none, isolated, all |
none |
|
--workflow |
none, add, remove, find |
none |
If specifying a workflow, you must provide a target. |
--target |
String | "" |
Defines the target for the workflow. For add workflows, specify the file path to the workflow. For remove workflows, specify the workflow ID. For find workflows, specify the search query. |
--version |
N/A | N/A | Prints the current version of Woodwork. Note: this will override any other arguments. |
When calling your script, you can pass argument to the script as long as they do not conflict with woodworks arguments.
Logging
In log_config.json, you can set the desired logging levels for stdout and the generated log file. Do this by editing the respective level property in the json for the respective handler. Options include the standard logging levels: DEBUG, INFO, WARNING, ERROR, CRITICAL.
You can monitor the log file during execution by opening a terminal and entering tail -f logs/debug_log.log (or your custom log file name if modified in the log_config.json)
Examples
For some examples, consult the examples folder. ENV variables are denotes by a '$', place a .env file in the same directory as the main.ww file and populate it with the necessary variables.
Contributing
To view the contributing guide for woodwork, the CONTRIBUTING.md file in the meta repository contains more information. We would love your help! Additionally, if you prefer working on other projects aligned with language servers or web development, woodwork-language and woodwork-website could be worth taking a look at.
License
woodwork-engine uses a GPL license, which can be read in full here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file woodwork_engine-0.2.8.tar.gz.
File metadata
- Download URL: woodwork_engine-0.2.8.tar.gz
- Upload date:
- Size: 47.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
771aa33541562a7ac54ae13f362d367d0a197ad814ebb4fdf7c753e454f8ae21
|
|
| MD5 |
bd17df2cb034f1c81eb45f25641168dd
|
|
| BLAKE2b-256 |
18d0dbb5a8123900f1e932290b4518c0f8b7d8dde287ddf80832afb34cd309ad
|
File details
Details for the file woodwork_engine-0.2.8-py3-none-any.whl.
File metadata
- Download URL: woodwork_engine-0.2.8-py3-none-any.whl
- Upload date:
- Size: 61.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09ed57405e89dcda923ad86be5dc831ab4926e7d63b22cde91097e3d019e162d
|
|
| MD5 |
ac00e3563eb31773cb4cbc4dcc4688be
|
|
| BLAKE2b-256 |
afb5bc067f24e3e2cfa9652ee9f6b7d2b891af894df3011e3a3f9b44c5d41937
|