@lvx74/openrrouter-ai-agent 1.0.2 ā 1.0.3
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/package.json +1 -1
- package/src/cli.js +3 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lvx74/openrrouter-ai-agent",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.3",
|
4
4
|
"description": "A powerful AI agent toolkit compatible with @openai/agents for building conversational AI with tool calling support using OpenRouter",
|
5
5
|
"type": "module",
|
6
6
|
"main": "src/index.js",
|
package/src/cli.js
CHANGED
@@ -13,7 +13,8 @@ export function createChatInterface(agent, options = {}) {
|
|
13
13
|
prompt = 'š¬ Tu: ',
|
14
14
|
welcomeMessage = 'š¤ Assistant: Ciao! Come posso aiutarti oggi?',
|
15
15
|
exitCommands = ['/exit', '/quit'],
|
16
|
-
showHelp = true
|
16
|
+
showHelp = true,
|
17
|
+
assistantName = 'Assistant',
|
17
18
|
} = options
|
18
19
|
|
19
20
|
const rl = readline.createInterface({
|
@@ -95,7 +96,7 @@ export function createChatInterface(agent, options = {}) {
|
|
95
96
|
|
96
97
|
try {
|
97
98
|
const result = await agent.run(input)
|
98
|
-
console.log(`\nš¤
|
99
|
+
console.log(`\nš¤ ${assistantName}: ${result.content}`)
|
99
100
|
} catch (error) {
|
100
101
|
console.error('\nā Errore:', error.message)
|
101
102
|
}
|