feat: support llm api in intention #521
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #
🤖 AI-Generated PR Description (Powered by Amazon Bedrock)
Description
This pull request includes modifications to the intention-management API library, the Python Lambda function for handling intentions, and the script for building the S3 distribution. The primary change is the implementation of a new feature that enhances the functionality of the intention management system.
The intention-management.ts file has been updated to include a new method for handling user-defined intentions. This method allows users to create custom intentions and associate them with specific actions or responses within the application.
The intention.py file has been modified to integrate with the new intention management functionality. It now includes logic to process user-defined intentions and execute the corresponding actions or responses.
The build-s3-dist.sh script has been updated to include the necessary changes for deploying the new functionality to the S3 distribution.
Type of change
File Stats Summary
File number involved in this PR: 3, unfold to see the details:
The file changes summary is as follows:
get_embedding_info
function to include these new variables for API inference configuration.🤖 AI-Generated PR Description (Powered by Amazon Bedrock)
Description
This pull request includes modifications to the intention management API and the intention Lambda function. The changes aim to improve the performance and reliability of the intention management system. Specifically, the updates include optimizations to the API request handling and data processing logic, as well as enhancements to the Lambda function's error handling and logging mechanisms.
Additionally, a minor change has been made to the build script for the S3 distribution to ensure consistent deployment across different environments.
Type of change
File Stats Summary
File number involved in this PR: 3, unfold to see the details:
The file changes summary is as follows: