Skip to content

Commit

Permalink
feat(tools): prevent python tool use for summarization (#247)
Browse files Browse the repository at this point in the history
Signed-off-by: Aleš Kalfas <[email protected]>
  • Loading branch information
aleskalfas authored Dec 12, 2024
1 parent c14a548 commit 0e69d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/python/python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export interface PythonToolOptions extends BaseToolOptions {
export class PythonTool extends Tool<PythonToolOutput, PythonToolOptions> {
name = "Python";
description = [
"Run Python and/or shell code and return the console output. Use for isolated calculations, computations, data or file manipulation.",
"Files provided by the user, or created in a previous run, will be accesible if and only if they are specified in the input. It is necessary to always print() results.",
"Run Python and/or shell code and return the console output. Use for isolated calculations, computations, data or file manipulation but still prefer assistant's capabilities and NEVER use for text summarization.",
"Files provided by the user, or created in a previous run, will be accessible if and only if they are specified in the input. It is necessary to always print() results.",
"The following shell commands are available:",
"Use ffmpeg to convert videos.",
"Use yt-dlp to download videos, and unless specified otherwise use `-S vcodec:h264,res,acodec:m4a` for video and `-x --audio-format mp3` for audio-only.",
Expand Down

0 comments on commit 0e69d11

Please sign in to comment.