-
Notifications
You must be signed in to change notification settings - Fork 6
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
AI Actions improvements #478
Conversation
PR Reviewer Guide 🔍(Review updated until commit 9893462)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 9893462
Previous suggestionsSuggestions up to commit a787101
|
Persistent review updated to latest commit 9893462 |
PR Type
enhancement, tests
Description
additionalInstructions
field and related logic from multiple files, simplifying the message generation process.additionalInstructions
and the addition of disclaimer handling.Changes walkthrough 📝
14 files
categorizeMessage.ts
Remove console log statements from categorizeMessage
extensions/shelly/actions/categorizeMessage/categorizeMessage.ts
category
andexplanationHtml
.categorizeMessageWithLLM.ts
Clean up console log statements in categorizeMessageWithLLM
extensions/shelly/actions/categorizeMessage/lib/categorizeMessageWithLLM/categorizeMessageWithLLM.ts
prompt
,result
,matchedCategory
,and
explanation
.fields.ts
Remove additionalInstructions field from generateMessage configuration
extensions/shelly/actions/generateMessage/config/fields.ts
additionalInstructions
field from the configuration.generateMessage.ts
Remove additionalInstructions handling in generateMessage
extensions/shelly/actions/generateMessage/generateMessage.ts
additionalInstructions
from the payload validation andprocessing.
constants.ts
Update system prompt constants for generateMessageWithLLM
extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/constants.ts
Additional Instructions
from the system prompt.generateMessageWithLLM.ts
Simplify generateMessageWithLLM by removing additionalInstructions
extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/generateMessageWithLLM.ts
additionalInstructions
from the function parameters andprocessing.
summarizeCareFlowWithLLM.ts
Clean up console log statements in summarizeCareFlowWithLLM
extensions/shelly/actions/summarizeCareFlow/lib/summarizeCareFlowWithLLM/summarizeCareFlowWithLLM.ts
prompt
andsummary
.summarizeCareFlow.ts
Update title and clean up logs in summarizeCareFlow
extensions/shelly/actions/summarizeCareFlow/summarizeCareFlow.ts
htmlSummary
.fields.ts
Simplify field descriptions in summarizeForm configuration
extensions/shelly/actions/summarizeForm/config/fields.ts
summaryFormat
andlanguage
fields.summarizeForm.ts
Update title and disclaimer handling in summarizeForm
extensions/shelly/actions/summarizeForm/summarizeForm.ts
summarizeFormsInStep.ts
Update key, title, and disclaimer handling in summarizeFormsInStep
extensions/shelly/actions/summarizeFormsInStep/summarizeFormsInStep.ts
getFormResponseText.ts
Clean up console log statements in getFormResponseText
extensions/shelly/lib/getFormResponseText/getFormResponseText.ts
constants.ts
Enhance system prompts with disclaimer and language handling
extensions/shelly/lib/summarizeFormWithLLM/constants.ts
summarizeFormWithLLM.ts
Implement disclaimer message handling in summarizeFormWithLLM
extensions/shelly/lib/summarizeFormWithLLM/summarizeFormWithLLM.ts
9 files
generateMessage.test.ts
Update generateMessage tests to exclude additionalInstructions
extensions/shelly/actions/generateMessage/generateMessage.test.ts
additionalInstructions
.generateMessageRealOpenAI.test.ts
Update real OpenAI tests for generateMessage
extensions/shelly/actions/generateMessage/generateMessageRealOpenAI.test.ts
additionalInstructions
.generateMessageWithLLM.test.ts
Adjust generateMessageWithLLM tests for removed field
extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/generateMessageWithLLM.test.ts
additionalInstructions
from the test payloads.generateMessageWithLLMRealOpenAI.test.ts
Update real OpenAI tests for generateMessageWithLLM
extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/generateMessageWithLLMRealOpenAI.test.ts
additionalInstructions
.summarizeForm.test.ts
Adjust summarizeForm tests for disclaimer handling
extensions/shelly/actions/summarizeForm/summarizeForm.test.ts
summarizeFormRealOpenAI.test.ts
Add test for Spanish bullet-point format in summarizeForm
extensions/shelly/actions/summarizeForm/summarizeFormRealOpenAI.test.ts
summarizeFormsInStep.test.ts
Adjust summarizeFormsInStep tests for disclaimer handling
extensions/shelly/actions/summarizeFormsInStep/summarizeFormsInStep.test.ts
summarizeFormsInStepRealOpenAI.test.ts
Adjust real OpenAI tests for summarizeFormsInStep
extensions/shelly/actions/summarizeFormsInStep/summarizeFormsInStepRealOpenAI.test.ts
summarizeFormWithLLM.test.ts
Update summarizeFormWithLLM tests with disclaimer message
extensions/shelly/lib/summarizeFormWithLLM/summarizeFormWithLLM.test.ts