Skip to content

SDK auto-instrumentation ergonomics: Routing AI calls to specific projects #1522

@lforst

Description

@lforst

This is a bit of an open question: How should you be able to route individual LLM calls / agents to various different braintrust projects?

Current ideas:

  • Provide a primitive that takes a callback wherein all traced calls are routed to a specific project or with a specific configuration. e.g.
    • await withBraintrustProject('project-a', async () => { ... })
    • await braintrust.withConfiguration({ project: 'project-b', metadata: { foo: 'bar' } }, async () => { ... })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions