mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 01:58:31 +00:00
chore: generate
This commit is contained in:
parent
48fc9e3cc3
commit
c3637753bc
1 changed files with 6 additions and 3 deletions
|
|
@ -400,8 +400,7 @@ const contentWith = (state: ResponseState, content: ReadonlyArray<ContentPart>):
|
|||
message: Message.assistant(content),
|
||||
})
|
||||
|
||||
const appendContent = (state: ResponseState, part: ContentPart) =>
|
||||
contentWith(state, [...state.message.content, part])
|
||||
const appendContent = (state: ResponseState, part: ContentPart) => contentWith(state, [...state.message.content, part])
|
||||
|
||||
const replaceContent = (state: ResponseState, index: number, part: ContentPart) =>
|
||||
contentWith(
|
||||
|
|
@ -497,7 +496,11 @@ const reduceToolInputEnd = (state: ResponseState, event: ToolInputEnd): Response
|
|||
...state,
|
||||
toolInputs: {
|
||||
...state.toolInputs,
|
||||
[event.id]: { ...current, name: event.name, providerMetadata: event.providerMetadata ?? current.providerMetadata },
|
||||
[event.id]: {
|
||||
...current,
|
||||
name: event.name,
|
||||
providerMetadata: event.providerMetadata ?? current.providerMetadata,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue