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