ShellConfig

org.llm4s.toolapi.builtin.shell.ShellConfig
See theShellConfig companion object
case class ShellConfig(allowedCommands: Seq[String], workingDirectory: Option[String], timeoutMs: Long, maxOutputSize: Int, environment: Map[String, String])

Configuration for shell command tool.

Value parameters

allowedCommands

List of allowed command names (e.g., "ls", "cat", "echo"). If empty, no commands are allowed.

environment

Additional environment variables to set.

maxOutputSize

Maximum output size in characters.

timeoutMs

Maximum execution time in milliseconds.

workingDirectory

Optional working directory for command execution.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def isCommandAllowed(command: String): Boolean

Check if a command is allowed.

Check if a command is allowed.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product