Overview
This tutorial will guide you through initializing the Galileo Logger and Agent Control SDK, running your agent with the Galileo Logger, and decorating your LLM and tool calls. By the end of this guide, you’ll be ready to start monitoring your controls.Before you begin
This tutorial assumes you have completed the following procedures:Steps
Initialize the Galileo Logger and the Agent Control SDK
Use the Galileo Logger around the agent run to write traces, spans, and control spans to the configured project and Log stream. The exact logger API may differ depending on your SDK version. You must initialize Galileo with the same project and Log stream that you plan to create controls for.The following example shows how to initialize the Galileo Logger.Note that:
- The value for
target_idshould belogger.log_stream_id, not the Log stream name. The logger resolves the human-readable project and Log stream names to IDs, and Agent Control uses that resolvedlog_stream_idto fetch the controls bound in the console. - You must use the same API key unless your deployment has a separate Agent Control key. The key must be valid for your targeted Galileo environment.