Files
viettranx 4da85913a2 feat(chat): auto-generate conversation titles via lightweight LLM call
After the first agent run completes, generate a short title from the
user's message using a 10s/50-token LLM call. Title is stored in the
session label column and pushed to clients via session.updated event.
2026-03-19 23:34:45 +07:00

19 lines
435 B
Go

package agent
import (
"context"
"github.com/nextlevelbuilder/goclaw/internal/providers"
)
// 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
ProviderName() string
Provider() providers.Provider
}