mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-11 03:13:24 +00:00
Multi-agent AI gateway with WebSocket RPC, HTTP API, and messaging channel integrations. Go port of OpenClaw with multi-tenant PostgreSQL, per-user isolation, security hardening, and production observability. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 lines
318 B
Go
13 lines
318 B
Go
package agent
|
|
|
|
import "context"
|
|
|
|
// Agent is the core abstraction for an AI agent execution loop.
|
|
// Implemented by *Loop; extracted as an interface for testability and composability.
|
|
type Agent interface {
|
|
ID() string
|
|
Run(ctx context.Context, req RunRequest) (*RunResult, error)
|
|
IsRunning() bool
|
|
Model() string
|
|
}
|