All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
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>
32 lines
541 B
Go
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)
|
|
}
|