Tutorial: Getting Started with the Examples¶
By the end of this tutorial, you’ll have built and published your own agent and tools, installed Murmur, and confirmed everything works by running the provided examples. You’ll be ready to create more advanced agents and tools using the same approach.
Prerequisites¶
Do this first!
How to: Setup your own PyPI server. Use it to host your own agents and tools.
Install Murmur¶
- (Optional) Create and activate a python virtual environment:
- Install
murmur-nexus
andmur
, both are essential for running the examples.
murmur-nexus
: Murmur enables the use of published agents and tools within your orchestration code.mur
: Mur is a command-line interface (CLI)for creating and managing agents and tools.
Verify the installation by running mur --help
.
- Done. To the moon! 🚀
Issues?
If during the installation process you experience any issues, please join our Discord and ask for help.
Publish an Agent¶
- Clone the murmur-example-artifacts repo into your workspace directory.
- Build the
friendly-assistant
agent. Optionally edit themurmur-build.yaml
file first.
You should see something like this:
Built for agent completed.
- Then simply run:
Connection refused?
If you get a Connection refused
error, it means either your PyPI server is not running or you didn't set the MURMUR_INDEX_URL
environment variable in your current terminal session.
To prevent re-setting the environment variable every time you open a new terminal session, add the above to your .bashrc
or .zshrc
file.
- You’ve published your first agent 🎉.
Publish Tools¶
- Build the
add
tool. Optionally edit themurmur-build.yaml
file first. In the root project directory wheremurmur-example-artifacts
resides (cd ../../
) do:
- Then run:
-
You’ve published your first tool 🔥.
-
Repeat step 1 to 3 for publishing tools for
multiply
,divide
, andis_prime
. These are the minimum required tools for testing the basic examples.
Install Agents and Tools¶
- Go to your
/murmur-artifacts
directory (cd ../../
) and clone the murmur.
- cd into the
examples/basic
directory.
- Open
murmur.yaml
and adjust names/versions if needed. Here is what the file should look like:
name: examples-basic
version: 1.0.0
agents:
- name: friendly-assistant
version: 1.0.0
tools:
- name: add
version: 1.0.0
- name: multiply
version: 1.0.0
- name: divide
version: 1.0.0
- name: is_prime
version: 1.0.0 # (1)
- It's recommended to put a strict version for maximum control.
Almost there! You just need to install requirements for using the examples.
- Install the requirements.txt file.
- Create
OPENAI_API_KEY
environment variable. Get OpenAI API key.
- Install all the agents and tools from
murmur.yaml
:
- Execute an example. E.g. for LangGraph:
You just orchestrated your first agent and tools with Murmur! 🎉
Wrap Up¶
- You can now run the examples and build your own agents and tools.
- Star the murmur repo 🌟 and join our Discord to continue learning.
- Submit any feature requests or bugs; we’d love your feedback.