Python: OpenAI Responses Agent - threads, code interpreter, bug fixes and examples (#242)

* Added basic example with small fix

* Added example with function tools

* Added example with thread management

* Small renaming

* Added example with code interpreter
This commit is contained in:
Dmytro Struk
2025-07-28 17:07:29 +00:00
committed by GitHub
parent 190035bb69
commit c794892d79
10 changed files with 403 additions and 35 deletions
@@ -62,7 +62,7 @@ async def example_with_thread_persistence() -> None:
print(f"Agent: {result1.text}")
# Second conversation using the same thread - maintains context
query2 = "How about comparing it to London?"
query2 = "How about London?"
print(f"\nUser: {query2}")
result2 = await agent.run(query2, thread=thread)
print(f"Agent: {result2.text}")