Skip to content

Commit

Permalink
Wfh/project name (#449)
Browse files Browse the repository at this point in the history
Add support for:
```
@Traceable(project_name="foo")
def foo():
    pass
```
and

```
langsmith.run_helpers.get_current_run_tree()
```

Add support for
```
run_tree.add_metadata()
run_tree.add_events()
run_tree.add_tags()
```
  • Loading branch information
hinthornw authored Feb 16, 2024
1 parent 01211bc commit 1b40136
Show file tree
Hide file tree
Showing 12 changed files with 745 additions and 246 deletions.
8 changes: 4 additions & 4 deletions js/src/tests/batch_client.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test.concurrent(
async () => {
const langchainClient = new Client({
autoBatchTracing: true,
callerOptions: { maxRetries: 0 },
callerOptions: { maxRetries: 2 },
timeout_ms: 30_000,
});
const projectName = "__test_persist_update_run_batch_1";
Expand Down Expand Up @@ -96,7 +96,7 @@ test.concurrent(
async () => {
const langchainClient = new Client({
autoBatchTracing: true,
callerOptions: { maxRetries: 0 },
callerOptions: { maxRetries: 2 },
pendingAutoBatchedRunLimit: 2,
timeout_ms: 30_000,
});
Expand Down Expand Up @@ -142,7 +142,7 @@ test.concurrent(
async () => {
const langchainClient = new Client({
autoBatchTracing: true,
callerOptions: { maxRetries: 0 },
callerOptions: { maxRetries: 2 },
timeout_ms: 30_000,
});
const projectName = "__test_persist_update_run_batch_with_delay";
Expand Down Expand Up @@ -183,7 +183,7 @@ test.concurrent(
async () => {
const langchainClient = new Client({
autoBatchTracing: true,
callerOptions: { maxRetries: 0 },
callerOptions: { maxRetries: 2 },
timeout_ms: 30_000,
});
const projectName = "__test_persist_update_run_tree";
Expand Down
1 change: 0 additions & 1 deletion python/langsmith/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ def logs(self) -> None:

def status(self) -> None:
"""Provide information about the status LangSmith server."""

command = [
*self.docker_compose_command,
"-f",
Expand Down
Loading

0 comments on commit 1b40136

Please sign in to comment.