mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-26 00:46:23 +02:00
add greeting
This commit is contained in:
parent
c5bf273bc3
commit
56a4d0ab47
1 changed files with 22 additions and 0 deletions
|
|
@ -30,6 +30,24 @@ export async function updateState(agent: string, runId: string) {
|
|||
}
|
||||
}
|
||||
|
||||
function renderGreeting() {
|
||||
const logo = `
|
||||
|
||||
$$\\ $$\\
|
||||
$$ | $$ |
|
||||
$$$$$$\\ $$$$$$\\ $$\\ $$\\ $$\\ $$$$$$$\\ $$$$$$\\ $$$$$$\\ $$$$$$\\ $$\\ $$\\
|
||||
$$ __$$\\ $$ __$$\\ $$ | $$ | $$ |$$ __$$\\ $$ __$$\\ \\____$$\\_$$ _| \\$$\\ $$ |
|
||||
$$ | \\__|$$ / $$ |$$ | $$ | $$ |$$ | $$ |$$ / $$ | $$$$$$$ | $$ | \\$$$$ /
|
||||
$$ | $$ | $$ |$$ | $$ | $$ |$$ | $$ |$$ | $$ |$$ __$$ | $$ |$$\\ $$ $$<
|
||||
$$ | \\$$$$$$ |\\$$$$$\\$$$$ |$$$$$$$ |\\$$$$$$ |\\$$$$$$$ | \\$$$$ |$$ /\\$$\\
|
||||
\\__| \\______/ \\_____\\____/ \\_______/ \\______/ \\_______| \\____/ \\__/ \\__|
|
||||
|
||||
|
||||
`;
|
||||
console.log(logo);
|
||||
console.log("\nHow can i help you today?");
|
||||
}
|
||||
|
||||
export async function app(opts: {
|
||||
agent: string;
|
||||
runId?: string;
|
||||
|
|
@ -39,6 +57,10 @@ export async function app(opts: {
|
|||
const renderer = new StreamRenderer();
|
||||
const state = new AgentState(opts.agent, opts.runId);
|
||||
|
||||
if (opts.agent === "copilot" && !opts.runId) {
|
||||
renderGreeting();
|
||||
}
|
||||
|
||||
// load existing and assemble state if required
|
||||
let runId = opts.runId;
|
||||
if (runId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue