Skip to content

Commit 2224d45

Browse files
docs: fix UserContext example (#1280)
1 parent bd527ad commit 2224d45

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

docs/agents.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Agents are generic on their `context` type. Context is a dependency-injection to
3434
```python
3535
@dataclass
3636
class UserContext:
37+
name: str
3738
uid: str
3839
is_pro_user: bool
3940

docs/ja/agents.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ agent = Agent(
3838
```python
3939
@dataclass
4040
class UserContext:
41+
name: str
4142
uid: str
4243
is_pro_user: bool
4344

docs/scripts/generate_ref_files.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def md_target(py_path: Path) -> Path:
3131
rel = py_path.relative_to(SRC_ROOT).with_suffix(".md")
3232
return DOCS_ROOT / rel
3333

34+
3435
def pretty_title(last_segment: str) -> str:
3536
"""
3637
Convert a module/file segment like 'tool_context' to 'Tool Context'.
@@ -39,6 +40,7 @@ def pretty_title(last_segment: str) -> str:
3940
cleaned = last_segment.replace("_", " ").replace("-", " ")
4041
return capwords(cleaned)
4142

43+
4244
# ---- Main ------------------------------------------------------------
4345

4446

0 commit comments

Comments
 (0)