l-ai-agent-kaya/internal/inference/types.go
alex 3a2a0c1c34
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Enable kaya-board tools on Tasks mention replies.
Match Telegram chat tool surface (journal, tasks, steam/discord/node) so diary requests hit write_journal instead of a board-only comment.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-22 16:45:03 +03:00

35 lines
675 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
ToolProfile string
MaxToolIterations uint32
MaxTotalToolCalls uint32
}
type RunResult struct {
Content string
DurationMS float64
ToolsUsed []string
}
type Runner interface {
RunAgent(context.Context, RunRequest) (RunResult, error)
}