18 lines
426 B
Go
18 lines
426 B
Go
package ports
|
|
|
|
import (
|
|
"context"
|
|
|
|
"git.cin.su/m/Assistant/contracts/work"
|
|
)
|
|
|
|
type AgentExecutor interface {
|
|
Execute(context.Context, work.AgentExecutionRequest) (work.AgentExecutionResult, error)
|
|
}
|
|
|
|
type ExecutionStore interface {
|
|
SaveDispatchIntent(context.Context, work.AgentDispatchIntent) error
|
|
SaveAgentLease(context.Context, work.AgentLease) error
|
|
AcceptAgentCallback(context.Context, work.AgentCallback) error
|
|
}
|