Skip to content

Commit b040ae1

Browse files
authored
Fix Python reference bugs: incorrect API name, syntax error, broken cross-ref, misleading comment (#55)
1 parent 68ebe14 commit b040ae1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

references/python/ai-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Overview
44

5-
This document provides Python-specific implementation details for integrating LLMs with Temporal. For conceptual patterns, see `references/core/ai-integration.md`.
5+
This document provides Python-specific implementation details for integrating LLMs with Temporal. For conceptual patterns, see `references/core/ai-patterns.md`.
66

77
## Pydantic Data Converter Setup
88

references/python/determinism.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Temporal provides durable execution through **History Replay**. When a Worker ne
2323
|-----------|------------------|
2424
| `datetime.now()` | `workflow.now()` |
2525
| `datetime.utcnow()` | `workflow.now()` |
26-
| `random.random()` | `rng = workflow.new_random() ; rng.randint(1, 100)` |
26+
| `random.random()` | `rng = workflow.random() ; rng.randint(1, 100)` |
2727
| `uuid.uuid4()` | `workflow.uuid4()` |
2828
| `time.time()` | `workflow.now().timestamp()` |
2929

references/python/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ async def test_replay():
136136

137137
# From JSON file
138138
await replayer.replay_workflow(
139-
WorkflowHistory.from_json(workflow_id=str(uuid.uuid4()), history_json)
139+
WorkflowHistory.from_json(str(uuid.uuid4()), history_json)
140140
)
141141
```
142142

0 commit comments

Comments
 (0)