Download src/commands/ask.ts from Snapkitty/myapplication: direct link, hf CLI and curl.
- Browser
- Download file 236 Bytes
-
https://huggingface.co/Snapkitty/myapplication/resolve/main/src/commands/ask.ts
- Command line
-
hf download hf://Snapkitty/myapplication/src/commands/ask.ts
-
curl -L -o ask.ts https://huggingface.co/Snapkitty/myapplication/resolve/main/src/commands/ask.ts
236 Bytes
| import { askAgent, agentName } from '../lib/agents' | |
| export async function handleAsk(agent: string, message: string): Promise<string> { | |
| const reply = await askAgent(agent, message) | |
| return `**${agentName(agent)}**\n${reply}` | |
| } | |