Documentation
¶
Index ¶
- type Firestore
- func (r *Firestore) BatchGetAlerts(ctx context.Context, alertIDs []types.AlertID) (alert.Alerts, error)
- func (r *Firestore) BatchGetTickets(ctx context.Context, ticketIDs []types.TicketID) ([]*ticket.Ticket, error)
- func (r *Firestore) BatchPutAlerts(ctx context.Context, alerts alert.Alerts) error
- func (r *Firestore) BatchUpdateTicketsStatus(ctx context.Context, ticketIDs []types.TicketID, status types.TicketStatus) error
- func (r *Firestore) BindAlertsToTicket(ctx context.Context, alertIDs []types.AlertID, ticketID types.TicketID) error
- func (r *Firestore) Close() error
- func (r *Firestore) CountActivities(ctx context.Context) (int, error)
- func (r *Firestore) CountAlertsWithoutTicket(ctx context.Context) (int, error)
- func (r *Firestore) CountTicketComments(ctx context.Context, ticketID types.TicketID) (int, error)
- func (r *Firestore) CountTicketsByStatus(ctx context.Context, statuses []types.TicketStatus) (int, error)
- func (r *Firestore) CreateNotice(ctx context.Context, notice *notice.Notice) error
- func (r *Firestore) CreateTagWithID(ctx context.Context, tag *tag.Tag) error
- func (r *Firestore) DeleteTagByID(ctx context.Context, tagID string) error
- func (r *Firestore) DeleteToken(ctx context.Context, tokenID auth.TokenID) error
- func (r *Firestore) FindNearestAlerts(ctx context.Context, embedding []float32, limit int) (alert.Alerts, error)
- func (r *Firestore) FindNearestTickets(ctx context.Context, embedding []float32, limit int) ([]*ticket.Ticket, error)
- func (r *Firestore) FindNearestTicketsWithSpan(ctx context.Context, embedding []float32, begin, end time.Time, limit int) ([]*ticket.Ticket, error)
- func (r *Firestore) FindSimilarAlerts(ctx context.Context, target alert.Alert, limit int) (alert.Alerts, error)
- func (r *Firestore) GetActivities(ctx context.Context, offset, limit int) ([]*activity.Activity, error)
- func (r *Firestore) GetAgentMemory(ctx context.Context, agentID string, id types.AgentMemoryID) (*memory.AgentMemory, error)
- func (r *Firestore) GetAlert(ctx context.Context, alertID types.AlertID) (*alert.Alert, error)
- func (r *Firestore) GetAlertList(ctx context.Context, listID types.AlertListID) (*alert.List, error)
- func (r *Firestore) GetAlertListByThread(ctx context.Context, thread slack.Thread) (*alert.List, error)
- func (r *Firestore) GetAlertListsInThread(ctx context.Context, thread slack.Thread) ([]*alert.List, error)
- func (r *Firestore) GetAlertWithoutEmbedding(ctx context.Context) (alert.Alerts, error)
- func (r *Firestore) GetAlertWithoutTicket(ctx context.Context, offset, limit int) (alert.Alerts, error)
- func (r *Firestore) GetAlertsBySpan(ctx context.Context, begin, end time.Time) (alert.Alerts, error)
- func (r *Firestore) GetAlertsWithInvalidEmbedding(ctx context.Context) (alert.Alerts, error)
- func (r *Firestore) GetExecutionMemory(ctx context.Context, schemaID types.AlertSchema) (*memory.ExecutionMemory, error)
- func (r *Firestore) GetLatestAlertByThread(ctx context.Context, thread slack.Thread) (*alert.Alert, error)
- func (r *Firestore) GetLatestAlertListInThread(ctx context.Context, thread slack.Thread) (*alert.List, error)
- func (r *Firestore) GetLatestHistory(ctx context.Context, ticketID types.TicketID) (*ticket.History, error)
- func (r *Firestore) GetNotice(ctx context.Context, id types.NoticeID) (*notice.Notice, error)
- func (r *Firestore) GetOrCreateTagByName(ctx context.Context, name, description, color, createdBy string) (*tag.Tag, error)
- func (r *Firestore) GetTagByID(ctx context.Context, tagID string) (*tag.Tag, error)
- func (r *Firestore) GetTagByName(ctx context.Context, name string) (*tag.Tag, error)
- func (r *Firestore) GetTagsByIDs(ctx context.Context, tagIDs []string) ([]*tag.Tag, error)
- func (r *Firestore) GetTicket(ctx context.Context, ticketID types.TicketID) (*ticket.Ticket, error)
- func (r *Firestore) GetTicketByThread(ctx context.Context, thread slack.Thread) (*ticket.Ticket, error)
- func (r *Firestore) GetTicketComments(ctx context.Context, ticketID types.TicketID) ([]ticket.Comment, error)
- func (r *Firestore) GetTicketCommentsPaginated(ctx context.Context, ticketID types.TicketID, offset, limit int) ([]ticket.Comment, error)
- func (r *Firestore) GetTicketMemory(ctx context.Context, schemaID types.AlertSchema) (*memory.TicketMemory, error)
- func (r *Firestore) GetTicketUnpromptedComments(ctx context.Context, ticketID types.TicketID) ([]ticket.Comment, error)
- func (r *Firestore) GetTicketsBySpan(ctx context.Context, begin, end time.Time) ([]*ticket.Ticket, error)
- func (r *Firestore) GetTicketsByStatus(ctx context.Context, statuses []types.TicketStatus, offset, limit int) ([]*ticket.Ticket, error)
- func (r *Firestore) GetTicketsByStatusAndSpan(ctx context.Context, status types.TicketStatus, begin, end time.Time) ([]*ticket.Ticket, error)
- func (r *Firestore) GetTicketsWithInvalidEmbedding(ctx context.Context) ([]*ticket.Ticket, error)
- func (r *Firestore) GetToken(ctx context.Context, tokenID auth.TokenID) (*auth.Token, error)
- func (r *Firestore) IsTagNameExists(ctx context.Context, name string) (bool, error)
- func (r *Firestore) ListAllTags(ctx context.Context) ([]*tag.Tag, error)
- func (r *Firestore) PutActivity(ctx context.Context, activity *activity.Activity) error
- func (r *Firestore) PutAlert(ctx context.Context, a alert.Alert) error
- func (r *Firestore) PutAlertList(ctx context.Context, list *alert.List) error
- func (r *Firestore) PutExecutionMemory(ctx context.Context, mem *memory.ExecutionMemory) error
- func (r *Firestore) PutHistory(ctx context.Context, ticketID types.TicketID, history *ticket.History) error
- func (r *Firestore) PutTicket(ctx context.Context, t ticket.Ticket) error
- func (r *Firestore) PutTicketComment(ctx context.Context, comment ticket.Comment) error
- func (r *Firestore) PutTicketCommentsPrompted(ctx context.Context, ticketID types.TicketID, commentIDs []types.CommentID) error
- func (r *Firestore) PutTicketMemory(ctx context.Context, mem *memory.TicketMemory) error
- func (r *Firestore) PutToken(ctx context.Context, token *auth.Token) error
- func (r *Firestore) RemoveTagFromAllAlerts(ctx context.Context, name string) error
- func (r *Firestore) RemoveTagFromAllTickets(ctx context.Context, name string) error
- func (r *Firestore) RemoveTagIDFromAllAlerts(ctx context.Context, tagID string) error
- func (r *Firestore) RemoveTagIDFromAllTickets(ctx context.Context, tagID string) error
- func (r *Firestore) SaveAgentMemory(ctx context.Context, mem *memory.AgentMemory) error
- func (r *Firestore) SearchAlerts(ctx context.Context, path, op string, value any, limit int) (alert.Alerts, error)
- func (r *Firestore) SearchExecutionMemoriesByEmbedding(ctx context.Context, schemaID types.AlertSchema, embedding []float32, ...) ([]*memory.ExecutionMemory, error)
- func (r *Firestore) SearchMemoriesByEmbedding(ctx context.Context, agentID string, embedding []float32, limit int) ([]*memory.AgentMemory, error)
- func (r *Firestore) UnbindAlertFromTicket(ctx context.Context, alertID types.AlertID) error
- func (r *Firestore) UpdateNotice(ctx context.Context, notice *notice.Notice) error
- func (r *Firestore) UpdateTag(ctx context.Context, tag *tag.Tag) error
- type Memory
- func (r *Memory) BatchGetAlerts(ctx context.Context, alertIDs []types.AlertID) (alert.Alerts, error)
- func (r *Memory) BatchGetTickets(ctx context.Context, ticketIDs []types.TicketID) ([]*ticket.Ticket, error)
- func (r *Memory) BatchPutAlerts(ctx context.Context, alerts alert.Alerts) error
- func (r *Memory) BatchUpdateTicketsStatus(ctx context.Context, ticketIDs []types.TicketID, status types.TicketStatus) error
- func (r *Memory) BindAlertsToTicket(ctx context.Context, alertIDs []types.AlertID, ticketID types.TicketID) error
- func (r *Memory) CountActivities(ctx context.Context) (int, error)
- func (r *Memory) CountAlertsWithoutTicket(ctx context.Context) (int, error)
- func (r *Memory) CountTicketComments(ctx context.Context, ticketID types.TicketID) (int, error)
- func (r *Memory) CountTicketsByStatus(ctx context.Context, statuses []types.TicketStatus) (int, error)
- func (r *Memory) CreateNotice(ctx context.Context, notice *notice.Notice) error
- func (r *Memory) CreateTagWithID(ctx context.Context, tag *tag.Tag) error
- func (r *Memory) DeleteTagByID(ctx context.Context, tagID string) error
- func (r *Memory) DeleteToken(ctx context.Context, tokenID auth.TokenID) error
- func (r *Memory) FindNearestAlerts(ctx context.Context, embedding []float32, limit int) (alert.Alerts, error)
- func (r *Memory) FindNearestTickets(ctx context.Context, embedding []float32, limit int) ([]*ticket.Ticket, error)
- func (r *Memory) FindNearestTicketsWithSpan(ctx context.Context, embedding []float32, begin, end time.Time, limit int) ([]*ticket.Ticket, error)
- func (r *Memory) FindSimilarAlerts(ctx context.Context, target alert.Alert, limit int) (alert.Alerts, error)
- func (r *Memory) GetActivities(ctx context.Context, offset, limit int) ([]*activity.Activity, error)
- func (r *Memory) GetAgentMemory(ctx context.Context, agentID string, id types.AgentMemoryID) (*memory.AgentMemory, error)
- func (r *Memory) GetAlert(ctx context.Context, alertID types.AlertID) (*alert.Alert, error)
- func (r *Memory) GetAlertList(ctx context.Context, listID types.AlertListID) (*alert.List, error)
- func (r *Memory) GetAlertListByThread(ctx context.Context, thread slack.Thread) (*alert.List, error)
- func (r *Memory) GetAlertListsInThread(ctx context.Context, thread slack.Thread) ([]*alert.List, error)
- func (r *Memory) GetAlertWithoutEmbedding(ctx context.Context) (alert.Alerts, error)
- func (r *Memory) GetAlertWithoutTicket(ctx context.Context, offset, limit int) (alert.Alerts, error)
- func (r *Memory) GetAlertsBySpan(ctx context.Context, begin, end time.Time) (alert.Alerts, error)
- func (r *Memory) GetAlertsWithInvalidEmbedding(ctx context.Context) (alert.Alerts, error)
- func (r *Memory) GetAllCallCounts() map[string]int
- func (r *Memory) GetCallCount(methodName string) int
- func (r *Memory) GetExecutionMemory(ctx context.Context, schemaID types.AlertSchema) (*memory.ExecutionMemory, error)
- func (r *Memory) GetLatestAlertByThread(ctx context.Context, thread slack.Thread) (*alert.Alert, error)
- func (r *Memory) GetLatestAlertListInThread(ctx context.Context, thread slack.Thread) (*alert.List, error)
- func (r *Memory) GetLatestHistory(ctx context.Context, ticketID types.TicketID) (*ticket.History, error)
- func (r *Memory) GetNotice(ctx context.Context, id types.NoticeID) (*notice.Notice, error)
- func (r *Memory) GetOrCreateTagByName(ctx context.Context, name, description, color, createdBy string) (*tag.Tag, error)
- func (r *Memory) GetTagByID(ctx context.Context, tagID string) (*tag.Tag, error)
- func (r *Memory) GetTagByName(ctx context.Context, name string) (*tag.Tag, error)
- func (r *Memory) GetTagsByIDs(ctx context.Context, tagIDs []string) ([]*tag.Tag, error)
- func (r *Memory) GetTicket(ctx context.Context, ticketID types.TicketID) (*ticket.Ticket, error)
- func (r *Memory) GetTicketByThread(ctx context.Context, thread slack.Thread) (*ticket.Ticket, error)
- func (r *Memory) GetTicketComments(ctx context.Context, ticketID types.TicketID) ([]ticket.Comment, error)
- func (r *Memory) GetTicketCommentsPaginated(ctx context.Context, ticketID types.TicketID, offset, limit int) ([]ticket.Comment, error)
- func (r *Memory) GetTicketMemory(ctx context.Context, schemaID types.AlertSchema) (*memory.TicketMemory, error)
- func (r *Memory) GetTicketUnpromptedComments(ctx context.Context, ticketID types.TicketID) ([]ticket.Comment, error)
- func (r *Memory) GetTicketsBySpan(ctx context.Context, start, end time.Time) ([]*ticket.Ticket, error)
- func (r *Memory) GetTicketsByStatus(ctx context.Context, statuses []types.TicketStatus, offset, limit int) ([]*ticket.Ticket, error)
- func (r *Memory) GetTicketsByStatusAndSpan(ctx context.Context, status types.TicketStatus, begin, end time.Time) ([]*ticket.Ticket, error)
- func (r *Memory) GetTicketsWithInvalidEmbedding(ctx context.Context) ([]*ticket.Ticket, error)
- func (r *Memory) GetToken(ctx context.Context, tokenID auth.TokenID) (*auth.Token, error)
- func (r *Memory) IsTagNameExists(ctx context.Context, name string) (bool, error)
- func (r *Memory) ListAllTags(ctx context.Context) ([]*tag.Tag, error)
- func (r *Memory) PutActivity(ctx context.Context, activity *activity.Activity) error
- func (r *Memory) PutAlert(ctx context.Context, alert alert.Alert) error
- func (r *Memory) PutAlertList(ctx context.Context, list *alert.List) error
- func (r *Memory) PutExecutionMemory(ctx context.Context, mem *memory.ExecutionMemory) error
- func (r *Memory) PutHistory(ctx context.Context, ticketID types.TicketID, history *ticket.History) error
- func (r *Memory) PutTicket(ctx context.Context, t ticket.Ticket) error
- func (r *Memory) PutTicketComment(ctx context.Context, comment ticket.Comment) error
- func (r *Memory) PutTicketCommentsPrompted(ctx context.Context, ticketID types.TicketID, commentIDs []types.CommentID) error
- func (r *Memory) PutTicketMemory(ctx context.Context, mem *memory.TicketMemory) error
- func (r *Memory) PutToken(ctx context.Context, token *auth.Token) error
- func (r *Memory) RemoveTagFromAllAlerts(ctx context.Context, name string) error
- func (r *Memory) RemoveTagFromAllTickets(ctx context.Context, name string) error
- func (r *Memory) RemoveTagIDFromAllAlerts(ctx context.Context, tagID string) error
- func (r *Memory) RemoveTagIDFromAllTickets(ctx context.Context, tagID string) error
- func (r *Memory) ResetCallCounts()
- func (r *Memory) SaveAgentMemory(ctx context.Context, mem *memory.AgentMemory) error
- func (r *Memory) SearchAlerts(ctx context.Context, path, op string, value any, limit int) (alert.Alerts, error)
- func (r *Memory) SearchExecutionMemoriesByEmbedding(ctx context.Context, schemaID types.AlertSchema, embedding []float32, ...) ([]*memory.ExecutionMemory, error)
- func (r *Memory) SearchMemoriesByEmbedding(ctx context.Context, agentID string, embedding []float32, limit int) ([]*memory.AgentMemory, error)
- func (r *Memory) UnbindAlertFromTicket(ctx context.Context, alertID types.AlertID) error
- func (r *Memory) UpdateNotice(ctx context.Context, notice *notice.Notice) error
- func (r *Memory) UpdateTag(ctx context.Context, tag *tag.Tag) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Firestore ¶
type Firestore struct {
// contains filtered or unexported fields
}
func NewFirestore ¶
func (*Firestore) BatchGetAlerts ¶
func (*Firestore) BatchGetTickets ¶
func (r *Firestore) BatchGetTickets(ctx context.Context, ticketIDs []types.TicketID) ([]*ticket.Ticket, error)
BatchGetTickets gets tickets by their IDs. If some tickets are not found, it will be ignored.
func (*Firestore) BatchPutAlerts ¶
func (*Firestore) BatchUpdateTicketsStatus ¶
func (*Firestore) BindAlertsToTicket ¶ added in v0.1.0
func (r *Firestore) BindAlertsToTicket(ctx context.Context, alertIDs []types.AlertID, ticketID types.TicketID) error
Alert-Ticket binding methods
func (*Firestore) CountActivities ¶
func (*Firestore) CountAlertsWithoutTicket ¶ added in v0.1.0
func (*Firestore) CountTicketComments ¶
func (*Firestore) CountTicketsByStatus ¶
func (*Firestore) CreateNotice ¶ added in v0.4.0
func (*Firestore) CreateTagWithID ¶ added in v0.2.0
func (*Firestore) DeleteTagByID ¶ added in v0.2.0
func (*Firestore) DeleteToken ¶
func (*Firestore) FindNearestAlerts ¶
func (*Firestore) FindNearestTickets ¶
func (*Firestore) FindNearestTicketsWithSpan ¶
func (*Firestore) FindSimilarAlerts ¶
func (*Firestore) GetActivities ¶
func (*Firestore) GetAgentMemory ¶ added in v0.5.0
func (r *Firestore) GetAgentMemory(ctx context.Context, agentID string, id types.AgentMemoryID) (*memory.AgentMemory, error)
GetAgentMemory retrieves an agent memory record by agentID and memoryID Path: agents/{agentID}/memories/{memoryID}
func (*Firestore) GetAlertList ¶
func (*Firestore) GetAlertListByThread ¶
func (*Firestore) GetAlertListsInThread ¶
func (*Firestore) GetAlertWithoutEmbedding ¶
func (*Firestore) GetAlertWithoutTicket ¶
func (*Firestore) GetAlertsBySpan ¶
func (*Firestore) GetAlertsWithInvalidEmbedding ¶ added in v0.1.0
func (*Firestore) GetExecutionMemory ¶ added in v0.5.0
func (r *Firestore) GetExecutionMemory(ctx context.Context, schemaID types.AlertSchema) (*memory.ExecutionMemory, error)
Memory related methods
func (*Firestore) GetLatestAlertByThread ¶
func (*Firestore) GetLatestAlertListInThread ¶
func (*Firestore) GetLatestHistory ¶
func (*Firestore) GetOrCreateTagByName ¶ added in v0.2.0
func (r *Firestore) GetOrCreateTagByName(ctx context.Context, name, description, color, createdBy string) (*tag.Tag, error)
GetOrCreateTagByName atomically gets an existing tag or creates a new one
func (*Firestore) GetTagByID ¶ added in v0.2.0
func (*Firestore) GetTagByName ¶ added in v0.2.0
func (*Firestore) GetTagsByIDs ¶ added in v0.2.0
func (*Firestore) GetTicketByThread ¶
func (*Firestore) GetTicketComments ¶
func (*Firestore) GetTicketCommentsPaginated ¶
func (*Firestore) GetTicketMemory ¶ added in v0.5.0
func (r *Firestore) GetTicketMemory(ctx context.Context, schemaID types.AlertSchema) (*memory.TicketMemory, error)
func (*Firestore) GetTicketUnpromptedComments ¶
func (*Firestore) GetTicketsBySpan ¶
func (*Firestore) GetTicketsByStatus ¶
func (*Firestore) GetTicketsByStatusAndSpan ¶
func (*Firestore) GetTicketsWithInvalidEmbedding ¶ added in v0.1.0
func (*Firestore) IsTagNameExists ¶ added in v0.2.0
func (*Firestore) ListAllTags ¶ added in v0.2.0
func (*Firestore) PutActivity ¶
Activity related methods
func (*Firestore) PutAlertList ¶
func (*Firestore) PutExecutionMemory ¶ added in v0.5.0
func (*Firestore) PutHistory ¶
func (*Firestore) PutTicketComment ¶
func (*Firestore) PutTicketCommentsPrompted ¶
func (*Firestore) PutTicketMemory ¶ added in v0.5.0
func (*Firestore) RemoveTagFromAllAlerts ¶ added in v0.2.0
func (*Firestore) RemoveTagFromAllTickets ¶ added in v0.2.0
func (*Firestore) RemoveTagIDFromAllAlerts ¶ added in v0.2.0
func (*Firestore) RemoveTagIDFromAllTickets ¶ added in v0.2.0
func (*Firestore) SaveAgentMemory ¶ added in v0.5.0
SaveAgentMemory saves an agent memory record in subcollection structure Path: agents/{agentID}/memories/{memoryID}
func (*Firestore) SearchAlerts ¶
func (*Firestore) SearchExecutionMemoriesByEmbedding ¶ added in v0.5.0
func (r *Firestore) SearchExecutionMemoriesByEmbedding(ctx context.Context, schemaID types.AlertSchema, embedding []float32, limit int) ([]*memory.ExecutionMemory, error)
SearchExecutionMemoriesByEmbedding searches execution memories by embedding similarity
func (*Firestore) SearchMemoriesByEmbedding ¶ added in v0.5.0
func (r *Firestore) SearchMemoriesByEmbedding(ctx context.Context, agentID string, embedding []float32, limit int) ([]*memory.AgentMemory, error)
SearchMemoriesByEmbedding searches for agent memories by embedding similarity within an agent's subcollection Path: agents/{agentID}/memories/*
func (*Firestore) UnbindAlertFromTicket ¶
func (*Firestore) UpdateNotice ¶ added in v0.4.0
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
func (*Memory) BatchGetAlerts ¶
func (*Memory) BatchGetTickets ¶
func (*Memory) BatchPutAlerts ¶
func (*Memory) BatchUpdateTicketsStatus ¶
func (*Memory) BindAlertsToTicket ¶ added in v0.1.0
func (*Memory) CountAlertsWithoutTicket ¶ added in v0.1.0
func (*Memory) CountTicketComments ¶
func (*Memory) CountTicketsByStatus ¶
func (*Memory) CreateNotice ¶ added in v0.4.0
func (*Memory) CreateTagWithID ¶ added in v0.2.0
func (*Memory) DeleteTagByID ¶ added in v0.2.0
func (*Memory) DeleteToken ¶
func (*Memory) FindNearestAlerts ¶
func (*Memory) FindNearestTickets ¶
func (*Memory) FindNearestTicketsWithSpan ¶
func (*Memory) FindSimilarAlerts ¶
func (*Memory) GetActivities ¶
func (*Memory) GetAgentMemory ¶ added in v0.5.0
func (r *Memory) GetAgentMemory(ctx context.Context, agentID string, id types.AgentMemoryID) (*memory.AgentMemory, error)
GetAgentMemory retrieves an agent memory record by agentID and memoryID
func (*Memory) GetAlertList ¶
func (*Memory) GetAlertListByThread ¶
func (*Memory) GetAlertListsInThread ¶
func (*Memory) GetAlertWithoutEmbedding ¶
func (*Memory) GetAlertWithoutTicket ¶
func (*Memory) GetAlertsBySpan ¶
func (*Memory) GetAlertsWithInvalidEmbedding ¶ added in v0.1.0
func (*Memory) GetAllCallCounts ¶
GetAllCallCounts returns a copy of all call counts
func (*Memory) GetCallCount ¶
GetCallCount returns the number of times a method has been called
func (*Memory) GetExecutionMemory ¶ added in v0.5.0
func (r *Memory) GetExecutionMemory(ctx context.Context, schemaID types.AlertSchema) (*memory.ExecutionMemory, error)
GetExecutionMemory retrieves the latest execution memory for the specified schema
func (*Memory) GetLatestAlertByThread ¶
func (*Memory) GetLatestAlertListInThread ¶
func (*Memory) GetLatestHistory ¶
func (*Memory) GetOrCreateTagByName ¶ added in v0.2.0
func (r *Memory) GetOrCreateTagByName(ctx context.Context, name, description, color, createdBy string) (*tag.Tag, error)
GetOrCreateTagByName atomically gets an existing tag or creates a new one
func (*Memory) GetTagByID ¶ added in v0.2.0
func (*Memory) GetTagByName ¶ added in v0.2.0
func (*Memory) GetTagsByIDs ¶ added in v0.2.0
func (*Memory) GetTicketByThread ¶
func (*Memory) GetTicketComments ¶
func (*Memory) GetTicketCommentsPaginated ¶
func (*Memory) GetTicketMemory ¶ added in v0.5.0
func (r *Memory) GetTicketMemory(ctx context.Context, schemaID types.AlertSchema) (*memory.TicketMemory, error)
GetTicketMemory retrieves the latest ticket memory for the specified schema
func (*Memory) GetTicketUnpromptedComments ¶
func (*Memory) GetTicketsBySpan ¶
func (*Memory) GetTicketsByStatus ¶
func (*Memory) GetTicketsByStatusAndSpan ¶
func (*Memory) GetTicketsWithInvalidEmbedding ¶ added in v0.1.0
func (*Memory) IsTagNameExists ¶ added in v0.2.0
func (*Memory) ListAllTags ¶ added in v0.2.0
func (*Memory) PutActivity ¶
Activity related methods
func (*Memory) PutAlertList ¶
func (*Memory) PutExecutionMemory ¶ added in v0.5.0
PutExecutionMemory stores execution memory as history for the specified schema
func (*Memory) PutHistory ¶
func (*Memory) PutTicketComment ¶
func (*Memory) PutTicketCommentsPrompted ¶
func (*Memory) PutTicketMemory ¶ added in v0.5.0
PutTicketMemory stores ticket memory as history for the specified schema
func (*Memory) RemoveTagFromAllAlerts ¶ added in v0.2.0
func (*Memory) RemoveTagFromAllTickets ¶ added in v0.2.0
func (*Memory) RemoveTagIDFromAllAlerts ¶ added in v0.2.0
func (*Memory) RemoveTagIDFromAllTickets ¶ added in v0.2.0
func (*Memory) ResetCallCounts ¶
func (r *Memory) ResetCallCounts()
ResetCallCounts clears all call counters
func (*Memory) SaveAgentMemory ¶ added in v0.5.0
SaveAgentMemory saves an agent memory record
func (*Memory) SearchAlerts ¶
func (*Memory) SearchExecutionMemoriesByEmbedding ¶ added in v0.5.0
func (r *Memory) SearchExecutionMemoriesByEmbedding(ctx context.Context, schemaID types.AlertSchema, embedding []float32, limit int) ([]*memory.ExecutionMemory, error)
SearchExecutionMemoriesByEmbedding searches execution memories by embedding similarity
func (*Memory) SearchMemoriesByEmbedding ¶ added in v0.5.0
func (r *Memory) SearchMemoriesByEmbedding(ctx context.Context, agentID string, embedding []float32, limit int) ([]*memory.AgentMemory, error)
SearchMemoriesByEmbedding searches for agent memories by embedding similarity