BinaryIOLike#

class langsmith.schemas.BinaryIOLike(*args, **kwargs)[source]#

Protocol for binary IO-like objects.

Methods

__init__(*args, **kwargs)

getvalue()

Get value function.

read([size])

Read function.

seek(offset[, whence])

Seek function.

__init__(*args, **kwargs)#
getvalue() bytes[source]#

Get value function.

Return type:

bytes

read(size: int = -1) bytes[source]#

Read function.

Parameters:

size (int)

Return type:

bytes

seek(offset: int, whence: int = 0) int[source]#

Seek function.

Parameters:
  • offset (int)

  • whence (int)

Return type:

int