Documentation
¶
Overview ¶
Package batches persists router-side Anthropic message batches.
One POST /v1/messages/batches creates a row holding the entries; the router executes entries against the chat pipeline and appends JSONL-ready results. Modeled on the videojobs service: one public method, one db.Update.
Index ¶
Constants ¶
View Source
const ( StatusInProgress = "in_progress" StatusEnded = "ended" StatusCanceled = "canceled" )
Terminal batch states: no further transitions leave them.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service owns BatchRecord rows in the message_batches bucket.
func (*Service) Create ¶
func (s *Service) Create(rec *models.BatchRecord) error
Create persists a new batch row: one public method, one db.Update.
func (*Service) Get ¶
func (s *Service) Get(id string) (*models.BatchRecord, error)
Get returns the batch by ID.
Click to show internal directories.
Click to hide internal directories.