social

package
v0.0.0-...-1682721 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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