RunnableTool

com.alecdorrington.iris.agent.RunnableTool
See theRunnableTool companion object
final case class RunnableTool[F[_]](tool: Tool, run: String => F[String])

A tool the model may ask to have run, with what running it does: given to an AgentService, it is offered to the model and run wherever the model asks for it, the model then told its output and asked to go on. What the tool does, and whether it may, is the host's, as run decides.

Type parameters

F

The effect type.

Value parameters

run

Runs the tool on the arguments the model gave it, as it wrote them, giving its output for the model to read.

tool

The tool, as the model is told of it.

Attributes

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

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product