Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbushi committed Nov 8, 2024
1 parent 11b2ce4 commit 7ffb17a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 36 deletions.
36 changes: 0 additions & 36 deletions genkit-tools/common/src/api/reflection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,42 +76,6 @@ registry.registerPath({
},
},
});
registry.registerPath({
method: 'get',
path: '/api/traces',
summary: 'Retrieves all traces',
request: {
params: apis.ListTracesRequestSchema,
},
responses: {
'200': {
description: 'Success',
content: {
'application/json': {
schema: z.array(TraceDataSchema),
},
},
},
},
});
registry.registerPath({
method: 'get',
path: '/api/traces/{traceId}',
summary: 'Retrieves a trace by traceId',
request: {
params: apis.GetTraceRequestSchema,
},
responses: {
'200': {
description: 'Success',
content: {
'application/json': {
schema: TraceDataSchema,
},
},
},
},
});

const generator = new OpenApiGeneratorV3(registry.definitions);
const document = generator.generateDocument({
Expand Down
2 changes: 2 additions & 0 deletions samples/js-coffee-shop/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ configureGenkit({
dotprompt(),
],
enableTracingAndMetrics: true,
flowStateStore: 'firebase',
logLevel: 'debug',
traceStore: 'firebase',
});

// This example generates greetings for a customer at our new AI-powered coffee shop,
Expand Down
2 changes: 2 additions & 0 deletions samples/js-menu/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ configureGenkit({
]),
],
enableTracingAndMetrics: true,
flowStateStore: 'firebase',
logLevel: 'debug',
traceStore: 'firebase',
});

// Export all of the example prompts and flows
Expand Down

0 comments on commit 7ffb17a

Please sign in to comment.