Contents
Quickstart
- Using TrueFoundry SDK
- Using HTTP API
Setup the TrueFoundry SDK
To start querying request logs, install and configure the TrueFoundry SDK and CLI.Follow the CLI Setup Guide for installation instructions and authentication steps.Once setup is complete, you can use the SDK to query tracing data programmatically.
Fetch using TrueFoundry SDK
Each request to the LLM Gateway generates a trace—a timeline of everything that happened, from the incoming request to guardrails to the model call and any external APIs. Let’s pull the latest Gateway traces and see real data quickly.Fetch the latest LLM Gateway request logs:tracing_project_fqn from the Fetch via API button on the Request Logs page
Gateway input and output
Gateway request input and output (tfy.input / tfy.output) can be large. Control whether they are returned with the include_input_and_output query parameter.
- TrueFoundry SDK defaults to
false(omits input/output). Passinclude_input_and_output=Truewhen you need them. - HTTP API defaults to
truewhen the query parameter is omitted. Passinclude_input_and_output=falseto skip reading those columns.
- Using TrueFoundry SDK
- Using HTTP API