Build a library that visualizes and tracks agentic workflows similar to Amazon Bedrock Agents but with complete visibility and local debugging capabilities. Focus on state management and step-by-step reasoning logs.