/claude-actions-calculator

Simple application demonstrating claude using a calculator.

Primary LanguagePython

Claude Action Calculator

Simple cli application to solve complex mathematical problems using AI.

Key features:

  • Uses Claude Messages API with custom System prompt
  • LLM agents to produce answer using ReAct pattern
  • Prefilled input tokens for guided generation
  • Early stopping by scanning closing XML tokens
  • Provided tools to exit answer with conclusion
  • Graceful handling of infinite loop case

Demo:

asciicast