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 (*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 ¶
SetStreamPublisher wires a streaming publisher so the service can emit canonical linked-conversation events to the SSE bus.