Integrate Latitude into your Python applications using the Python SDK.
Bothproject_id
andversion_uuid
options can be overridden on a per-method basis when needed.
asyncio
library.
prompts
: Methods for managing and running promptslogs
: Methods for pushing logs to Latitudeevaluations
: Methods for pushing evaluation results to LatitudeApiError
instances when API requests fail. You can catch and handle these errors:
latitude.prompts.run()
are automatically logged in Latitude, capturing inputs, outputs, performance metrics, and trace information.custom_identifier
parameter to tag runs for easier filtering and analysis in the Latitude dashboard.uuid
that can be used to reference the specific run later.