Skip to content
Open
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
6 changes: 4 additions & 2 deletions deploybot-ts/src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,14 @@ const _handleNextStep = async (
switch (nextStep.intent) {
case 'done_for_now':
stateId = await saveThreadState(thread)

await hl.createHumanContact({
spec: {
msg: nextStep.message,
state: { stateId },
},
})

console.log(`thread sent to humanlayer`)
return false
case 'request_more_information':
Expand Down Expand Up @@ -187,7 +188,7 @@ const _handleNextStep = async (
})
console.log(`thread sent to humanlayer`)
}

return false
case 'await':
// todo we should have a tool to do this durably :slight_smile:
Expand Down Expand Up @@ -268,6 +269,7 @@ export const handleNextStep = async (thread: Thread): Promise<void> => {
channel_or_user_id: thread.initial_slack_message?.channel_id || "",
experimental_slack_blocks: true,
bot_token: slackBotToken || undefined,
thread_ts: thread.initial_slack_message?.thread_ts || undefined,
}
}
} else if (thread.initial_email) {
Expand Down