Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/agents/content_processor_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
import {Content} from '@google/genai';
import {cloneDeep} from 'lodash';
import {cloneDeep} from '../utils/lodash.js';

import {createEvent, Event, getFunctionCalls, getFunctionResponses} from '../events/event.js';

Expand Down
2 changes: 1 addition & 1 deletion core/src/agents/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// TODO - b/436079721: implement traceMergedToolCalls, traceToolCall, tracer.
import {Content, createUserContent, FunctionCall, Part} from '@google/genai';
import {isEmpty} from 'lodash';
import {isEmpty} from '../utils/lodash.js';

import {InvocationContext} from '../agents/invocation_context.js';
import {createEvent, Event, getFunctionCalls} from '../events/event.js';
Expand Down
2 changes: 1 addition & 1 deletion core/src/agents/llm_agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import {Content, FunctionCall, GenerateContentConfig, Part, Schema} from '@google/genai';
import {cloneDeep} from 'lodash';
import {cloneDeep} from '../utils/lodash.js';
import {z} from 'zod';

import {BaseCodeExecutor} from '../code_executors/base_code_executor.js';
Expand Down
2 changes: 1 addition & 1 deletion core/src/code_executors/code_execution_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
import {Content, Language, Outcome, Part} from '@google/genai';
import {cloneDeep} from 'lodash';
import {cloneDeep} from '../utils/lodash.js';

import {base64Encode, isBase64Encoded} from '../utils/env_aware_utils.js';

Expand Down
2 changes: 1 addition & 1 deletion core/src/code_executors/code_executor_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {cloneDeep} from 'lodash';
import {cloneDeep} from '../utils/lodash.js';

import {State} from '../sessions/state.js';

Expand Down
2 changes: 1 addition & 1 deletion core/src/sessions/in_memory_session_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {cloneDeep} from 'lodash';
import {cloneDeep} from '../utils/lodash.js';

import {Event} from '../events/event.js';
import {randomUUID} from '../utils/env_aware_utils.js';
Expand Down
10 changes: 10 additions & 0 deletions core/src/utils/lodash.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/

import pkg from 'lodash';

export const {cloneDeep, isEmpty} = pkg;
export default pkg;
Loading