Skip to content

Commit e9f6df8

Browse files
committed
rename to serializeStepContent
1 parent 5b935d5 commit e9f6df8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mapping.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export async function serializeNewMessagesInStep<TOOLS extends ToolSet>(
188188
const assistantContent = hasToolResults
189189
? step.content.slice(0, toolResultIndex)
190190
: step.content;
191-
const { content, fileIds } = await serializeLanguageModelV2Content(
191+
const { content, fileIds } = await serializeStepContent(
192192
ctx,
193193
component,
194194
assistantContent,
@@ -221,7 +221,7 @@ export async function serializeNewMessagesInStep<TOOLS extends ToolSet>(
221221

222222
if (hasToolResults) {
223223
const toolContent = step.content.slice(toolResultIndex);
224-
const { content, fileIds } = await serializeLanguageModelV2Content(
224+
const { content, fileIds } = await serializeStepContent(
225225
ctx,
226226
component,
227227
toolContent,
@@ -282,7 +282,7 @@ function getMimeOrMediaType(part: { mediaType?: string; mimeType?: string }) {
282282
return undefined;
283283
}
284284

285-
export async function serializeLanguageModelV2Content(
285+
export async function serializeStepContent(
286286
ctx: ActionCtx,
287287
component: AgentComponent,
288288
content: StepResult<ToolSet>["content"],

0 commit comments

Comments
 (0)