langchain_core.utils.formatting.StrictFormatter

class langchain_core.utils.formatting.StrictFormatter[source]

A subclass of formatter that checks for extra keys.

Methods

__init__()

check_unused_args(used_args, args, kwargs)

Check to see if extra parameters are passed.

convert_field(value, conversion)

format(format_string, /, *args, **kwargs)

format_field(value, format_spec)

get_field(field_name, args, kwargs)

get_value(key, args, kwargs)

parse(format_string)

validate_input_variables(format_string, ...)

vformat(format_string, args, kwargs)

Check that no arguments are provided.

__init__()
check_unused_args(used_args: Sequence[Union[int, str]], args: Sequence, kwargs: Mapping[str, Any]) None[source]

Check to see if extra parameters are passed.

convert_field(value, conversion)
format(format_string, /, *args, **kwargs)
format_field(value, format_spec)
get_field(field_name, args, kwargs)
get_value(key, args, kwargs)
parse(format_string)
validate_input_variables(format_string: str, input_variables: List[str]) None[source]
vformat(format_string: str, args: Sequence, kwargs: Mapping[str, Any]) str[source]

Check that no arguments are provided.