ToolRecord#

class langchain_community.callbacks.streamlit.streamlit_callback_handler.ToolRecord(name: str, input_str: str)[source]#

Tool record as a NamedTuple.

Create new instance of ToolRecord(name, input_str)

Attributes

input_str

Alias for field number 1

name

Alias for field number 0

Methods

__init__()

count(value,ย /)

Return number of occurrences of value.

index(value[,ย start,ย stop])

Return first index of value.

Parameters:
  • name (str) โ€“

  • input_str (str) โ€“

__init__()#
count(value, /)#

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)#

Return first index of value.

Raises ValueError if the value is not present.