class langgraph_agent_toolkit.core.observability.factory.ObservabilityFactory[source][source]

Bases: object

Factory for creating observability platform instances.

static create(platform, prompts_dir=None, remote_first=False, **kwargs)[source][source]

Create and return an observability platform instance.

Parameters:
  • platform (ObservabilityBackend | str) – The observability platform to create

  • prompts_dir (str | None) – Optional directory to store prompts locally

  • remote_first (bool) – If True, prioritize remote prompts over local ones

  • **kwargs – Additional arguments to pass to the platform constructor

Returns:

An instance of the requested observability platform

Raises:

ValueError – If the requested platform is not supported

Return type:

BaseObservabilityPlatform