Skip to content

Commit f73042f

Browse files
committed
Update some docs
1 parent 09a9bde commit f73042f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

plugins/communication_protocols/cli/src/utcp_cli/cli_call_template.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import traceback
88

99
class CommandStep(BaseModel):
10-
"""Configuration for a single command step in a CLI execution flow.
10+
"""REQUIRED
11+
Configuration for a single command step in a CLI execution flow.
1112
1213
Attributes:
1314
command: The command string to execute. Can contain UTCP_ARG_argname_UTCP_END

plugins/communication_protocols/cli/src/utcp_cli/cli_communication_protocol.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
- Tool discovery by running a command that outputs a UTCP manual.
1111
- Flexible argument formatting for different CLI conventions.
1212
- Support for environment variables and custom working directories.
13-
- Automatic parsing of JSON output with a fallback to raw text.
1413
- Cross-platform command parsing for Windows and Unix-like systems.
1514
1615
Security Considerations:
@@ -588,8 +587,7 @@ async def call_tool(self, caller, tool_name: str, tool_args: Dict[str, Any], too
588587
Returns:
589588
The result of the command execution. If the command exits with a code
590589
of 0, it returns the content of stdout. If the exit code is non-zero,
591-
it returns the content of stderr. The output is parsed as JSON if
592-
possible; otherwise, it is returned as a raw string.
590+
it returns the content of stderr.
593591
594592
Raises:
595593
ValueError: If `tool_call_template` is not an instance of

0 commit comments

Comments
 (0)