Skip to content

Commit

Permalink
feat: remove experimental tags for AI functions and types (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
atierian authored Nov 18, 2024
1 parent e8004cc commit e7ff339
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 29 deletions.
5 changes: 5 additions & 0 deletions .changeset/polite-bags-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aws-amplify/data-schema": minor
---

Remove experimental tag for AI functions and types
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

## AiModel type


**Signature:**

```typescript
Expand Down
1 change: 0 additions & 1 deletion packages/data-schema-types/docs/data-schema-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ Description
</td><td>



</td></tr>
<tr><td>

Expand Down
3 changes: 0 additions & 3 deletions packages/data-schema-types/src/builder/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ type BackendSecret = {
resolvePath: (backendIdentifier: any) => any;
};

/**
* @experimental
*/
export type AiModel = {
resourcePath: string;
}
2 changes: 0 additions & 2 deletions packages/data-schema/src/CustomOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,6 @@ export interface GenerationInput {
}

/**
* @experimental
*
* Define an AI generation route for single request-response interaction with specified AI model.
* @example
* makeRecipe: a.generation({
Expand Down
20 changes: 0 additions & 20 deletions packages/data-schema/src/ai/ConversationType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,38 +54,28 @@ interface ConversationRouteListInput {

export interface ConversationRoute {
/**
* @experimental
*
* Creates a {@link Conversation} from the current conversation route.
*/
create: (
input?: ConversationRouteCreateInput,
) => SingularReturnValue<Conversation>;
/**
* @experimental
*
* Creates a {@link Conversation} from the current conversation route.
*/
update: (
input: ConversationRouteUpdateInput,
) => SingularReturnValue<Conversation>;
/**
* @experimental
*
* Gets an existing {@link Conversation} based on ID.
*/
get: (input: ConversationRouteGetInput) => SingularReturnValue<Conversation>;
/**
* @experimental
*
* Deletes an existing {@link Conversation} based on ID.
*/
delete: (
input: ConversationRouteDeleteInput,
) => SingularReturnValue<Conversation>;
/**
* @experimental
*
* Lists all existing {@link Conversation}s on the current conversation route.
*/
list: (input?: ConversationRouteListInput) => ListReturnValue<Conversation>;
Expand Down Expand Up @@ -120,24 +110,18 @@ export interface Conversation {
metadata?: Record<string, any>;
name?: string;
/**
* @experimental
*
* Sends a message to the current conversation.
*/
sendMessage: (
input: ConversationSendMessageInput | string,
) => SingularReturnValue<ConversationMessage>;
/**
* @experimental
*
* Lists all existing messages for the current conversation.
*/
listMessages: (
input?: ConversationListMessagesInput,
) => ListReturnValue<ConversationMessage>;
/**
* @experimental
*
* Subscribes to new stream events on the current conversation.
*/
onStreamEvent: (handler: ConversationOnStreamEventHandler) => Subscription;
Expand All @@ -164,8 +148,6 @@ interface QueryToolDefinition extends ToolDefinitionBase {
export type DataToolDefinition = ModelToolDefinition | QueryToolDefinition;

/**
* @experimental
*
* Define a data tool to be used within an AI conversation route.
*
* @remarks
Expand Down Expand Up @@ -263,8 +245,6 @@ function _conversation(input: ConversationInput): ConversationType {
}

/**
* @experimental
*
* Define an AI conversation route which enables multi-turn conversation APIs for interacting with specified AI model.
* @example
* realtorChat: a.conversation({
Expand Down
2 changes: 0 additions & 2 deletions packages/data-schema/src/ai/ModelType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ export interface InferenceConfiguration {
}

/**
* @experimental
*
* Bedrock models currently supporting Converse API and Tool use
* @see {@link https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference.html#conversation-inference-supported-models-features}
*/
Expand Down

0 comments on commit e7ff339

Please sign in to comment.