@hamp10/agentforge 0.2.10 → 0.2.11
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/OllamaAgent.js +4 -0
package/package.json
CHANGED
package/src/OllamaAgent.js
CHANGED
|
@@ -450,7 +450,11 @@ export class OllamaAgent extends EventEmitter {
|
|
|
450
450
|
|
|
451
451
|
// If the tool returned an image (base64), push it as a vision message
|
|
452
452
|
// so the model can actually see what was captured.
|
|
453
|
+
// Also forward to dashboard so the user sees the screenshot in chat.
|
|
453
454
|
const isImageResult = typeof result === 'string' && result.startsWith('data:image/');
|
|
455
|
+
if (isImageResult) {
|
|
456
|
+
this.emit('agent_image', { agentId, image: result });
|
|
457
|
+
}
|
|
454
458
|
if (isImageResult && isVision) {
|
|
455
459
|
messages.push({
|
|
456
460
|
role: 'tool',
|