nomadcode/services/core/internal/model/model.go
toki 11490df648 chore: import nomadcode-core into services/core
git-subtree-dir: services/core
git-subtree-mainline: 6f5e3a119f
git-subtree-split: 6fdbc73753
2026-05-21 13:35:20 +09:00

34 lines
555 B
Go

package model
import (
"context"
"encoding/json"
)
type Client interface {
Generate(ctx context.Context, input GenerateInput) (GenerateResult, error)
}
type GenerateInput struct {
Model string
Instructions string
Input string
Metadata map[string]string
MaxOutputTokens int
Temperature *float64
TopP *float64
}
type GenerateResult struct {
ID string
Model string
Text string
Usage Usage
Raw json.RawMessage
}
type Usage struct {
InputTokens int
OutputTokens int
TotalTokens int
}