samples-python
samples-python copied to clipboard
Samples for working with the Temporal Python SDK
## Summary Add LangGraph samples demonstrating the Temporal LangGraph integration for durable AI agent workflows. ## Samples Included | Sample | Description | |--------|-------------| | **hello_world** | Minimal starter example...
## What was changed This PR adds comprehensive documentation for the OpenAI Agents SDK integration with Temporal, providing developers with detailed implementation guides, architectural patterns, and best practices for building...
## What changed - Replace `WorkflowIdReusePolicy.TERMINATE_EXISTING` by `WorkflowIdConflictPolicy.TERMINATE_EXISTING`. The former has been deprecated.
See https://github.com/temporalio/sdk-python/pull/1138
## What was changed Add Workflow URL to Temporal Sentry errors ## Why? It allows to get the Temporal UI workflow URL in the context of the Sentry
## What was changed Make the capture_exception call async in Sentry intercepor ## Why? Use `asyncio.to_thread` to avoid `DeadlockError` while sending exception to Sentry ## Checklist 1. Refs #140 2....
## Summary - set the sync caller workflow ID using the Nexus endpoint name to keep it business-relevant ## Testing - not run (not requested) ------ [Codex Task](https://chatgpt.com/codex/tasks/task_b_6912844148888331b9ad114dd55a7a39)
## What was changed Adding testing of the OpenAI Agents SDK sample workflows. ## Why? Should test our Agents SDK samples to ensure they remain functional / correct. ## Checklist...
### Describe the bug Two workflows at https://github.com/temporalio/samples-python/tree/main/openai_agents/model_providers/workflows encourage users to call the global `set_tracing_disabled` _inside_ the workflow. Should either remove altogether or move to the `_worker.py` file instead.
## What was changed Refactored `convert_proto_to_parquet_flatten` for better memory efficiency and faster execution and added test coverage: Implementation changes: - Replaced MessageToJson → MessageToDict to avoid JSON serialization overhead -...