Skip to content

Commit 0e6d8cb

Browse files
committed
Restore apply_template runtime default (required by Python syntax)
Python requires that parameters with defaults precede those without. Since name and template_id have defaults, runtime must too.
1 parent c54cf1d commit 0e6d8cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/agent/src/templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def list_templates(runtime: ToolRuntime):
7979

8080

8181
@tool
82-
def apply_template(name: str = "", template_id: str = "", runtime: ToolRuntime):
82+
def apply_template(name: str = "", template_id: str = "", runtime: ToolRuntime = None):
8383
"""
8484
Retrieve a saved template's HTML so you can adapt it with new data.
8585
After calling this, generate a NEW widget in the same style and render via widgetRenderer.

0 commit comments

Comments
 (0)