Skip to content

Commit

Permalink
chore: update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ffforest authored and SparkYuan committed Jun 13, 2024
1 parent 5579c4e commit fb576de
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions example/ai-agent-demo/dev/example_workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ modules:
action:
- es:*
# AWS SecretManager config
# secretStore:
# provider:
# aws:
# region: us-east-1
secretStore:
provider:
aws:
region: us-east-1
32 changes: 16 additions & 16 deletions example/ai-agent-demo/dev/main.k
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import kam.v1.app_configuration as ac
import service as svc
import service.secret as sec
import service.container as c
import opensearch.opensearch as o
# import opensearch.opensearch as o

agent: ac.AppConfiguration {
# Declare the workload configurations.
Expand All @@ -20,23 +20,23 @@ agent: ac.AppConfiguration {
}
}
# Secrets used to retrieve secret data from AWS Secrets Manager
secrets: {
"ai-agent": sec.Secret {
type: "external"
data: {
# replace all references with your own tokens
# "OPENAI_API_KEY": "ref://ai-agent/OPENAI_API_KEY"
# "OPEN_SEARCH_AK": "ref://ai-agent/OPEN_SEARCH_AK"
# "OPEN_SEARCH_SK": "ref://ai-agent/OPEN_SEARCH_SK"
}
}
}
# secrets: {
# "ai-agent": sec.Secret {
# type: "external"
# data: {
# # replace all references with your own tokens
# # "OPENAI_API_KEY": "ref://ai-agent/OPENAI_API_KEY"
# # "OPEN_SEARCH_AK": "ref://ai-agent/OPEN_SEARCH_AK"
# # "OPEN_SEARCH_SK": "ref://ai-agent/OPEN_SEARCH_SK"
# }
# }
# }
}
# Declare the openSearch module configurations.
accessories: {
"opensearch": o.OpenSearch {
domainName: "ai-agent-demo"
engineVersion: "OpenSearch_2.13"
}
# "opensearch": o.OpenSearch {
# domainName: "ai-agent-demo"
# engineVersion: "OpenSearch_2.13"
# }
}
}

0 comments on commit fb576de

Please sign in to comment.