microsoft / microsoft/TypeChat
Add `multiline` option to `processRequests`
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 8.7k
- Forks
- 414
- Avg merge
- 3h 8m
- Merged PRs (30d)
- 3
Description
/**
* A request processor for interactive input or input from a text file. If an input file name is specified,
* the callback function is invoked for each line in file. Otherwise, the callback function is invoked for
* each line of interactive input until the user types "quit" or "exit".
* @param interactivePrompt Prompt to present to user.
* @param inputFileName Input text file name, if any.
* @param processRequest Async callback function that is invoked for each interactive input or each line in text file.
*/
export declare function processRequests(interactivePrompt: string, inputFileName: string | undefined, processRequest: (request: string) => Promise<void>): Promise<void>;
If I didn't miss anything, there is currently no possibility to pass multiline text to processRequests. Since prompts can be written over multiple lines, it would be convenient to have that option.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the TypeScript declaration and implementation of processRequests. Check how interactive and file input are split into requests, then define and verify multiline handling so prompts can contain multiple lines without ending processing prematurely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100