internal/domain/workflow imported internal/agentexec for its protocol types, pulling the AI runtime into every binary that touches workflow types. The request, result and runner contract now live in internal/domain/agentrun; agentexec keeps the runtime. The model catalog cache moves from servicekit into modelcatalog and WaitForPeer into staterpc, so archie-state-store and archie-messaging no longer link the AI runtime.
67 lines
2.4 KiB
Go
67 lines
2.4 KiB
Go
// Code generated by 'yaegi extract github.com/samcharles93/archie-core/internal/plugin'. DO NOT EDIT.
|
|
|
|
package pluginextract
|
|
|
|
import (
|
|
"context"
|
|
"go/constant"
|
|
"go/token"
|
|
"reflect"
|
|
|
|
"github.com/samcharles93/archie-core/internal/plugin"
|
|
)
|
|
|
|
func init() {
|
|
Symbols["github.com/samcharles93/archie-core/internal/plugin/plugin"] = map[string]reflect.Value{
|
|
// function, constant and variable definitions
|
|
"AdaptLegacy": reflect.ValueOf(plugin.AdaptLegacy),
|
|
"HostAPIVersion": reflect.ValueOf(constant.MakeFromLiteral("\"1.0.0\"", token.STRING, 0)),
|
|
"LoadDir": reflect.ValueOf(plugin.LoadDir),
|
|
"NewHost": reflect.ValueOf(plugin.NewHost),
|
|
|
|
// type definitions
|
|
"CapabilityKind": reflect.ValueOf((*plugin.CapabilityKind)(nil)),
|
|
"Host": reflect.ValueOf((*plugin.Host)(nil)),
|
|
"Manifest": reflect.ValueOf((*plugin.Manifest)(nil)),
|
|
"Module": reflect.ValueOf((*plugin.Module)(nil)),
|
|
"Permission": reflect.ValueOf((*plugin.Permission)(nil)),
|
|
"Plugin": reflect.ValueOf((*plugin.Plugin)(nil)),
|
|
|
|
// interface wrapper definitions
|
|
"_Module": reflect.ValueOf((*_github_com_samcharles93_archie_core_internal_plugin_Module)(nil)),
|
|
"_Plugin": reflect.ValueOf((*_github_com_samcharles93_archie_core_internal_plugin_Plugin)(nil)),
|
|
}
|
|
}
|
|
|
|
// _github_com_samcharles93_archie_core_internal_plugin_Module is an interface wrapper for Module type
|
|
type _github_com_samcharles93_archie_core_internal_plugin_Module struct {
|
|
IValue interface{}
|
|
WManifest func() plugin.Manifest
|
|
WStart func(a0 context.Context) error
|
|
WStop func(a0 context.Context) error
|
|
}
|
|
|
|
func (W _github_com_samcharles93_archie_core_internal_plugin_Module) Manifest() plugin.Manifest {
|
|
return W.WManifest()
|
|
}
|
|
func (W _github_com_samcharles93_archie_core_internal_plugin_Module) Start(a0 context.Context) error {
|
|
return W.WStart(a0)
|
|
}
|
|
func (W _github_com_samcharles93_archie_core_internal_plugin_Module) Stop(a0 context.Context) error {
|
|
return W.WStop(a0)
|
|
}
|
|
|
|
// _github_com_samcharles93_archie_core_internal_plugin_Plugin is an interface wrapper for Plugin type
|
|
type _github_com_samcharles93_archie_core_internal_plugin_Plugin struct {
|
|
IValue interface{}
|
|
WName func() string
|
|
WVersion func() string
|
|
}
|
|
|
|
func (W _github_com_samcharles93_archie_core_internal_plugin_Plugin) Name() string {
|
|
return W.WName()
|
|
}
|
|
func (W _github_com_samcharles93_archie_core_internal_plugin_Plugin) Version() string {
|
|
return W.WVersion()
|
|
}
|