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

add conversation components to component metadata schema and bundle #3705

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .build-tools/component-folders.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ componentFolders:
- secretstores
- state
- workflows
- conversation

excludeFolders:
- bindings/alicloud
Expand Down
2 changes: 1 addition & 1 deletion .build-tools/pkg/metadataschema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type ComponentMetadata struct {
// Version of the component metadata schema.
SchemaVersion string `json:"schemaVersion" yaml:"schemaVersion" jsonschema:"enum=v1"`
// Component type, of one of the allowed values.
Type string `json:"type" yaml:"type" jsonschema:"enum=bindings,enum=state,enum=secretstores,enum=pubsub,enum=workflows,enum=configuration,enum=lock,enum=middleware,enum=crypto"`
Type string `json:"type" yaml:"type" jsonschema:"enum=bindings,enum=state,enum=secretstores,enum=pubsub,enum=workflows,enum=configuration,enum=lock,enum=middleware,enum=crypto,enum=conversation"`
// Name of the component (without the inital type, e.g. "http" instead of "bindings.http").
Name string `json:"name" yaml:"name"`
// Version of the component, with the leading "v", e.g. "v1".
Expand Down
3 changes: 2 additions & 1 deletion component-metadata-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@
"configuration",
"lock",
"middleware",
"crypto"
"crypto",
"conversation"
],
"description": "Component type, of one of the allowed values."
},
Expand Down
2 changes: 1 addition & 1 deletion conversation/anthropic/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ status: alpha
title: "Anthropic"
urls:
- title: Reference
url: https://docs.dapr.io/reference/components-reference/supported-conversation/setup-anthropic/
url: https://docs.dapr.io/reference/components-reference/supported-conversation/anthropic/
authenticationProfiles:
- title: "API Key"
description: "Authenticate using an API key"
Expand Down
2 changes: 1 addition & 1 deletion conversation/aws/bedrock/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ status: alpha
title: "AWS Bedrock"
urls:
- title: Reference
url: https://docs.dapr.io/reference/components-reference/supported-conversation/setup-aws-bedrock/
url: https://docs.dapr.io/reference/components-reference/supported-conversation/aws-bedrock/
builtinAuthenticationProfiles:
- name: "aws"
metadata:
Expand Down
6 changes: 3 additions & 3 deletions conversation/deepseek/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ status: alpha
title: "Deepseek"
urls:
- title: Reference
url: https://docs.dapr.io/reference/components-reference/supported-conversation/setup-deepseek/
url: https://docs.dapr.io/reference/components-reference/supported-conversation/deepseek/
authenticationProfiles:
- title: "API Key"
description: "Authenticate using an API key"
Expand All @@ -25,5 +25,5 @@ metadata:
required: false
description: |
Max tokens for each request
type: int
example: 2048
type: number
example: "2048"
2 changes: 1 addition & 1 deletion conversation/huggingface/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ status: alpha
title: "Huggingface"
urls:
- title: Reference
url: https://docs.dapr.io/reference/components-reference/supported-conversation/setup-huggingface/
url: https://docs.dapr.io/reference/components-reference/supported-conversation/hugging-face/
authenticationProfiles:
- title: "API Key"
description: "Authenticate using an API key"
Expand Down
2 changes: 1 addition & 1 deletion conversation/mistral/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ status: alpha
title: "Mistral"
urls:
- title: Reference
url: https://docs.dapr.io/reference/components-reference/supported-conversation/setup-mistral/
url: https://docs.dapr.io/reference/components-reference/supported-conversation/mistral/
authenticationProfiles:
- title: "API Key"
description: "Authenticate using an API key"
Expand Down
2 changes: 1 addition & 1 deletion conversation/openai/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ status: alpha
title: "OpenAI"
urls:
- title: Reference
url: https://docs.dapr.io/reference/components-reference/supported-conversation/setup-openai/
url: https://docs.dapr.io/reference/components-reference/supported-conversation/openai/
authenticationProfiles:
- title: "API Key"
description: "Authenticate using an API key"
Expand Down
3 changes: 2 additions & 1 deletion metadata/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ func (t ComponentType) IsValid() bool {
SecretStoreType, PubSubType,
LockStoreType, ConfigurationStoreType,
MiddlewareType, CryptoType,
NameResolutionType, WorkflowType:
NameResolutionType, WorkflowType,
ConversationType:
return true
default:
return false
Expand Down