feat: initial commit
This commit is contained in:
28
internal/domain/entity/intent.go
Normal file
28
internal/domain/entity/intent.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package entity
|
||||
|
||||
type Intent struct {
|
||||
Name string
|
||||
Confidence float64
|
||||
Entities map[string]any
|
||||
}
|
||||
|
||||
type RouteTargetType string
|
||||
|
||||
const (
|
||||
RouteTargetN8n RouteTargetType = "n8n"
|
||||
RouteTargetAIAgent RouteTargetType = "ai_agent"
|
||||
RouteTargetBuiltin RouteTargetType = "builtin"
|
||||
)
|
||||
|
||||
type RouteTarget struct {
|
||||
Type RouteTargetType
|
||||
WorkflowID string
|
||||
Endpoint string
|
||||
}
|
||||
|
||||
type Route struct {
|
||||
Pattern string
|
||||
IntentName string
|
||||
Target RouteTarget
|
||||
Priority int
|
||||
}
|
||||
Reference in New Issue
Block a user