Documentation
¶
Index ¶
- Constants
- Variables
- func NewKnowledgeIntegrationCreator(deps domain.IntegrationDeps) domain.IntegrationCreator
- type KnowledgeIntegration
- func (i *KnowledgeIntegration) Execute(ctx context.Context, params domain.IntegrationInput) (domain.IntegrationOutput, error)
- func (i *KnowledgeIntegration) Peek(ctx context.Context, params domain.PeekParams) (domain.PeekResult, error)
- func (i *KnowledgeIntegration) PeekKnowledges(ctx context.Context) (domain.PeekResult, error)
- func (i *KnowledgeIntegration) SearchKnowledge(ctx context.Context, params domain.IntegrationInput, item domain.Item) (domain.Item, error)
- type KnowledgeIntegrationCreator
- type KnowledgeIntegrationDependencies
- type SearchKnowledgeParams
Constants ¶
View Source
const (
IntegrationActionType_Search domain.IntegrationActionType = "search"
)
View Source
const (
KnowledgeIntegrationPeekable_Knowledges domain.IntegrationPeekableType = "knowledges"
)
Variables ¶
View Source
var (
Schema = schema
)
Functions ¶
func NewKnowledgeIntegrationCreator ¶
func NewKnowledgeIntegrationCreator(deps domain.IntegrationDeps) domain.IntegrationCreator
Types ¶
type KnowledgeIntegration ¶
type KnowledgeIntegration struct {
// contains filtered or unexported fields
}
func NewKnowledgeIntegration ¶
func NewKnowledgeIntegration(deps KnowledgeIntegrationDependencies) (*KnowledgeIntegration, error)
func (*KnowledgeIntegration) Execute ¶
func (i *KnowledgeIntegration) Execute(ctx context.Context, params domain.IntegrationInput) (domain.IntegrationOutput, error)
func (*KnowledgeIntegration) Peek ¶
func (i *KnowledgeIntegration) Peek(ctx context.Context, params domain.PeekParams) (domain.PeekResult, error)
func (*KnowledgeIntegration) PeekKnowledges ¶
func (i *KnowledgeIntegration) PeekKnowledges(ctx context.Context) (domain.PeekResult, error)
func (*KnowledgeIntegration) SearchKnowledge ¶
func (i *KnowledgeIntegration) SearchKnowledge(ctx context.Context, params domain.IntegrationInput, item domain.Item) (domain.Item, error)
type KnowledgeIntegrationCreator ¶
type KnowledgeIntegrationCreator struct {
// contains filtered or unexported fields
}
func (*KnowledgeIntegrationCreator) CreateIntegration ¶
func (c *KnowledgeIntegrationCreator) CreateIntegration(ctx context.Context, p domain.CreateIntegrationParams) (domain.IntegrationExecutor, error)
type KnowledgeIntegrationDependencies ¶
type KnowledgeIntegrationDependencies struct {
ParameterBinder domain.IntegrationParameterBinder
KnowledgeManager domain.ExecutorKnowledgeManager
WorkspaceID string
}
Click to show internal directories.
Click to hide internal directories.