20 lines
502 B
Go
20 lines
502 B
Go
package ports
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
|
|
"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
|
|
RenewAgentLease(context.Context, work.AgentLease, time.Time) error
|
|
AcceptAgentCallback(context.Context, work.AgentCallback) error
|
|
}
|