Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-amplify/graphql-directives

Package Overview
Dependencies
Maintainers
9
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/graphql-directives - npm Package Compare versions

Comparing version 2.5.0 to 2.6.0-ai-next.0

6

CHANGELOG.md

@@ -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 @@

41

lib/directives/conversation.js

@@ -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

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc