Placement

org.llm4s.agent.graph.middleware.Placement
@Experimental
enum Placement

Where a middleware must run relative to another (AgentMiddleware.placement): a position its correctness depends on, which the stack checks rather than leaving to the documentation.

Attributes

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

Members list

Type members

Enum entries

final case class Outside(reason: String)

This middleware must wrap the other in one agent's stack: every hook of this one runs outside the other's.

This middleware must wrap the other in one agent's stack: every hook of this one runs outside the other's.

Attributes

final case class OutsideAtBoundary(reason: String)

As Outside, and across an agent family too, for a requirement about beforeAgent and afterAgent: the root agent's boundary hooks run outside the active agent's own, so this middleware on a handoff target is refused when the root has the other, whatever the order.

As Outside, and across an agent family too, for a requirement about beforeAgent and afterAgent: the root agent's boundary hooks run outside the active agent's own, so this middleware on a handoff target is refused when the root has the other, whatever the order.

Attributes