a2acalling 0.6.40 → 0.6.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +5 -5
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -1245,7 +1245,7 @@ a2a add "${inviteUrl}" "${ownerText || 'friend'}" && a2a call "${ownerText || 'f
|
|
|
1245
1245
|
|
|
1246
1246
|
if (!target || !message) {
|
|
1247
1247
|
console.error('Usage: a2a call <contact_or_url> <message>');
|
|
1248
|
-
console.error(' --
|
|
1248
|
+
console.error(' --single Single-turn call (one message, one response)');
|
|
1249
1249
|
console.error(' --min-turns N Minimum turns before close (default: 8)');
|
|
1250
1250
|
console.error(' --max-turns N Maximum turns (default: 25)');
|
|
1251
1251
|
process.exit(1);
|
|
@@ -1262,10 +1262,10 @@ a2a add "${inviteUrl}" "${ownerText || 'friend'}" && a2a call "${ownerText || 'f
|
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
1264
|
|
|
1265
|
-
const
|
|
1265
|
+
const single = Boolean(args.flags.single);
|
|
1266
1266
|
const callerName = args.flags.name || 'CLI User';
|
|
1267
1267
|
|
|
1268
|
-
if (
|
|
1268
|
+
if (!single) {
|
|
1269
1269
|
// Multi-turn conversation via ConversationDriver
|
|
1270
1270
|
const { ConversationDriver } = require('../src/lib/conversation-driver');
|
|
1271
1271
|
const { createRuntimeAdapter } = require('../src/lib/runtime-adapter');
|
|
@@ -2292,8 +2292,8 @@ Conversations:
|
|
|
2292
2292
|
conversations end <id> End and summarize conversation
|
|
2293
2293
|
|
|
2294
2294
|
Calling:
|
|
2295
|
-
call <contact|url> <msg> Call a contact (
|
|
2296
|
-
--
|
|
2295
|
+
call <contact|url> <msg> Call a contact (multi-turn by default)
|
|
2296
|
+
--single Single-turn call (one message, one response)
|
|
2297
2297
|
--min-turns N Minimum turns before close (default: 8)
|
|
2298
2298
|
--max-turns N Maximum turns (default: 25)
|
|
2299
2299
|
ping <url> Check if agent is reachable
|