- class langgraph_agent_toolkit.core.observability.langsmith.LangsmithObservability(prompts_dir=None)[source][source]
Bases:
BaseObservabilityPlatform
Langsmith implementation of observability platform.
Initialize LangsmithObservability.
- Parameters:
prompts_dir (str | None) – Optional directory to store prompts locally. If None, a system temp directory is used.
- __init__(prompts_dir=None)[source][source]
Initialize LangsmithObservability.
- Parameters:
prompts_dir (str | None) – Optional directory to store prompts locally. If None, a system temp directory is used.
- get_callback_handler(**kwargs)[source][source]
Get the callback handler for the observability platform.
- Return type:
None
- record_feedback(run_id, key, score, **kwargs)[source][source]
Record feedback for a run to LangSmith.
- push_prompt(name, prompt_template, metadata=None, force_create_new_version=True)[source][source]
Push a prompt to LangSmith.
- pull_prompt(name, template_format='f-string', **kwargs)[source][source]
Pull a prompt from LangSmith.
- delete_prompt(name)[source][source]
Delete a prompt from LangSmith.
- Parameters:
name (str) – Name of the prompt to delete
- Return type:
None