@aws-amplify/graphql-directives
Advanced tools
Comparing version 2.5.0 to 2.6.0-ai-next.0
@@ -6,2 +6,8 @@ # Change Log | ||
# [2.6.0-ai-next.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-directives@2.5.0...@aws-amplify/graphql-directives@2.6.0-ai-next.0) (2024-11-12) | ||
### Features | ||
- **conversation:** require auth input for conversation directive ([#3007](https://github.com/aws-amplify/amplify-category-api/issues/3007)) ([39cca3f](https://github.com/aws-amplify/amplify-category-api/commit/39cca3f18d02e9092828901ba799932f6e77f232)) | ||
# [2.5.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-directives@2.4.0...@aws-amplify/graphql-directives@2.5.0) (2024-11-08) | ||
@@ -8,0 +14,0 @@ |
@@ -9,2 +9,3 @@ "use strict"; | ||
systemPrompt: String! | ||
auth: ConversationAuth! | ||
functionName: String | ||
@@ -15,3 +16,16 @@ handler: ConversationHandlerFunctionConfiguration | ||
) on FIELD_DEFINITION | ||
input ConversationAuth { | ||
strategy: ConversationAuthStrategy! | ||
provider: ConversationAuthProvider! | ||
} | ||
enum ConversationAuthStrategy { | ||
owner | ||
} | ||
enum ConversationAuthProvider { | ||
userPools | ||
} | ||
input ConversationHandlerFunctionConfiguration { | ||
@@ -22,7 +36,28 @@ functionName: String! | ||
# The configuration for a tool. | ||
# This is a fake union (GraphQL doesn't support unions in inputs). It is best thought of as: | ||
# type ToolMap = | ||
# ({ queryName: string; } | { modelName: string; modelOperation: ConversationToolModelOperation; }) | ||
# & { name: string; description: string; } | ||
# The conversation transformer validates the input to ensure it conforms to the expected shape. | ||
input ToolMap { | ||
name: String | ||
description: String | ||
# The name of the tool. This is included in the tool definition provided to the AI model. | ||
name: String! | ||
# The description of the tool. This is included in the tool definition provided to the AI model. | ||
description: String! | ||
# The name of the GraphQL query that is invoked when the tool is used. | ||
queryName: String | ||
# The name of the Amplify model used by the tool. | ||
modelName: String | ||
# The model generated operation for the provided Amplify model that is invoked when the tool is used. | ||
modelOperation: ConversationToolModelOperation | ||
} | ||
# The model generated operation for the provided Amplify model. | ||
enum ConversationToolModelOperation { | ||
list | ||
} | ||
input ConversationInferenceConfiguration { | ||
@@ -29,0 +64,0 @@ maxTokens: Int |
{ | ||
"name": "@aws-amplify/graphql-directives", | ||
"version": "2.5.0", | ||
"version": "2.6.0-ai-next.0", | ||
"description": "Directive definitions for Amplify GraphQL transformers.", | ||
@@ -71,3 +71,3 @@ "repository": { | ||
}, | ||
"gitHead": "a6ab93200105e655183d8e8bab387797e7a5553d" | ||
"gitHead": "74b295baf39b6e11454cfc5c7fef369879005d39" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84565
1036
2