Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
MQ37 committed Mar 10, 2025
1 parent 1bb0c2c commit 788731c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
7 changes: 0 additions & 7 deletions templates/ts-mastraai/.actor/input_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@
],
"default": "gpt-4o-mini",
"prefill": "gpt-4o-mini"
},
"debug": {
"title": "Debug",
"type": "boolean",
"description": "If enabled, the Actor will run in debug mode and produce more output.",
"editor": "checkbox",
"default": false
}
},
"required": ["query", "modelName"]
Expand Down
5 changes: 0 additions & 5 deletions templates/ts-mastraai/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { createSocialMediaAgent } from './agents.js';
interface Input {
query: string;
modelName: string;
debug?: boolean;
}

// The init() call configures the Actor for its environment. It's recommended to start every Actor with an init()
Expand All @@ -30,11 +29,7 @@ const {
// You can remove it.
query,
modelName,
debug,
} = await Actor.getInput() as Input;
if (debug) {
log.setLevel(log.LEVELS.DEBUG);
}
if (!query) {
throw new Error('An agent query is required.');
}
Expand Down

0 comments on commit 788731c

Please sign in to comment.