Skip to main content

Module socratic_guide

Module socratic_guide 

Source
Expand description

Socratic guide component for hints and feedback.

Displays contextual hints and error messages using a Socratic teaching approach. Guides users toward understanding rather than providing direct answers.

§Props

  • mode - Current guide state (Idle, Success, Error, Hint, Info)
  • on_hint_request - Optional callback for “Show me a hint” button

§Modes

  • Idle - Placeholder when no input
  • Success - Green message for successful parsing
  • Error - Red message with Socratic guidance
  • Hint - Green hint text
  • Info - Blue informational message

Re-exports§

pub use SocraticGuide_completions::Component::SocraticGuide;

Structs§

SocraticGuideProps
Properties for the SocraticGuide component.

Enums§

GuideMode

Functions§

SocraticGuide
Props
get_context_hint
get_success_message