langgraph_agent_toolkit.core.models.fake module

class langgraph_agent_toolkit.core.models.fake.FakeToolModel(responses)[source][source]

Bases: FakeListChatModel

Fake model that returns a fixed test response.

Parameters:

responses (list[str])

__init__(responses)[source][source]
Parameters:

responses (list[str])

bind_tools(tools, *, tool_choice=None, **kwargs)[source][source]
Parameters:
  • tools (Sequence[Dict[str, Any] | type | Callable | BaseTool])

  • tool_choice (str | Literal['any'] | None)

  • kwargs (Any)

Return type:

Runnable[PromptValue | str | Sequence[BaseMessage | list[str] | tuple[str, str | list[str | dict[str, Any]]] | str | dict[str, Any]], BaseMessage]

model_config = {'arbitrary_types_allowed': True, 'extra': 'ignore', 'protected_namespaces': ()}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].