1- import type {
2- EntityId ,
3- EntityUuid ,
4- OriginProvenance ,
5- ProvidedEntityEditionProvenance ,
6- UserId ,
7- WebId ,
8- } from "@blockprotocol/type-system" ;
9- import { createUsageRecord } from "@local/hash-backend-utils/service-usage" ;
1+ import type { EntityId , UserId , WebId } from "@blockprotocol/type-system" ;
102import type { GraphApi } from "@local/hash-graph-client" ;
11- import { HashEntity } from "@local/hash-graph-sdk/entity" ;
123import type { FlowUsageRecordCustomMetadata } from "@local/hash-isomorphic-utils/flows/types" ;
134import { generateUuid } from "@local/hash-isomorphic-utils/generate-uuid" ;
14- import { systemLinkEntityTypes } from "@local/hash-isomorphic-utils/ontology-type-ids" ;
15- import { stringifyError } from "@local/hash-isomorphic-utils/stringify-error" ;
16- import type { IncurredIn } from "@local/hash-isomorphic-utils/system-types/usagerecord" ;
175// import { StatusCode } from "@local/status";
186import { backOff } from "exponential-backoff" ;
197
@@ -34,7 +22,6 @@ import {
3422 isLlmParamsAnthropicLlmParams ,
3523 isLlmParamsGoogleAiParams ,
3624} from "./get-llm-response/types.js" ;
37- import { stringify } from "./stringify.js" ;
3825
3926export type UsageTrackingParams = {
4027 /**
@@ -107,7 +94,7 @@ export const getLlmResponse = async <T extends LlmParams>(
10794
10895 const requestId = generateUuid ( ) ;
10996
110- const { flowEntityId , stepId } = await getFlowContext ( ) ;
97+ const { stepId } = await getFlowContext ( ) ;
11198
11299 const { taskName } = customMetadata ?? { } ;
113100 let debugMessage = `[LLM Request ${ requestId } ] Getting response for model ${ llmParams . model } ` ;
0 commit comments