interfaces.go 385 B

1234567891011121314
  1. package app
  2. import (
  3. "context"
  4. )
  5. // AgentService defines the interface for agent operations
  6. type AgentService interface {
  7. Run(ctx context.Context, sessionID string, text string, attachments ...Attachment) (string, error)
  8. Cancel(sessionID string) error
  9. IsBusy() bool
  10. IsSessionBusy(sessionID string) bool
  11. CompactSession(ctx context.Context, sessionID string, force bool) error
  12. }