MCPcopy Index your code
hub / github.com/google/ax / Delete

Method Delete

internal/controller/controller.go:263–269  ·  view source on GitHub ↗

Delete deletes all events for a specific conversation ID.

(ctx context.Context, conversationID string)

Source from the content-addressed store, hash-verified

261
262// Delete deletes all events for a specific conversation ID.
263func (d *Controller) Delete(ctx context.Context, conversationID string) error {
264 if conversationID == "" {
265 return fmt.Errorf("conversation_id is required")
266 }
267
268 return d.eventLog.DeleteEvents(ctx, conversationID)
269}
270
271// Fork forks an event log from a specific conversation up to a checkpoint.
272func (d *Controller) Fork(ctx context.Context, srcConversationID string, srcSeq int32, destConversationID string) (string, error) {

Callers 1

DeleteConversationMethod · 0.45

Calls 1

DeleteEventsMethod · 0.65

Tested by

no test coverage detected