Skip to content

Commit

Permalink
fix(bedrock)!: hide internal APIs (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chriscbr authored Aug 5, 2024
1 parent 70d629c commit 9acbe79
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
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

0 comments on commit 9acbe79

Please sign in to comment.