-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.x' into backport/backport-952-to-2.x
Signed-off-by: Junwei Dai <[email protected]>
- Loading branch information
Showing
42 changed files
with
2,109 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Daily API Consistency Test | ||
|
||
on: | ||
schedule: | ||
- cron: '0 8 * * *' # Runs daily at 8 AM UTC | ||
workflow_dispatch: | ||
|
||
jobs: | ||
API-consistency-test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [21] | ||
|
||
steps: | ||
- name: Checkout Flow Framework | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Java ${{ matrix.java }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: ${{ matrix.java }} | ||
|
||
- name: Run API Consistency Tests | ||
run: ./gradlew test --tests "org.opensearch.flowframework.workflow.*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
release-notes/opensearch-flow-framework.release-notes-2.17.1.0.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
## Version 2.17.1.0 | ||
|
||
Compatible with OpenSearch 2.17.1 | ||
|
||
### Maintenance | ||
- Fix flaky integ test reprovisioning before template update ([#880](https://github.com/opensearch-project/flow-framework/pull/880)) |
19 changes: 19 additions & 0 deletions
19
release-notes/opensearch-flow-framework.release-notes-2.18.0.0.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Version 2.18.0.0 | ||
|
||
Compatible with OpenSearch 2.18.0 | ||
|
||
### Features | ||
- Add ApiSpecFetcher for Fetching and Comparing API Specifications ([#651](https://github.com/opensearch-project/flow-framework/issues/651)) | ||
- Add optional config field to tool step ([#899](https://github.com/opensearch-project/flow-framework/pull/899)) | ||
|
||
### Enhancements | ||
- Incrementally remove resources from workflow state during deprovisioning ([#898](https://github.com/opensearch-project/flow-framework/pull/898)) | ||
|
||
### Bug Fixes | ||
- Fixed Template Update Location and Improved Logger Statements in ReprovisionWorkflowTransportAction ([#918](https://github.com/opensearch-project/flow-framework/pull/918)) | ||
|
||
### Documentation | ||
- Add query assist data summary agent into sample templates ([#875](https://github.com/opensearch-project/flow-framework/pull/875)) | ||
|
||
### Refactoring | ||
- Update workflow state without using painless script ([#894](https://github.com/opensearch-project/flow-framework/pull/894)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"name": "Alert Summary Agent", | ||
"description": "Create Alert Summary Agent using Claude on BedRock", | ||
"use_case": "REGISTER_AGENT", | ||
"version": { | ||
"template": "1.0.0", | ||
"compatibility": ["2.17.0", "3.0.0"] | ||
}, | ||
"workflows": { | ||
"provision": { | ||
"user_params": {}, | ||
"nodes": [ | ||
{ | ||
"id": "create_claude_connector", | ||
"type": "create_connector", | ||
"previous_node_inputs": {}, | ||
"user_inputs": { | ||
"version": "1", | ||
"name": "Claude instant runtime Connector", | ||
"protocol": "aws_sigv4", | ||
"description": "The connector to BedRock service for Claude model", | ||
"actions": [ | ||
{ | ||
"headers": { | ||
"x-amz-content-sha256": "required", | ||
"content-type": "application/json" | ||
}, | ||
"method": "POST", | ||
"request_body": "{\"prompt\":\"${parameters.prompt}\", \"max_tokens_to_sample\":${parameters.max_tokens_to_sample}, \"temperature\":${parameters.temperature}, \"anthropic_version\":\"${parameters.anthropic_version}\" }", | ||
"action_type": "predict", | ||
"url": "https://bedrock-runtime.us-west-2.amazonaws.com/model/anthropic.claude-instant-v1/invoke" | ||
} | ||
], | ||
"credential": { | ||
"access_key": "<YOUR_ACCESS_KEY>", | ||
"secret_key": "<YOUR_SECRET_KEY>", | ||
"session_token": "<YOUR_SESSION_TOKEN>" | ||
}, | ||
"parameters": { | ||
"region": "us-west-2", | ||
"endpoint": "bedrock-runtime.us-west-2.amazonaws.com", | ||
"content_type": "application/json", | ||
"auth": "Sig_V4", | ||
"max_tokens_to_sample": "8000", | ||
"service_name": "bedrock", | ||
"temperature": "0.0001", | ||
"response_filter": "$.completion", | ||
"anthropic_version": "bedrock-2023-05-31" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "register_claude_model", | ||
"type": "register_remote_model", | ||
"previous_node_inputs": { | ||
"create_claude_connector": "connector_id" | ||
}, | ||
"user_inputs": { | ||
"description": "Claude model", | ||
"deploy": true, | ||
"name": "claude-instant" | ||
} | ||
}, | ||
{ | ||
"id": "create_alert_summary_ml_model_tool", | ||
"type": "create_tool", | ||
"previous_node_inputs": { | ||
"register_claude_model": "model_id" | ||
}, | ||
"user_inputs": { | ||
"parameters": { | ||
"prompt": "You are an OpenSearch Alert Assistant to help summarize the alerts.\n Here is the detail of alert: ${parameters.context};\n The question is: ${parameters.question}." | ||
}, | ||
"name": "MLModelTool", | ||
"type": "MLModelTool" | ||
} | ||
}, | ||
{ | ||
"id": "create_alert_summary_agent", | ||
"type": "register_agent", | ||
"previous_node_inputs": { | ||
"create_alert_summary_ml_model_tool": "tools" | ||
}, | ||
"user_inputs": { | ||
"parameters": {}, | ||
"type": "flow", | ||
"name": "Alert Summary Agent", | ||
"description": "this is an alert summary agent" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
name: Alert Summary Agent | ||
description: Create Alert Summary Agent using Claude on BedRock | ||
use_case: REGISTER_AGENT | ||
version: | ||
template: 1.0.0 | ||
compatibility: | ||
- 2.17.0 | ||
- 3.0.0 | ||
workflows: | ||
provision: | ||
user_params: {} | ||
nodes: | ||
- id: create_claude_connector | ||
type: create_connector | ||
previous_node_inputs: {} | ||
user_inputs: | ||
version: '1' | ||
name: Claude instant runtime Connector | ||
protocol: aws_sigv4 | ||
description: The connector to BedRock service for Claude model | ||
actions: | ||
- headers: | ||
x-amz-content-sha256: required | ||
content-type: application/json | ||
method: POST | ||
request_body: '{"prompt":"${parameters.prompt}", "max_tokens_to_sample":${parameters.max_tokens_to_sample}, | ||
"temperature":${parameters.temperature}, "anthropic_version":"${parameters.anthropic_version}" | ||
}' | ||
action_type: predict | ||
url: https://bedrock-runtime.us-west-2.amazonaws.com/model/anthropic.claude-instant-v1/invoke | ||
credential: | ||
access_key: "<YOUR_ACCESS_KEY>" | ||
secret_key: "<YOUR_SECRET_KEY>" | ||
session_token: "<YOUR_SESSION_TOKEN>" | ||
parameters: | ||
region: us-west-2 | ||
endpoint: bedrock-runtime.us-west-2.amazonaws.com | ||
content_type: application/json | ||
auth: Sig_V4 | ||
max_tokens_to_sample: '8000' | ||
service_name: bedrock | ||
temperature: '0.0001' | ||
response_filter: "$.completion" | ||
anthropic_version: bedrock-2023-05-31 | ||
- id: register_claude_model | ||
type: register_remote_model | ||
previous_node_inputs: | ||
create_claude_connector: connector_id | ||
user_inputs: | ||
description: Claude model | ||
deploy: true | ||
name: claude-instant | ||
- id: create_alert_summary_ml_model_tool | ||
type: create_tool | ||
previous_node_inputs: | ||
register_claude_model: model_id | ||
user_inputs: | ||
parameters: | ||
prompt: "You are an OpenSearch Alert Assistant to help summarize the alerts.\n Here is the detail of alert: ${parameters.context};\n The question is: ${parameters.question}." | ||
name: MLModelTool | ||
type: MLModelTool | ||
- id: create_alert_summary_agent | ||
type: register_agent | ||
previous_node_inputs: | ||
create_alert_summary_ml_model_tool: tools | ||
user_inputs: | ||
parameters: {} | ||
type: flow | ||
name: Alert Summary Agent | ||
description: this is an alert summary agent |
Oops, something went wrong.