Updated the OpenAI agent example to demonstrate streaming responses by modifying the chat completion call to include `stream=True` and iterating over response chunks. Added a new `stream_response` function that yields tokens incrementally, showcasing real-time output for interactive use cases. The example now includes a `main` block that calls this function with a sample prompt, improving clarity for developers integrating streaming into their agents.
This commit introduces a new example script that showcases how to build and run an AI agent using the OpenAI API, including setup instructions and basic interaction patterns.