Submission

org.llm4s.agent.service.Submission
See theSubmission companion object
@Experimental
final case class Submission

A run to queue (design 4.55): input for thread threadId, run by the agent agentId for tenantId, treating a busy thread as policy says, with at most maxAttempts attempts (RunQueueSettings.maxAttempts when built by RunSubmitter). A submissionKey makes the submit idempotent: a second submit with the key of an entry the store still holds returns that entry's ticket, and a different submission under the key is refused (QueueError.SubmissionKeyReused).

apply and the with* setters throw IllegalArgumentException for maxAttempts below 1; Submission.of returns it as a ValidationError.

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 sameAs(other: Submission): Boolean

Whether other is this submission again, as a retry under the same key would send it: everything but maxAttempts, which a retry may have read from changed settings.

Whether other is this submission again, as a retry under the same key would send it: everything but maxAttempts, which a retry may have read from changed settings.

Attributes

def withTenantId(t: Option[TenantId]): Submission

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product