-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to pass file ID/path as initial input text field value #161
Conversation
Signed-off-by: Julien Veyssier <[email protected]>
let's update the docs with an example too (https://github.com/nextcloud/assistant/blob/main/docs/developer/web-integration.md) |
Signed-off-by: Julien Veyssier <[email protected]>
Dev docs are adjusted. They were a bit out of date as well. |
identifier: 'my custom identifier', | ||
inputs: { prompt: 'give me a short summary of a simple settings section about GitHub' }, | ||
customId: 'my custom identifier', | ||
input: { input: 'give me a short summary of a simple settings section about GitHub' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inputs
first key here, typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
c388010
to
abb8fb0
Compare
status: 3, // 0: unknown, 1: scheduled, 2: running, 3: sucessful, 4: failed | ||
taskType: 'OCP\\TextProcessing\\FreePromptTaskType', | ||
timestamp: 1711545305, | ||
output: { output: 'blabla' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and outputs perhaps? I didn't see the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice 🎉
and neat feature!
This will be helpful to make file actions (in the Files app).
The
OCA.Assistant.openAssistantForm
function now accepts inputs likeor
and the parsed file content will be inserted in the input field on the fly.