Learn how to build and monitor a LangChain AI Agent using Galileo for tracing and observability
.env.example
file, and rename it to .env
in your project directory.
Set your Galileo and OpenAI environment variables:
main.py
)@tool
functions that the agent can call, such as:
galileo_context
+ GalileoCallback
)galileo_context
tags all logs under a project and stream.
The GalileoCallback
automatically traces agent behavior in Galileo.
.env
variables.galileo_context
.GalileoCallback
to trace the run.langchain-docs
project and my_log_stream
.
@tool
-decorated functions and include them in the agent.
gpt-4
for another supported OpenAI model in ChatOpenAI
.
project
and log_stream
in galileo_context
for better trace organization.
.env
fileflush()
is being called at the end of execution