social

package
v0.0.0-...-1872f57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	ID     string
	Author string
	Body   string
}

Comment is a single reply in a discussion.

type Discussion

type Discussion struct {
	ID       string
	Number   int
	Title    string
	Body     string
	URL      string
	Comments []Comment
}

Discussion represents a GitHub Discussion thread.

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine handles the social loop.

func New

func New(repoPath, owner, repo string, logger *slog.Logger) *Engine

New creates a new social engine.

func (*Engine) HealthCheck

func (e *Engine) HealthCheck(ctx context.Context) error

HealthCheck verifies that the GitHub API is reachable and the token is valid.

func (*Engine) ReplyToIssues

func (e *Engine) ReplyToIssues(ctx context.Context, p iteragent.Provider, issueNumbers []int) error

func (*Engine) Run

func (e *Engine) Run(ctx context.Context, p iteragent.Provider) error

Run executes one social session: reads discussions, replies where useful, learns from humans.

func (*Engine) WriteLearningsToMemory

func (e *Engine) WriteLearningsToMemory(who, insight string) error

WriteLearningsToMemory is the public entry point for the synthesize workflow. It writes a social learning entry with the given who and insight fields.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL