Versions in this module Expand all Collapse all v0 v0.0.4 Mar 6, 2025 v0.0.3 Mar 6, 2025 Changes in this version + func InvokeDify(declaration *plugin_entities.PluginDeclaration, ...) error + type BackwardsInvocation struct + func NewBackwardsInvocation(typ BackwardsInvocationType, id string, session *session_manager.Session, ...) *BackwardsInvocation + func (bi *BackwardsInvocation) EndResponse() + func (bi *BackwardsInvocation) GetID() string + func (bi *BackwardsInvocation) RequestData() map[string]any + func (bi *BackwardsInvocation) TenantID() (string, error) + func (bi *BackwardsInvocation) Type() BackwardsInvocationType + func (bi *BackwardsInvocation) UserID() (string, error) + func (bi *BackwardsInvocation) WriteError(err error) + func (bi *BackwardsInvocation) WriteResponse(message string, data any) + type BackwardsInvocationResponseEvent struct + BackwardsRequestId string + Data any + Event RequestEvent + Message string + func NewEndEvent(request_id string) *BackwardsInvocationResponseEvent + func NewErrorEvent(request_id string, message string) *BackwardsInvocationResponseEvent + func NewResponseEvent(request_id string, message string, data any) *BackwardsInvocationResponseEvent + type BackwardsInvocationType = dify_invocation.InvokeType + type BackwardsInvocationWriter interface + Done func() + Write func(event session_manager.PLUGIN_IN_STREAM_EVENT, data any) error + type RequestEvent string + const REQUEST_EVENT_END + const REQUEST_EVENT_ERROR + const REQUEST_EVENT_RESPONSE