Skip to content

Commit 4f91533

Browse files
docs(agent/tools): tighten escalation tool docstrings
Trim create_escalation_tool and create_task_for_channel docstrings to consumer-focused summaries; drop method paths and dispatch internals. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 8902dcd commit 4f91533

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

src/uipath_langchain/agent/tools/escalation_tool.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,7 @@ async def create_task_for_channel(
261261
recipient: TaskRecipient | None,
262262
folder_path: str | None,
263263
) -> Task:
264-
"""Create the Action Center or quick-form task backing an escalation channel.
265-
266-
Quick-form channels (``actionCenterQuickForm``) dispatch to
267-
``create_quickform_async`` with their inline schema; all other channels
268-
dispatch to ``create_async`` against the channel's Action Center app.
269-
"""
264+
"""Create the human task backing an escalation channel."""
270265
if isinstance(channel, AgentQuickFormEscalationChannel):
271266
schema_id = channel.properties.schema_id
272267
if schema_id is None:
@@ -308,15 +303,7 @@ def create_escalation_tool(
308303
resource: AgentEscalationResourceConfig,
309304
agent: LowCodeAgentDefinition | None = None,
310305
) -> StructuredTool:
311-
"""Uses interrupt() for Action Center human-in-the-loop.
312-
313-
Handles both Action Center app-task channels (``actionCenter``) and
314-
quick-form channels (``actionCenterQuickForm``). Quick-form channels render
315-
a schema-first FormLib task via
316-
:meth:`uipath.platform.action_center.tasks.TasksService.create_quickform_async`
317-
using ``channel.properties.form_schema`` instead of dispatching to an Action
318-
Center app.
319-
"""
306+
"""Build the human-in-the-loop escalation tool for an escalation resource."""
320307

321308
tool_name: str = f"escalate_{sanitize_tool_name(resource.name)}"
322309
channel: EscalationChannel = resource.channels[0]

0 commit comments

Comments
 (0)