Interface JournalRecord.Builder

  • Method Details

    • agentSpaceId

      JournalRecord.Builder agentSpaceId(String agentSpaceId)

      The unique identifier for the agent space containing this record

      Parameters:
      agentSpaceId - The unique identifier for the agent space containing this record
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionId

      JournalRecord.Builder executionId(String executionId)

      The execution ID associated with this journal record

      Parameters:
      executionId - The execution ID associated with this journal record
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recordId

      JournalRecord.Builder recordId(String recordId)

      The unique identifier for this journal record

      Parameters:
      recordId - The unique identifier for this journal record
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      JournalRecord.Builder content(Document content)

      The content of this journal record

      Parameters:
      content - The content of this journal record
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      JournalRecord.Builder createdAt(Instant createdAt)

      Timestamp when this journal record was created

      Parameters:
      createdAt - Timestamp when this journal record was created
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recordType

      JournalRecord.Builder recordType(String recordType)

      The type of this journal record

      Parameters:
      recordType - The type of this journal record
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userReference

      JournalRecord.Builder userReference(UserReference userReference)

      Reference to the user associated with this journal record

      Parameters:
      userReference - Reference to the user associated with this journal record
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • userReference

      default JournalRecord.Builder userReference(Consumer<UserReference.Builder> userReference)

      Reference to the user associated with this journal record

      This is a convenience method that creates an instance of the UserReference.Builder avoiding the need to create one manually via UserReference.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to userReference(UserReference).

      Parameters:
      userReference - a consumer that will call methods on UserReference.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: