org.llm4s.agent.graph.toolloop.LoopAgent
See theLoopAgent companion object
One agent of a ToolLoop family: its model, tools, middleware, system prompt, step limit and handoffs. Its nodes are prefixed with its id.
Value parameters
- maxPromptSectionTokens
-
the most every middleware's prompt sections may add to one request together, estimated at four characters a token: a request over it fails the run (design ยง4.22)
- maxSteps
-
the limit this agent's model node applies to the turn's step count, which every agent of the turn shares: at it the turn ends with TurnOutcome.StepLimitReached instead of a further call, so an agent handed a turn that has already used its limit makes no call
- output
-
the response format this agent's answers must match (design 4.26), or none
- systemPrompt
-
sent first on every model call of this agent, never stored in the history
Attributes
- Companion
- object
- Source
- LoopAgent.scala
- Graph
-
- Supertypes
Members list
In this article
