Files
Assistant/modules/work/ports/execution.go
m 284ea88553
CI / test (push) Failing after 33s
CI / test (pull_request) Failing after 42s
feat(work): make agent execution recovery durable
2026-08-23 13:10:18 +03:00

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
}