From 4bb04d8d98543ac282c89dcdc8e48ed4bb9b253c Mon Sep 17 00:00:00 2001 From: Tanushree Sharma Date: Mon, 23 Dec 2024 09:10:27 -0800 Subject: [PATCH] linting --- .../how_to_guides/tracing/upload_files_with_traces.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/observability/how_to_guides/tracing/upload_files_with_traces.mdx b/docs/observability/how_to_guides/tracing/upload_files_with_traces.mdx index 1c7610e2..750d135b 100644 --- a/docs/observability/how_to_guides/tracing/upload_files_with_traces.mdx +++ b/docs/observability/how_to_guides/tracing/upload_files_with_traces.mdx @@ -81,9 +81,9 @@ Each \`Attachment\` requires:\n - \`mime_type\` (str): The MIME type of the file (e.g., \`"image/png"\`). - \`data\` (bytes): The binary content of the file.\n - Simply decorate a function with \`@traceable\` and include your \`Attachment\` instances as arguments.` ), - TypeScriptBlock( - `import { traceable } from "langsmith/traceable";\n + Simply decorate a function with \`@traceable\` and include your \`Attachment\` instances as arguments.` ), +TypeScriptBlock( +`import { traceable } from "langsmith/traceable";\n const traceableWithAttachments = traceable( ( val: number, @@ -130,7 +130,7 @@ Each \`Attachment\` requires:\n const text = "Hello, world!";\n // Call traceableWithAttachments with the files const result = await traceableWithAttachments(val, text, image, mp3ArrayBuffer, video, pdfArrayBuffer, csv);`, - `In the TypeScript SDK, you can add attachments to traces by using \`Uint8Array\` or \`ArrayBuffer\` as data types. + `In the TypeScript SDK, you can add attachments to traces by using \`Uint8Array\` or \`ArrayBuffer\` as data types. Each attachment's MIME type is specified within \`extractAttachments\`:\n\n - \`Uint8Array\`: Useful for handling binary data directly. - \`ArrayBuffer\`: Represents fixed-length binary data, which can be converted to \`Uint8Array\` as needed.\n