Documentation
¶
Overview ¶
Package postgres provides a PostgreSQL backend for agentops using Ent.
Index ¶
- func New(opts ...agentops.ClientOption) (agentops.Store, error)
- type Store
- func (s *Store) Close() error
- func (s *Store) CompleteTask(ctx context.Context, id string, opts ...agentops.TaskCompleteOption) error
- func (s *Store) CompleteToolInvocation(ctx context.Context, id string, opts ...agentops.ToolInvocationCompleteOption) error
- func (s *Store) CompleteWorkflow(ctx context.Context, id string, opts ...agentops.WorkflowCompleteOption) error
- func (s *Store) EmitEvent(ctx context.Context, eventType string, opts ...agentops.EventOption) (*agentops.Event, error)
- func (s *Store) FailTask(ctx context.Context, id string, failErr error, opts ...agentops.TaskFailOption) error
- func (s *Store) FailWorkflow(ctx context.Context, id string, failErr error) error
- func (s *Store) GetEvent(ctx context.Context, id string) (*agentops.Event, error)
- func (s *Store) GetHandoff(ctx context.Context, id string) (*agentops.Handoff, error)
- func (s *Store) GetTask(ctx context.Context, id string) (*agentops.Task, error)
- func (s *Store) GetToolInvocation(ctx context.Context, id string) (*agentops.ToolInvocation, error)
- func (s *Store) GetWorkflow(ctx context.Context, id string) (*agentops.Workflow, error)
- func (s *Store) ListEvents(ctx context.Context, opts ...agentops.ListOption) ([]*agentops.Event, error)
- func (s *Store) ListHandoffs(ctx context.Context, opts ...agentops.ListOption) ([]*agentops.Handoff, error)
- func (s *Store) ListTasks(ctx context.Context, opts ...agentops.ListOption) ([]*agentops.Task, error)
- func (s *Store) ListToolInvocations(ctx context.Context, opts ...agentops.ListOption) ([]*agentops.ToolInvocation, error)
- func (s *Store) ListWorkflows(ctx context.Context, opts ...agentops.ListOption) ([]*agentops.Workflow, error)
- func (s *Store) Ping(ctx context.Context) error
- func (s *Store) RecordHandoff(ctx context.Context, fromAgentID, toAgentID string, ...) (*agentops.Handoff, error)
- func (s *Store) RecordToolInvocation(ctx context.Context, taskID, agentID, toolName string, ...) (*agentops.ToolInvocation, error)
- func (s *Store) StartTask(ctx context.Context, workflowID, agentID, name string, ...) (*agentops.Task, error)
- func (s *Store) StartWorkflow(ctx context.Context, name string, opts ...agentops.WorkflowOption) (*agentops.Workflow, error)
- func (s *Store) UpdateHandoff(ctx context.Context, id string, opts ...agentops.HandoffUpdateOption) error
- func (s *Store) UpdateTask(ctx context.Context, id string, opts ...agentops.TaskUpdateOption) error
- func (s *Store) UpdateToolInvocation(ctx context.Context, id string, opts ...agentops.ToolInvocationUpdateOption) error
- func (s *Store) UpdateWorkflow(ctx context.Context, id string, opts ...agentops.WorkflowUpdateOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements agentops.Store using PostgreSQL with Ent.
func (*Store) CompleteTask ¶
func (*Store) CompleteToolInvocation ¶
func (*Store) CompleteWorkflow ¶
func (*Store) FailWorkflow ¶
func (*Store) GetHandoff ¶
func (*Store) GetToolInvocation ¶
func (*Store) GetWorkflow ¶
func (*Store) ListEvents ¶
func (*Store) ListHandoffs ¶
func (*Store) ListToolInvocations ¶
func (s *Store) ListToolInvocations(ctx context.Context, opts ...agentops.ListOption) ([]*agentops.ToolInvocation, error)
func (*Store) ListWorkflows ¶
func (*Store) RecordHandoff ¶
func (*Store) RecordToolInvocation ¶
func (s *Store) RecordToolInvocation(ctx context.Context, taskID, agentID, toolName string, opts ...agentops.ToolInvocationOption) (*agentops.ToolInvocation, error)
func (*Store) StartWorkflow ¶
func (*Store) UpdateHandoff ¶
func (*Store) UpdateTask ¶
func (*Store) UpdateToolInvocation ¶
func (*Store) UpdateWorkflow ¶
Click to show internal directories.
Click to hide internal directories.