Skip to content
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

fix(bedrock)!: hide internal APIs #310

Merged
merged 2 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions bedrock/api.w
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

pub interface IModel {
internal interface IModel {
inflight invoke(body: Json): Json;
}
4 changes: 2 additions & 2 deletions bedrock/bedrock.sim.w
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bring "./api.w" as b;

pub class Model_sim impl b.IModel {
internal class Model_sim impl b.IModel {
modelId: str;
var mockResponse: inflight (Json): Json;

Expand All @@ -22,4 +22,4 @@ pub class Model_sim impl b.IModel {
pub inflight invoke(body: Json): Json {
return this.mockResponse(body);
}
}
}
2 changes: 1 addition & 1 deletion bedrock/bedrock.tfaws.w
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bring "./api.w" as b;
bring aws;

pub class Model_tfaws impl b.IModel {
internal class Model_tfaws impl b.IModel {
pub modelId: str;

new(modelId: str) {
Expand Down
4 changes: 2 additions & 2 deletions bedrock/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bedrock/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@winglibs/bedrock",
"description": "A Wing library for Amazon Bedrock",
"version": "0.0.9",
"version": "0.1.0",
"author": {
"name": "Eyal Keren",
"email": "[email protected]"
Expand Down
Loading