langchain_cohere.react_multi_hop.prompt.render_type¶

langchain_cohere.react_multi_hop.prompt.render_type(type_: str, is_optional: bool) str[source]¶

Renders a tool’s type into prompt content. Types should be Python types, but JSON schema is allowed and converted.

Parameters
  • type_ (str) –

  • is_optional (bool) –

Return type

str