feat(connectors): add support for Matrix (#82)
* feat(connectors): add support for Matrix Signed-off-by: mudler <mudler@localai.io> * make it functional Signed-off-by: mudler <mudler@localai.io> --------- Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
committed by
GitHub
parent
67cb5937e7
commit
087a5fbe0f
@@ -19,6 +19,7 @@ const (
|
||||
ConnectorGithubIssues = "github-issues"
|
||||
ConnectorGithubPRs = "github-prs"
|
||||
ConnectorTwitter = "twitter"
|
||||
ConnectorMatrix = "matrix"
|
||||
)
|
||||
|
||||
var AvailableConnectors = []string{
|
||||
@@ -29,6 +30,7 @@ var AvailableConnectors = []string{
|
||||
ConnectorGithubIssues,
|
||||
ConnectorGithubPRs,
|
||||
ConnectorTwitter,
|
||||
ConnectorMatrix,
|
||||
}
|
||||
|
||||
func Connectors(a *state.AgentConfig) []state.Connector {
|
||||
@@ -66,6 +68,8 @@ func Connectors(a *state.AgentConfig) []state.Connector {
|
||||
continue
|
||||
}
|
||||
conns = append(conns, cc)
|
||||
case ConnectorMatrix:
|
||||
conns = append(conns, connectors.NewMatrix(config))
|
||||
}
|
||||
}
|
||||
return conns
|
||||
@@ -108,5 +112,10 @@ func ConnectorsConfigMeta() []config.FieldGroup {
|
||||
Label: "Twitter",
|
||||
Fields: connectors.TwitterConfigMeta(),
|
||||
},
|
||||
{
|
||||
Name: "matrix",
|
||||
Label: "Matrix",
|
||||
Fields: connectors.MatrixConfigMeta(),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user