Merge branch 'fix/g07' into fix/integrated
# Conflicts: # internal/ipc/api.go # internal/ipc/client.go # internal/llm/client.go
This commit is contained in:
@@ -413,11 +413,17 @@ type SwapModelReq struct {
|
||||
// RolledBack is true when the requested model failed to load or would not answer
|
||||
// and the previous one was put back. In that case the call also returns an error
|
||||
// — the swap did not happen — and Model names the model still serving.
|
||||
//
|
||||
// NoBackend is the other failure and it is not a milder one: the rollback failed
|
||||
// too, no model is loaded, and every phrasing path is on its template fallback
|
||||
// with routing on the classifier. It is a separate field from RolledBack because
|
||||
// the two need opposite words on the page.
|
||||
type SwapModelResp struct {
|
||||
Model string `json:"model"`
|
||||
ModelPath string `json:"model_path"`
|
||||
BaseURL string `json:"base_url"`
|
||||
RolledBack bool `json:"rolled_back,omitempty"`
|
||||
NoBackend bool `json:"no_backend,omitempty"`
|
||||
TookMs int64 `json:"took_ms"`
|
||||
}
|
||||
|
||||
@@ -433,6 +439,15 @@ type ModelStatusResp struct {
|
||||
Swappable []string `json:"swappable,omitempty"`
|
||||
}
|
||||
|
||||
// PingResp — the answer to MethodPing. Alive is always true (the reply itself
|
||||
// is the proof); Locked says whether the daemon is still waiting for a passkey
|
||||
// assertion, which is the one state where a CoreAPI read cannot tell an
|
||||
// operator anything.
|
||||
type PingResp struct {
|
||||
Alive bool `json:"alive"`
|
||||
Locked bool `json:"locked"`
|
||||
}
|
||||
|
||||
type listTasksReq struct {
|
||||
Status string `json:"status"` // "" all | "live" | candidate|open|done|dropped
|
||||
}
|
||||
@@ -489,6 +504,10 @@ type kindNReq struct {
|
||||
Kind string `json:"kind"`
|
||||
N int `json:"n"`
|
||||
}
|
||||
type sourceNReq struct {
|
||||
Prefix string `json:"prefix"`
|
||||
N int `json:"n"`
|
||||
}
|
||||
type calendarEventsReq struct {
|
||||
From time.Time `json:"from"`
|
||||
To time.Time `json:"to"`
|
||||
@@ -646,6 +665,11 @@ type CoreAPI interface {
|
||||
WriteNote(ctx context.Context, ts time.Time, text string, embedding []float32, source string) (int64, error)
|
||||
QueryNotes(ctx context.Context, embedding []float32, k int) ([]Note, error)
|
||||
RecentNotes(ctx context.Context, n int) ([]Note, error)
|
||||
// RecentNotesFromSource — the newest n notes whose source starts with
|
||||
// prefix. Notes Maven read rather than heard (rss:, crawl:) are excluded
|
||||
// from recall, so this is the only way to reach them, and it keeps the feed
|
||||
// answer from being crowded out of a fixed window by his own notes.
|
||||
RecentNotesFromSource(ctx context.Context, prefix string, n int) ([]Note, error)
|
||||
|
||||
// ProposeTool drafts an inert 'proposed' tool scaffold (maven-callable);
|
||||
// returns whether a new proposal was written. EnableTool fills cmd +
|
||||
|
||||
Reference in New Issue
Block a user