Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/temporal/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@


@app.async_tool(name="OrchestratorWorkflow")
async def run_orchestrator(input: str, app_ctx: Optional[AppContext]) -> str:
async def run_orchestrator(input: str, app_ctx: Optional[AppContext] = None) -> str:
"""
Run the workflow, processing the input data.
Args:
input: Task description or instruction text.
app_ctx: Optional application context for the workflow.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docstring line describing the app_ctx parameter is being removed, but the parameter still exists in the function signature. This creates inconsistent documentation where the function has an app_ctx parameter but no documentation for it. The docstring should be updated to describe the app_ctx parameter with its new default value behavior, not removed entirely.

Suggested change
:param app_ctx: Application context (defaults to None)

Spotted by Diamond

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

Returns:
A WorkflowResult containing the processed data
Expand Down
Loading