Documentation
¶
Index ¶
- Variables
- type AppendLifecycle
- type ContextAgentRegistryStore
- type ContextAgentStore
- type ContextLifecycleMessageStore
- type ContextMessageStore
- type ContextRoomStore
- type FileStore
- func (s *FileStore) AppendMessage(message protocol.Message) error
- func (s *FileStore) AppendMessageContext(_ context.Context, message protocol.Message) error
- func (s *FileStore) AppendMessageWithLifecycleContext(_ context.Context, message protocol.Message) (AppendLifecycle, error)
- func (s *FileStore) CreateRoom(room protocol.Room) error
- func (s *FileStore) CreateRoomContext(_ context.Context, room protocol.Room) error
- func (s *FileStore) GetDirectConversationContext(ctx context.Context, dmID string) (protocol.DirectConversation, bool, error)
- func (s *FileStore) GetRoom(id string) (protocol.Room, bool, error)
- func (s *FileStore) GetRoomContext(ctx context.Context, id string) (protocol.Room, bool, error)
- func (s *FileStore) GetThread(id string) (protocol.Thread, bool, error)
- func (s *FileStore) GetThreadContext(ctx context.Context, id string) (protocol.Thread, bool, error)
- func (s *FileStore) Health(context.Context) error
- func (s *FileStore) ListArtifacts(filter protocol.ArtifactFilter, before string, limit int) (protocol.ArtifactPage, error)
- func (s *FileStore) ListArtifactsContext(ctx context.Context, filter protocol.ArtifactFilter, page protocol.PageRequest) (protocol.ArtifactPage, error)
- func (s *FileStore) ListDMMessages(dmID string, before string, limit int) (protocol.MessagePage, error)
- func (s *FileStore) ListDMMessagesContext(ctx context.Context, dmID string, page protocol.PageRequest) (protocol.MessagePage, error)
- func (s *FileStore) ListDirectConversations() ([]protocol.DirectConversation, error)
- func (s *FileStore) ListDirectConversationsContext(ctx context.Context) ([]protocol.DirectConversation, error)
- func (s *FileStore) ListRoomMessages(roomID string, before string, limit int) (protocol.MessagePage, error)
- func (s *FileStore) ListRoomMessagesContext(ctx context.Context, roomID string, page protocol.PageRequest) (protocol.MessagePage, error)
- func (s *FileStore) ListRooms() ([]protocol.Room, error)
- func (s *FileStore) ListRoomsContext(ctx context.Context) ([]protocol.Room, error)
- func (s *FileStore) ListThreadMessages(threadID string, before string, limit int) (protocol.MessagePage, error)
- func (s *FileStore) ListThreadMessagesContext(ctx context.Context, threadID string, page protocol.PageRequest) (protocol.MessagePage, error)
- func (s *FileStore) ListThreads(roomID string) ([]protocol.Thread, error)
- func (s *FileStore) ListThreadsContext(ctx context.Context, roomID string) ([]protocol.Thread, error)
- func (s *FileStore) RegisterAgentContext(_ context.Context, registration protocol.AgentRegistration) (protocol.AgentRegistration, error)
- func (s *FileStore) UpdateRoomMembers(roomID string, add []string, remove []string) (protocol.Room, error)
- func (s *FileStore) UpdateRoomMembersContext(_ context.Context, roomID string, add []string, remove []string) (protocol.Room, error)
- type HealthChecker
- type MemoryStore
- func (s *MemoryStore) AppendMessage(message protocol.Message) error
- func (s *MemoryStore) AppendMessageContext(_ context.Context, message protocol.Message) error
- func (s *MemoryStore) AppendMessageWithLifecycleContext(_ context.Context, message protocol.Message) (AppendLifecycle, error)
- func (s *MemoryStore) CreateRoom(room protocol.Room) error
- func (s *MemoryStore) CreateRoomContext(_ context.Context, room protocol.Room) error
- func (s *MemoryStore) GetAgentContext(_ context.Context, agentID string) (protocol.AgentSummary, bool, error)
- func (s *MemoryStore) GetDirectConversationContext(_ context.Context, dmID string) (protocol.DirectConversation, bool, error)
- func (s *MemoryStore) GetRegisteredAgentByCredentialKeyContext(_ context.Context, credentialKey string) (protocol.AgentRegistration, bool, error)
- func (s *MemoryStore) GetRegisteredAgentContext(_ context.Context, agentID string) (protocol.AgentRegistration, bool, error)
- func (s *MemoryStore) GetRoom(id string) (protocol.Room, bool, error)
- func (s *MemoryStore) GetRoomContext(_ context.Context, id string) (protocol.Room, bool, error)
- func (s *MemoryStore) GetThread(id string) (protocol.Thread, bool, error)
- func (s *MemoryStore) GetThreadContext(_ context.Context, id string) (protocol.Thread, bool, error)
- func (s *MemoryStore) Health(context.Context) error
- func (s *MemoryStore) ListAgentsContext(_ context.Context) ([]protocol.AgentSummary, error)
- func (s *MemoryStore) ListArtifacts(filter protocol.ArtifactFilter, before string, limit int) (protocol.ArtifactPage, error)
- func (s *MemoryStore) ListArtifactsContext(_ context.Context, filter protocol.ArtifactFilter, page protocol.PageRequest) (protocol.ArtifactPage, error)
- func (s *MemoryStore) ListDMMessages(dmID string, before string, limit int) (protocol.MessagePage, error)
- func (s *MemoryStore) ListDMMessagesContext(_ context.Context, dmID string, page protocol.PageRequest) (protocol.MessagePage, error)
- func (s *MemoryStore) ListDirectConversations() ([]protocol.DirectConversation, error)
- func (s *MemoryStore) ListDirectConversationsContext(_ context.Context) ([]protocol.DirectConversation, error)
- func (s *MemoryStore) ListRegisteredAgentsContext(_ context.Context) ([]protocol.AgentRegistration, error)
- func (s *MemoryStore) ListRoomMessages(roomID string, before string, limit int) (protocol.MessagePage, error)
- func (s *MemoryStore) ListRoomMessagesContext(_ context.Context, roomID string, page protocol.PageRequest) (protocol.MessagePage, error)
- func (s *MemoryStore) ListRooms() ([]protocol.Room, error)
- func (s *MemoryStore) ListRoomsContext(_ context.Context) ([]protocol.Room, error)
- func (s *MemoryStore) ListThreadMessages(threadID string, before string, limit int) (protocol.MessagePage, error)
- func (s *MemoryStore) ListThreadMessagesContext(_ context.Context, threadID string, page protocol.PageRequest) (protocol.MessagePage, error)
- func (s *MemoryStore) ListThreads(roomID string) ([]protocol.Thread, error)
- func (s *MemoryStore) ListThreadsContext(_ context.Context, roomID string) ([]protocol.Thread, error)
- func (s *MemoryStore) RegisterAgentContext(_ context.Context, registration protocol.AgentRegistration) (protocol.AgentRegistration, error)
- func (s *MemoryStore) UpdateRoomMembers(roomID string, add []string, remove []string) (protocol.Room, error)
- func (s *MemoryStore) UpdateRoomMembersContext(_ context.Context, roomID string, add []string, remove []string) (protocol.Room, error)
- type MessageStore
- type RoomStore
- type SQLStore
- func (s *SQLStore) AppendMessage(message protocol.Message) error
- func (s *SQLStore) AppendMessageContext(ctx context.Context, message protocol.Message) error
- func (s *SQLStore) AppendMessageWithLifecycleContext(ctx context.Context, message protocol.Message) (AppendLifecycle, error)
- func (s *SQLStore) Close() error
- func (s *SQLStore) CreateRoom(room protocol.Room) error
- func (s *SQLStore) CreateRoomContext(ctx context.Context, room protocol.Room) error
- func (s *SQLStore) GetAgentContext(ctx context.Context, agentID string) (protocol.AgentSummary, bool, error)
- func (s *SQLStore) GetDirectConversationContext(ctx context.Context, dmID string) (protocol.DirectConversation, bool, error)
- func (s *SQLStore) GetRegisteredAgentByCredentialKeyContext(ctx context.Context, credentialKey string) (protocol.AgentRegistration, bool, error)
- func (s *SQLStore) GetRegisteredAgentContext(ctx context.Context, agentID string) (protocol.AgentRegistration, bool, error)
- func (s *SQLStore) GetRoom(id string) (protocol.Room, bool, error)
- func (s *SQLStore) GetRoomContext(ctx context.Context, id string) (protocol.Room, bool, error)
- func (s *SQLStore) GetThread(id string) (protocol.Thread, bool, error)
- func (s *SQLStore) GetThreadContext(ctx context.Context, id string) (protocol.Thread, bool, error)
- func (s *SQLStore) Health(ctx context.Context) error
- func (s *SQLStore) ListAgentsContext(ctx context.Context) ([]protocol.AgentSummary, error)
- func (s *SQLStore) ListArtifacts(filter protocol.ArtifactFilter, before string, limit int) (protocol.ArtifactPage, error)
- func (s *SQLStore) ListArtifactsContext(ctx context.Context, filter protocol.ArtifactFilter, page protocol.PageRequest) (protocol.ArtifactPage, error)
- func (s *SQLStore) ListDMMessages(dmID string, before string, limit int) (protocol.MessagePage, error)
- func (s *SQLStore) ListDMMessagesContext(ctx context.Context, dmID string, page protocol.PageRequest) (protocol.MessagePage, error)
- func (s *SQLStore) ListDirectConversations() ([]protocol.DirectConversation, error)
- func (s *SQLStore) ListDirectConversationsContext(ctx context.Context) ([]protocol.DirectConversation, error)
- func (s *SQLStore) ListRegisteredAgentsContext(ctx context.Context) ([]protocol.AgentRegistration, error)
- func (s *SQLStore) ListRoomMessages(roomID string, before string, limit int) (protocol.MessagePage, error)
- func (s *SQLStore) ListRoomMessagesContext(ctx context.Context, roomID string, page protocol.PageRequest) (protocol.MessagePage, error)
- func (s *SQLStore) ListRooms() ([]protocol.Room, error)
- func (s *SQLStore) ListRoomsContext(ctx context.Context) ([]protocol.Room, error)
- func (s *SQLStore) ListThreadMessages(threadID string, before string, limit int) (protocol.MessagePage, error)
- func (s *SQLStore) ListThreadMessagesContext(ctx context.Context, threadID string, page protocol.PageRequest) (protocol.MessagePage, error)
- func (s *SQLStore) ListThreads(roomID string) ([]protocol.Thread, error)
- func (s *SQLStore) ListThreadsContext(ctx context.Context, roomID string) ([]protocol.Thread, error)
- func (s *SQLStore) RegisterAgentContext(ctx context.Context, registration protocol.AgentRegistration) (protocol.AgentRegistration, error)
- func (s *SQLStore) UpdateRoomMembers(roomID string, add []string, remove []string) (protocol.Room, error)
- func (s *SQLStore) UpdateRoomMembersContext(ctx context.Context, roomID string, add []string, remove []string) (protocol.Room, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AppendLifecycle ¶
type AppendLifecycle struct {
Thread *protocol.Thread
DM *protocol.DirectConversation
}
type ContextAgentRegistryStore ¶
type ContextAgentRegistryStore interface {
RegisterAgentContext(ctx context.Context, registration protocol.AgentRegistration) (protocol.AgentRegistration, error)
ListRegisteredAgentsContext(ctx context.Context) ([]protocol.AgentRegistration, error)
GetRegisteredAgentContext(ctx context.Context, agentID string) (protocol.AgentRegistration, bool, error)
GetRegisteredAgentByCredentialKeyContext(ctx context.Context, credentialKey string) (protocol.AgentRegistration, bool, error)
}
type ContextAgentStore ¶
type ContextMessageStore ¶
type ContextMessageStore interface {
AppendMessageContext(ctx context.Context, message protocol.Message) error
ListRoomMessagesContext(ctx context.Context, roomID string, page protocol.PageRequest) (protocol.MessagePage, error)
ListThreadsContext(ctx context.Context, roomID string) ([]protocol.Thread, error)
ListThreadMessagesContext(ctx context.Context, threadID string, page protocol.PageRequest) (protocol.MessagePage, error)
ListDirectConversationsContext(ctx context.Context) ([]protocol.DirectConversation, error)
GetDirectConversationContext(ctx context.Context, dmID string) (protocol.DirectConversation, bool, error)
ListDMMessagesContext(ctx context.Context, dmID string, page protocol.PageRequest) (protocol.MessagePage, error)
ListArtifactsContext(ctx context.Context, filter protocol.ArtifactFilter, page protocol.PageRequest) (protocol.ArtifactPage, error)
}
type ContextRoomStore ¶
type ContextRoomStore interface {
CreateRoomContext(ctx context.Context, room protocol.Room) error
GetRoomContext(ctx context.Context, id string) (protocol.Room, bool, error)
GetThreadContext(ctx context.Context, id string) (protocol.Thread, bool, error)
ListRoomsContext(ctx context.Context) ([]protocol.Room, error)
UpdateRoomMembersContext(ctx context.Context, roomID string, add []string, remove []string) (protocol.Room, error)
}
type FileStore ¶
type FileStore struct {
*MemoryStore
// contains filtered or unexported fields
}
func NewFileStore ¶
func (*FileStore) AppendMessageContext ¶
func (*FileStore) AppendMessageWithLifecycleContext ¶
func (*FileStore) CreateRoomContext ¶
func (*FileStore) GetDirectConversationContext ¶
func (*FileStore) GetRoomContext ¶
func (*FileStore) GetThreadContext ¶
func (*FileStore) ListArtifacts ¶
func (s *FileStore) ListArtifacts(filter protocol.ArtifactFilter, before string, limit int) (protocol.ArtifactPage, error)
func (*FileStore) ListArtifactsContext ¶
func (s *FileStore) ListArtifactsContext(ctx context.Context, filter protocol.ArtifactFilter, page protocol.PageRequest) (protocol.ArtifactPage, error)
func (*FileStore) ListDMMessages ¶
func (*FileStore) ListDMMessagesContext ¶
func (s *FileStore) ListDMMessagesContext(ctx context.Context, dmID string, page protocol.PageRequest) (protocol.MessagePage, error)
func (*FileStore) ListDirectConversations ¶
func (s *FileStore) ListDirectConversations() ([]protocol.DirectConversation, error)
func (*FileStore) ListDirectConversationsContext ¶
func (*FileStore) ListRoomMessages ¶
func (*FileStore) ListRoomMessagesContext ¶
func (s *FileStore) ListRoomMessagesContext(ctx context.Context, roomID string, page protocol.PageRequest) (protocol.MessagePage, error)
func (*FileStore) ListRoomsContext ¶
func (*FileStore) ListThreadMessages ¶
func (*FileStore) ListThreadMessagesContext ¶
func (s *FileStore) ListThreadMessagesContext(ctx context.Context, threadID string, page protocol.PageRequest) (protocol.MessagePage, error)
func (*FileStore) ListThreads ¶
func (*FileStore) ListThreadsContext ¶
func (*FileStore) RegisterAgentContext ¶
func (s *FileStore) RegisterAgentContext( _ context.Context, registration protocol.AgentRegistration, ) (protocol.AgentRegistration, error)
func (*FileStore) UpdateRoomMembers ¶
type HealthChecker ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶
func NewMemoryStore() *MemoryStore
func (*MemoryStore) AppendMessage ¶
func (s *MemoryStore) AppendMessage(message protocol.Message) error
func (*MemoryStore) AppendMessageContext ¶
func (*MemoryStore) AppendMessageWithLifecycleContext ¶
func (s *MemoryStore) AppendMessageWithLifecycleContext(_ context.Context, message protocol.Message) (AppendLifecycle, error)
func (*MemoryStore) CreateRoom ¶
func (s *MemoryStore) CreateRoom(room protocol.Room) error
func (*MemoryStore) CreateRoomContext ¶
func (*MemoryStore) GetAgentContext ¶
func (s *MemoryStore) GetAgentContext(_ context.Context, agentID string) (protocol.AgentSummary, bool, error)
func (*MemoryStore) GetDirectConversationContext ¶
func (s *MemoryStore) GetDirectConversationContext( _ context.Context, dmID string, ) (protocol.DirectConversation, bool, error)
func (*MemoryStore) GetRegisteredAgentByCredentialKeyContext ¶ added in v0.1.1
func (s *MemoryStore) GetRegisteredAgentByCredentialKeyContext( _ context.Context, credentialKey string, ) (protocol.AgentRegistration, bool, error)
func (*MemoryStore) GetRegisteredAgentContext ¶
func (s *MemoryStore) GetRegisteredAgentContext( _ context.Context, agentID string, ) (protocol.AgentRegistration, bool, error)
func (*MemoryStore) GetRoomContext ¶
func (*MemoryStore) GetThreadContext ¶
func (*MemoryStore) ListAgentsContext ¶
func (s *MemoryStore) ListAgentsContext(_ context.Context) ([]protocol.AgentSummary, error)
func (*MemoryStore) ListArtifacts ¶
func (s *MemoryStore) ListArtifacts( filter protocol.ArtifactFilter, before string, limit int, ) (protocol.ArtifactPage, error)
func (*MemoryStore) ListArtifactsContext ¶
func (s *MemoryStore) ListArtifactsContext( _ context.Context, filter protocol.ArtifactFilter, page protocol.PageRequest, ) (protocol.ArtifactPage, error)
func (*MemoryStore) ListDMMessages ¶
func (s *MemoryStore) ListDMMessages(dmID string, before string, limit int) (protocol.MessagePage, error)
func (*MemoryStore) ListDMMessagesContext ¶
func (s *MemoryStore) ListDMMessagesContext( _ context.Context, dmID string, page protocol.PageRequest, ) (protocol.MessagePage, error)
func (*MemoryStore) ListDirectConversations ¶
func (s *MemoryStore) ListDirectConversations() ([]protocol.DirectConversation, error)
func (*MemoryStore) ListDirectConversationsContext ¶
func (s *MemoryStore) ListDirectConversationsContext(_ context.Context) ([]protocol.DirectConversation, error)
func (*MemoryStore) ListRegisteredAgentsContext ¶
func (s *MemoryStore) ListRegisteredAgentsContext(_ context.Context) ([]protocol.AgentRegistration, error)
func (*MemoryStore) ListRoomMessages ¶
func (s *MemoryStore) ListRoomMessages(roomID string, before string, limit int) (protocol.MessagePage, error)
func (*MemoryStore) ListRoomMessagesContext ¶
func (s *MemoryStore) ListRoomMessagesContext( _ context.Context, roomID string, page protocol.PageRequest, ) (protocol.MessagePage, error)
func (*MemoryStore) ListRoomsContext ¶
func (*MemoryStore) ListThreadMessages ¶
func (s *MemoryStore) ListThreadMessages(threadID string, before string, limit int) (protocol.MessagePage, error)
func (*MemoryStore) ListThreadMessagesContext ¶
func (s *MemoryStore) ListThreadMessagesContext( _ context.Context, threadID string, page protocol.PageRequest, ) (protocol.MessagePage, error)
func (*MemoryStore) ListThreads ¶
func (s *MemoryStore) ListThreads(roomID string) ([]protocol.Thread, error)
func (*MemoryStore) ListThreadsContext ¶
func (*MemoryStore) RegisterAgentContext ¶
func (s *MemoryStore) RegisterAgentContext( _ context.Context, registration protocol.AgentRegistration, ) (protocol.AgentRegistration, error)
func (*MemoryStore) UpdateRoomMembers ¶
type MessageStore ¶
type MessageStore interface {
AppendMessage(message protocol.Message) error
ListRoomMessages(roomID string, before string, limit int) (protocol.MessagePage, error)
ListThreads(roomID string) ([]protocol.Thread, error)
ListThreadMessages(threadID string, before string, limit int) (protocol.MessagePage, error)
ListDirectConversations() ([]protocol.DirectConversation, error)
ListDMMessages(dmID string, before string, limit int) (protocol.MessagePage, error)
ListArtifacts(filter protocol.ArtifactFilter, before string, limit int) (protocol.ArtifactPage, error)
}
type SQLStore ¶
type SQLStore struct {
// contains filtered or unexported fields
}
func NewPostgresStore ¶
func NewSQLiteStore ¶
func (*SQLStore) AppendMessageContext ¶
func (*SQLStore) AppendMessageWithLifecycleContext ¶
func (*SQLStore) CreateRoomContext ¶
func (*SQLStore) GetAgentContext ¶
func (*SQLStore) GetDirectConversationContext ¶
func (*SQLStore) GetRegisteredAgentByCredentialKeyContext ¶ added in v0.1.1
func (*SQLStore) GetRegisteredAgentContext ¶
func (*SQLStore) GetRoomContext ¶
func (*SQLStore) GetThreadContext ¶
func (*SQLStore) ListAgentsContext ¶
func (*SQLStore) ListArtifacts ¶
func (s *SQLStore) ListArtifacts(filter protocol.ArtifactFilter, before string, limit int) (protocol.ArtifactPage, error)
func (*SQLStore) ListArtifactsContext ¶
func (s *SQLStore) ListArtifactsContext( ctx context.Context, filter protocol.ArtifactFilter, page protocol.PageRequest, ) (protocol.ArtifactPage, error)
func (*SQLStore) ListDMMessages ¶
func (*SQLStore) ListDMMessagesContext ¶
func (s *SQLStore) ListDMMessagesContext( ctx context.Context, dmID string, page protocol.PageRequest, ) (protocol.MessagePage, error)
func (*SQLStore) ListDirectConversations ¶
func (s *SQLStore) ListDirectConversations() ([]protocol.DirectConversation, error)
func (*SQLStore) ListDirectConversationsContext ¶
func (*SQLStore) ListRegisteredAgentsContext ¶
func (*SQLStore) ListRoomMessages ¶
func (*SQLStore) ListRoomMessagesContext ¶
func (s *SQLStore) ListRoomMessagesContext( ctx context.Context, roomID string, page protocol.PageRequest, ) (protocol.MessagePage, error)
func (*SQLStore) ListRoomsContext ¶
func (*SQLStore) ListThreadMessages ¶
func (*SQLStore) ListThreadMessagesContext ¶
func (s *SQLStore) ListThreadMessagesContext( ctx context.Context, threadID string, page protocol.PageRequest, ) (protocol.MessagePage, error)
func (*SQLStore) ListThreads ¶
func (*SQLStore) ListThreadsContext ¶
func (*SQLStore) RegisterAgentContext ¶
func (s *SQLStore) RegisterAgentContext( ctx context.Context, registration protocol.AgentRegistration, ) (protocol.AgentRegistration, error)
func (*SQLStore) UpdateRoomMembers ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.