Skip to content

Commit

Permalink
gs
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Mar 2, 2024
1 parent 2ffa92f commit 36ffd3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/langsmith/run_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def _container_end(
outputs_ = outputs if isinstance(outputs, dict) else {"output": outputs}
run_tree.end(outputs=outputs_, error=error)
run_tree.patch()
logger.error(f"See error: {run_tree.get_url()}")


def _collect_extra(extra_outer: dict, langsmith_extra: LangSmithExtra) -> dict:
Expand Down
4 changes: 4 additions & 0 deletions python/langsmith/run_trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,7 @@ def patch(self) -> None:
def wait(self) -> None:
"""Wait for all _futures to complete."""
pass

def get_url(self) -> str:
"""Return the URL of the run."""
return self.client.get_run_url(run=self)

0 comments on commit 36ffd3f

Please sign in to comment.