Skip to content

Add Python examples for SDK integration with AI frameworks #33

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thisyearnofear
Copy link

This PR adds practical Python examples demonstrating how to use the thirdweb AI SDK with various AI frameworks. These examples provide ready-to-run code showing the intended usage patterns of the SDK.

Additions

  • examples/python/simple_demo.py: Basic demo showing SDK initialization and setup
  • examples/python/agent_example.py: OpenAI Assistants API integration example
  • examples/python/langchain_example.py: LangChain integration example
  • examples/python/thirdweb_ai_summary.py: Comprehensive SDK overview
  • Added READMEs with usage instructions

Motivation

While exploring the SDK, I found that having concrete, runnable examples would be helpful for understanding the SDK's intended usage pattern as a toolkit for AI agents. These examples aim to help new users quickly get started with the SDK.

Each example includes:

  • Clear setup instructions
  • Proper error handling
  • Framework-specific integration code
  • Comments explaining key concepts

These examples complement the recent README updates which clarified the SDK's purpose since I first downloaded it.

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.

1 participant