PromptSection

org.llm4s.agent.graph.middleware.PromptSection
See thePromptSection companion object
@Experimental
final case class PromptSection

Content a middleware adds to the system prompt of a model request, built for the request and never stored. id is unique within one request; cacheable content is placed before the rest, so a provider's prompt cache sees a stable prefix.

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 withCacheable(c: Boolean): PromptSection
def withId(i: String): PromptSection
def withText(t: String): PromptSection

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product