refactor(agent): require complete send options
This commit is contained in:
@@ -1092,7 +1092,7 @@ export function apply(ctx: Context, config: AcpConfig): void {
|
||||
if (additionalContext !== undefined) {
|
||||
rec.agent.inject(additionalContext.content, { source: additionalContext.source })
|
||||
}
|
||||
rec.agent.send(preparedContent, { source: { kind: 'user' } })
|
||||
rec.agent.followup(preparedContent, { source: { kind: 'user' } })
|
||||
})
|
||||
return { stopReason }
|
||||
},
|
||||
|
||||
@@ -2507,7 +2507,7 @@ export function createTuiChat(
|
||||
} else if (agent.status === 'running') {
|
||||
agent.steer(content, { source: { kind: 'user' } })
|
||||
} else {
|
||||
agent.send(content, { source: { kind: 'user' } })
|
||||
agent.followup(content, { source: { kind: 'user' } })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user