Skip to content

Latest commit

 

History

History
54 lines (49 loc) · 13.4 KB

File metadata and controls

54 lines (49 loc) · 13.4 KB

LogTracesProjectsProjectIdTracesPostRequest

Example Usage

import { LogTracesProjectsProjectIdTracesPostRequest } from "galileo-generated/models/operations";

let value: LogTracesProjectsProjectIdTracesPostRequest = {
  projectId: "<value>",
  body: {
    logStreamId: "00000000-0000-0000-0000-000000000000",
    sessionId: "00000000-0000-0000-0000-000000000000",
    traces: [
      {
        input: "who is a smart LLM?",
        output: "I am!",
        createdAt: new Date("2026-01-28T00:17:57.438225Z"),
        userMetadata: {},
        tags: [],
        metrics: {},
        datasetMetadata: {},
        spans: [
          {
            type: "llm",
            input: [
              {
                content: "Question: who is a smart LLM?",
                role: "user",
              },
            ],
            output: {
              content: "I am!",
              role: "user",
            },
            name: "",
            createdAt: new Date("2026-01-28T00:17:57.438190Z"),
            userMetadata: {},
            tags: [],
            metrics: {},
            datasetMetadata: {},
          },
        ],
      },
    ],
  },
};

Fields

Field Type Required Description Example
projectId string ✔️ N/A
body models.LogTracesIngestRequest ✔️ N/A {
"log_stream_id": "00000000-0000-0000-0000-000000000000",
"session_id": "00000000-0000-0000-0000-000000000000",
"traces": [
{
"created_at": "2026-01-28T00:17:57.438225Z",
"dataset_metadata": {},
"input": "who is a smart LLM?",
"metrics": {},
"name": "",
"output": "I am!",
"spans": [
{
"created_at": "2026-01-28T00:17:57.438190Z",
"dataset_metadata": {},
"input": [
{
"content": "Question: who is a smart LLM?",
"role": "user"
}
],
"metrics": {},
"name": "",
"output": {
"content": "I am!",
"role": "user"
},
"tags": [],
"type": "llm",
"user_metadata": {}
}
],
"tags": [],
"type": "trace",
"user_metadata": {}
}
]
}