Cyclium.Intent.ConversationHook (Cyclium v0.1.11)

Copy Markdown View Source

Post-converge hook for interactive episodes. Called after an interactive episode converges to:

  1. Increment the conversation turn counter
  2. Update collected fields from the episode result
  3. Evaluate the goal to determine if the conversation should resolve
  4. Check conversation constraints (max turns, timeout)

Summary

Functions

after_converge(conversation_id, result, tokens_used \\ 0)

@spec after_converge(binary(), Cyclium.ConvergeResult.t(), non_neg_integer()) :: :ok