l-ai-agent-kaya/internal/inference/types.go
alex 8e57341938
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Cap mention auto-replies at 15 comments / 30m; escalate floods to Mira.
Human mentions always reply; agent→agent uses a decide gate; over the limit Kaya asks Mira to bring a human.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-21 23:55:35 +03:00

32 lines
541 B
Go

package inference
import "context"
type ChatMessage struct {
Role string
Content string
}
type RunRequest struct {
Messages []ChatMessage
Model string
AgentID string
RequestID string
IdempotencyKey string
JSONSchema string
Repair bool
TimeoutSeconds uint32
Metadata map[string]string
ToolsEnabled bool
}
type RunResult struct {
Content string
DurationMS float64
ToolsUsed []string
}
type Runner interface {
RunAgent(context.Context, RunRequest) (RunResult, error)
}