类的使用
io.agentscope.core.skill.SkillBox.CodeExecutionBuilder
-
io.agentscope.core.skill中SkillBox.CodeExecutionBuilder的使用
修饰符和类型方法说明SkillBox.codeExecution()Create a fluent builder for configuring code execution with custom options.SkillBox.CodeExecutionBuilder.codeExecutionInstruction(String instruction) Set a custom code execution instruction for the system prompt.SkillBox.CodeExecutionBuilder.fileFilter(SkillFileFilter filter) Set a custom file filter for skill file uploads.SkillBox.CodeExecutionBuilder.includeExtensions(Set<String> extensions) Set the file extensions to include for uploads.SkillBox.CodeExecutionBuilder.includeFolders(Set<String> folders) Set the folders to include for uploads.Set the upload directory for skill files.SkillBox.CodeExecutionBuilder.withRead()Enable file reading capabilities.SkillBox.CodeExecutionBuilder.withShell()Enable shell command execution with default configuration.SkillBox.CodeExecutionBuilder.withShell(ShellCommandTool shellTool) Enable shell command execution with a custom ShellCommandTool.SkillBox.CodeExecutionBuilder.withWrite()Enable file writing capabilities.Set the working directory for code execution.