BinaryIOLike#

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

类二进制 IO 对象的协议。

方法

__init__(*args, **kwargs)

getvalue()

获取值函数。

read([size])

读取函数。

seek(offset[, whence])

查找函数。

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

获取值函数。

返回类型:

bytes

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

读取函数。

参数:

size (int)

返回类型:

bytes

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

查找函数。

参数:
  • offset (int)

  • whence (int)

返回类型:

int