Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

update python generator

Max Deichmanne8a8cca89b20
diff --git a/.vscode/settings.json b/.vscode/settings.json
index a957609b10..b5033388d1 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,27 +1,27 @@
{
- "editor.codeActionsOnSave": {
- "source.fixAll.eslint": true
- },
- "editor.defaultFormatter": "esbenp.prettier-vscode",
- "editor.formatOnSave": true,
- "editor.rulers": [100],
- "editor.tabSize": 2,
-
- "eslint.validate": [
- "javascript",
- "javascriptreact",
- "astro",
- "typescript",
- "typescriptreact"
- ],
-
- "eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }],
- "typescript.tsdk": "node_modules/typescript/lib",
- "prettier.documentSelectors": [
- "**/*.{cjs,mjs,ts,tsx,astro,md,mdx,json,yaml,yml}"
- ],
- "mdx.experimentalLanguageServer": true,
- "[astro]": {
- "editor.defaultFormatter": "astro-build.astro-vscode"
- }
- }
\ No newline at end of file
+ "editor.codeActionsOnSave": {
+ "source.fixAll.eslint": true
+ },
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
+ "editor.formatOnSave": true,
+ "editor.rulers": [100],
+ "editor.tabSize": 2,
+
+ "eslint.validate": [
+ "javascript",
+ "javascriptreact",
+ "astro",
+ "typescript",
+ "typescriptreact"
+ ],
+
+ "eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }],
+ "typescript.tsdk": "node_modules/typescript/lib",
+ "prettier.documentSelectors": [
+ "**/*.{cjs,mjs,ts,tsx,astro,md,mdx,json,yaml,yml}"
+ ],
+ "mdx.experimentalLanguageServer": true,
+ "[astro]": {
+ "editor.defaultFormatter": "astro-build.astro-vscode"
+ }
+}
diff --git a/fern/api/generators.yml b/fern/api/generators.yml
index 8673789ce7..0b5db84635 100644
--- a/fern/api/generators.yml
+++ b/fern/api/generators.yml
@@ -14,8 +14,8 @@ groups:
version: 0.3.6
output:
location: pypi
- package-name: langfuse
- token: ${PYPI_TOKEN}
+ url: pypi.buildwithfern.com
+ package-name: finto-fern-langfuse
- name: fernapi/fern-openapi
version: 0.0.26
output:
diff --git a/src/pages/traces.tsx b/src/pages/traces.tsx
index 1ac9557fd0..e25ff9e46b 100644
--- a/src/pages/traces.tsx
+++ b/src/pages/traces.tsx
@@ -5,12 +5,17 @@ import {
type GridRowsProp,
type GridColDef,
type GridRowParams,
- GridToolbar,
type GridFilterItem,
type GridFilterOperator,
type GridFilterInputValueProps,
SUBMIT_FILTER_STROKE_TIME,
type GridFilterModel,
+ GridToolbarContainer,
+ GridToolbarExport,
+ GridToolbarFilterButton,
+ GridCell,
+ type GridCellProps,
+ GridRow,
} from "@mui/x-data-grid";
import { api } from "~/utils/api";
import { useRouter } from "next/router";
@@ -23,12 +28,10 @@ import {
import { type RouterInput, type RouterOutput } from "../utils/types";
import { Button } from "../components/ui/button";
import Link from "next/link";
-import { ArrowUpRight } from "lucide-react";
+import { ArrowUpRight, Copy } from "lucide-react";
import ObservationDisplay from "../components/observationDisplay";
import { type TextFieldProps, TextField, Box } from "@mui/material";
import React from "react";
-import { type inferRouterInputs } from "@trpc/server";
-import { type AppRouter } from "../server/api/root";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faSpinner } from "@fortawesome/free-solid-svg-icons";
@@ -170,6 +173,7 @@ export default function Traces() {
const columns: GridColDef[] = [
{
field: "id",
+ headerClassName: "super-app-theme--header",
type: "actions",
headerName: "ID",
width: 100,
@@ -185,25 +189,29 @@ export default function Traces() {
},
{
field: "timestamp",
+ hideable: false,
type: "dateTime",
headerName: "Timestamp",
width: 170,
},
- { field: "name", headerName: "Name", minWidth: 200 },
- { field: "status", headerName: "Status", minWidth: 100 },
+ { field: "name", hideable: false, headerName: "Name", minWidth: 200 },
+ { field: "status", hideable: false, headerName: "Status", minWidth: 100 },
{
field: "statusMessage",
+ hideable: false,
headerName: "Status Message",
width: 200,
},
{
field: "attributes",
+ hideable: false,
headerName: "Attributes",
flex: 1,
filterOperators: quantityOnlyOperators,
},
{
field: "scores",
+ hideable: false,
headerName: "Scores",
flex: 1,
},
@@ -263,11 +271,17 @@ export default function Traces() {
<DataGrid
rows={rows}
columns={columns}
- slots={{ toolbar: GridToolbar }}
loading={traces.isLoading}
filterModel={filterModel}
filterMode="server"
onFilterModelChange={onFilterChange}
+ slots={{
+ row: Single,
+ toolbar: CustomToolbar,
+ }}
+ // slotProps={{
+ // row: { trace: traces.data },
+ // }}
autoHeight
/>
</TabsContent>
@@ -283,6 +297,19 @@ export default function Traces() {
);
}
+const CustomRow = (props: GridRowsProp) => {
+ return <GridRow {...other}></GridRow>;
+};
+
+function CustomToolbar() {
+ return (
+ <GridToolbarContainer>
+ <GridToolbarFilterButton />
+ <GridToolbarExport />
+ </GridToolbarContainer>
+ );
+}
+
function lastCharacters(str: string, n: number) {
return str.substring(str.length - n);
}
@@ -290,6 +317,8 @@ function lastCharacters(str: string, n: number) {
const Single = (props: { trace: RouterOutput["traces"]["all"][number] }) => {
const { trace } = props;
+ console.log(props);
+
if (trace.nestedObservation)
return (
<div className="w-[550px] flex-none rounded-md border px-3">