Skip to content

Commit

Permalink
add runtime property to plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycarambat committed Nov 25, 2024
1 parent e385037 commit bdc3477
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/utils/agents/imported.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const path = require("path");
const { safeJsonParse } = require("../http");
const { isWithin, normalizePath } = require("../files");
const { CollectorApi } = require("../collectorApi");
const { Telemetry } = require("../../models/telemetry");
const pluginsPath =
process.env.NODE_ENV === "development"
? path.resolve(__dirname, "../../storage/plugins/agent-skills")
Expand Down Expand Up @@ -186,6 +187,7 @@ class ImportedPlugin {
description: this.config.description,
logger: aibitat?.handlerProps?.log || console.log, // Allows plugin to log to the console.
introspect: aibitat?.introspect || console.log, // Allows plugin to display a "thought" the chat window UI.
runtime: "docker",
webScraper: sharedWebScraper,
examples: this.config.examples ?? [],
parameters: {
Expand Down

0 comments on commit bdc3477

Please sign in to comment.