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).

traceContext is the submitter's trace position (design 4.58): the entry stores it (QueueEntry.trace) and every attempt runs with it as RunConfig.traceContext (QueueEntry.attemptConfig), so all of an entry's attempts, on whatever worker or machine, sit in the submitter's trace. A retry under the same key may carry another context (a new request's span): it is not part of sameAs, and the entry keeps the first submission's.

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, and traceContext, which a retry's own request names afresh.

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, and traceContext, which a retry's own request names afresh.

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