VPath

org.llm4s.agent.harness.VPath$package.VPath
@Experimental
object VPath

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
VPath.type

Members list

Value members

Concrete methods

def apply(s: String): Result[VPath]

s as a path, or a ValidationError saying why it is not one.

s as a path, or a ValidationError saying why it is not one.

Attributes

Concrete fields

val MaxBytes: Int

The most UTF-8 bytes a path may have.

The most UTF-8 bytes a path may have.

Attributes

val MaxSegmentBytes: Int

The most UTF-8 bytes one segment may have.

The most UTF-8 bytes one segment may have.

Attributes

val root: VPath

/.

/.

Attributes

Givens

Givens

given given_Ordering_VPath: Ordering[VPath]
given given_ReadWriter_VPath: ReadWriter[VPath]

Extensions

Extensions

extension (path: VPath)
def /(name: String): Result[VPath]

The child name of this path; name must be one valid segment.

The child name of this path; name must be one valid segment.

Attributes

def isWithin(ancestor: VPath): Boolean

Whether this path is ancestor or beneath it, segment by segment: /a/bc is not within /a/b.

Whether this path is ancestor or beneath it, segment by segment: /a/bc is not within /a/b.

Attributes

def name: String

The last segment; "" for the root.

The last segment; "" for the root.

Attributes

def parent: Option[VPath]

The parent; None for the root.

The parent; None for the root.

Attributes

def rebase(from: VPath, to: VPath): Option[VPath]

This path moved from beneath from to beneath to; None when it is not within from, or too long there.

This path moved from beneath from to beneath to; None when it is not within from, or too long there.

Attributes

def relativeTo(ancestor: VPath): Option[String]

This path relative to ancestor, with no leading /: "" for the ancestor itself.

This path relative to ancestor, with no leading /: "" for the ancestor itself.

Attributes

def segments: Vector[String]

The segments, outermost first; empty for the root.

The segments, outermost first; empty for the root.

Attributes

def value: String

The path as a string.

The path as a string.

Attributes