linking

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugEnabled

func DebugEnabled() bool

DebugEnabled reports whether conversation debug logging is enabled. Enable with AGENTLY_DEBUG=1 (or true/yes/on). Also accepts AGENTLY_SCHEDULER_DEBUG. Legacy env (deprecated): AGENTLY_CONVERSATION_DEBUG.

Types

type Service

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

Service encapsulates helpers to create child conversations linked to a parent turn and to add parent-side link messages. It centralizes conversation linkage so both internal and external agent runs can rely on consistent behavior.

func New

func New(c apiconv.Client) *Service

New returns a new linking Service.

func (*Service) AddLinkMessage

func (s *Service) AddLinkMessage(ctx context.Context, parent memory.TurnMeta, childConversationID, role, actor, mode string, content string) error

AddLinkMessage adds an interim message to the parent turn with a linked conversation id so UIs and tooling can navigate to the child.

func (*Service) CreateLinkedConversation

func (s *Service) CreateLinkedConversation(ctx context.Context, parent memory.TurnMeta, cloneTranscript bool, transcript apiconv.Transcript) (string, error)

CreateLinkedConversation creates a new conversation linked to the provided parent turn (by conversation/turn id). When cloneTranscript is true and a transcript is provided, it clones the last transcript into the new conversation for context.

func (*Service) SetStreamPublisher

func (s *Service) SetStreamPublisher(p streaming.Publisher)

SetStreamPublisher wires a streaming publisher so the service can emit canonical linked-conversation events to the SSE bus.

Jump to

Keyboard shortcuts

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