Skip to main content

Get started in three steps

Get your documentation site running locally and make your first customization.
1

Install nanomon

pip install nanomon
2

Set environment variables

Obtain project credentials in the project settings and set the environment variables:
NANOMON_CLIENT_ID=<PROJECT_CLIENT_ID>
NANOMON_SECRET_ID=<PROJECT_CLIENT_ID>
3

Decorate your tools

Decorate the tools you want to monitor.
@nanomon
def your_tool(<inputs>) -> <output>:
	<your code>
4

Integrate with your flow

Basic setup: Set the nanomon integration right before invoking your graph.
with nanomon.run(
	tags=["task_estimation_flow"], # any tags you want
	metadata={field: value}
):
graph.ainvoke(initial_state)