MCPcopy
hub / github.com/Agenta-AI/agenta / parse_ref_slug_to_str

Function parse_ref_slug_to_str

api/oss/src/core/tracing/utils.py:271–286  ·  view source on GitHub ↗
(
    ref_slug: str,
)

Source from the content-addressed store, hash-verified

269
270
271def parse_ref_slug_to_str(
272 ref_slug: str,
273):
274 clean_ref_slug = None
275
276 try:
277 clean_ref_slug = str(ref_slug)
278 except Exception as e:
279 log.error(
280 "ref_slug must be a string, got %s [%s]",
281 type(ref_slug),
282 ref_slug,
283 )
284 raise TypeError() from e
285
286 return clean_ref_slug
287
288
289def parse_trace_id_to_uuid(

Callers 1

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected