Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(examples): add llm_lottery.py for demonstrating LLM tool integration #363

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

gwpl
Copy link
Contributor

@gwpl gwpl commented Nov 4, 2024

  • Introduce llm_lottery.py, a new example script leveraging LLM with predefined tools.
  • Tools introduced:
    • buy_lottery_ticket: Purchases a lottery ticket.
    • check_lottery_result: Validates if purchased ticket wins.
  • Implements play_lottery, enhancing LLM actions with GPT-4o-mini model.
  • Included loop_llm_and_tools for iterative task resolution until completion.
  • Integrated argparse for verbosity, showcasing scalable CLI with -v, -vv flags.
  • Establishes script execution with main() for elucidated tool dynamics.
  • Illustrates LLM capabilities in procedural, educational lottery gameplay context.

…ration

* Introduce `llm_lottery.py`, a new example script leveraging LLM with predefined tools.
* Tools introduced:
  * `buy_lottery_ticket`: Purchases a lottery ticket.
  * `check_lottery_result`: Validates if purchased ticket wins.
* Implements `play_lottery`, enhancing LLM actions with GPT-4o-mini model.
* Included `loop_llm_and_tools` for iterative task resolution until completion.
* Integrated `argparse` for verbosity, showcasing scalable CLI with `-v`, `-vv` flags.
* Establishes script execution with `main()` for elucidated tool dynamics.
* Illustrates LLM capabilities in procedural, educational lottery gameplay context.
@MadcowD
Copy link
Owner

MadcowD commented Nov 5, 2024

Thank you looks good!

@MadcowD MadcowD merged commit 82d626b into MadcowD:main Nov 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants