> ## Documentation Index
> Fetch the complete documentation index at: https://aivision.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Read the relevant procedure and prerequisites before suggesting commands. Cite the section and give an observable check. Treat sample data as illustrative. Report product actions and results only when verified in the user's environment.

# Connect an Agent you build

> Choose the Langfuse SDK or NeMo Relay for your Agent, then use the current Trace ID to verify tool calls, parent relationships, and outputs.

Use this guide if you can change your Agent's application code. Run a recognizable request, read its execution record by **Trace ID**, and check that it matches the steps your app actually ran. Each recorded workflow, tool call, or model call is a **Span**. For ready-made apps such as Codex, follow [plugin onboarding](https://aivision.mintlify.site/en/web-quickstart.md).

## Start with your first trace

Sign in to your team's AI Vision instance and select the space for your application. If you need a platform, [choose a deployment method](https://aivision.mintlify.site/en/deployment/overview.md). Open **Agent Access → Agent Market → Custom Agent integrations** to choose a collection method. Use the same space and project to get credentials and verify the result.

## Choose collection for your project

| Your starting point | Start here | What to change |
| - | - | - |
| First trial, with no instrumentation | [Langfuse minimal example](https://aivision.mintlify.site/en/integrations/langfuse.md#langfuse-connection), using Python or Node.js | Copy the connection settings, run the local example, then verify its Trace. |
| Existing Langfuse SDK or callback | [Keep your Langfuse instrumentation](https://aivision.mintlify.site/en/integrations/langfuse.md#existing-langfuse) | Retain your instrumentation, configure the AI Vision URL and credentials, and verify a real request. |
| Adding Langfuse collection to a framework | [Instrument your application](https://aivision.mintlify.site/en/integrations/langfuse.md#instrument-framework) | Add the appropriate callback, wrapper, or exporter. Environment variables configure the connection. |
| Python LangChain, LangGraph, or Deep Agents with Relay | [NeMo Relay integration](https://aivision.mintlify.site/en/integrations/relay.md) | Add the official integration and AI Vision adapter, then configure OTLP export. |
| Server-side Node.js with Relay | [Relay local-tool example](https://aivision.mintlify.site/en/integrations/relay.md#relay-node-example) | Run the complete example, then instrument requests, tools, or model calls in your application. |
| Go application using Eino | [Go / Eino](#eino) | Obtain project credentials, run the complete example from the page, or add the official callback to existing code. |

If collection is already configured, choose a test request that calls a known tool. Record its name and expected result, then [verify the request](#verify-ingestion). If you are adding instrumentation for the first time, run a minimal example before verifying your own request.

[![Application collection plug-ins and Custom Agent integration cards in Agent Market](https://mintcdn.com/aivision/HGaGiOq1xpqDNh4a/assets/figures/onboarding-market.en.light.png?fit=max\&auto=format\&n=HGaGiOq1xpqDNh4a\&q=85\&s=693aed43f7bc5da9b17bbd0a7013c2d8)](https://aivision.mintlify.site/assets/figures/onboarding-market.en.light.png)

[![Application collection plug-ins and Custom Agent integration cards in Agent Market](https://mintcdn.com/aivision/HGaGiOq1xpqDNh4a/assets/figures/onboarding-market.en.dark.png?fit=max\&auto=format\&n=HGaGiOq1xpqDNh4a\&q=85\&s=93e4dfde5d1c1262aaf0bc812ac43926)](https://aivision.mintlify.site/assets/figures/onboarding-market.en.dark.png)

Custom Agent integrations: choose Langfuse or NeMo Relay · Demo data · Click to enlarge

For example, select **Langfuse → Python → Deep Agents**, choose the project for your application, and follow the example to configure collection. Run the example and verify the new Trace ID.

![Python Langfuse onboarding showing the Deep Agents option and project selector](https://mintcdn.com/aivision/qGp0V6y6p5Gih57B/assets/walkthrough/zh-CN/framework-connect.webp?fit=max\&auto=format\&n=qGp0V6y6p5Gih57B\&q=85\&s=03a39b75ea747e5a981a1f331cd5ba4a)

The highlighted Deep Agents option and the project selector · Chinese UI

Node.js projects can use the Langfuse LangChain, LangGraph, OpenAI, or manual instrumentation examples (Node.js 22+), or the Relay Node.js SDK manual instrumentation example (Node.js 24+). The Relay Node example records request and tool boundaries; it does not automatically provide the coverage of Python framework middleware. Both Node.js paths run on the server.

These are collection methods. An AI Vision project identifies where data belongs. Selecting Relay or Langfuse does not create your business Agent or require you to deploy that provider's observability backend.

If collection is already configured, reuse and verify it first. Multiple complete collectors for the same destination can duplicate records. Business callbacks can coexist with collection callbacks; preserve their configuration as shown in the examples.

For other frameworks, check the SDK versions and examples in the onboarding guide. LangSmith SDK integration is planned.

## Verify a real request

Langfuse and NeMo Relay use the same verification flow. Run an identifiable request and wait for the exporter to finish.

1. Select the same space and project in the onboarding page, then enter this run's ID in **Trace ID for this request**.
2. If you have an independent expected Span count from the application or an execution ledger, enter a positive integer in the optional field. Count instrumented workflow and tool wrappers. Leave the field blank if you do not know the count. Select **Verify this Trace**.
3. In the verification results, check the Trace ID, Spans read, storage count, and read completeness. The example below retrieved three Spans, matching the independent expectation.
4. Select **Open this Trace** and find the test Span by tool name. Check its parent, input, and actual output. Check the corresponding nodes if the request called a model or subagent. In a local-tool example, look for the expected tool and result.

[![Four numbered steps highlight the Trace ID, Verify this Trace, three Spans read with complete status, and Open this Trace](https://mintcdn.com/aivision/qGp0V6y6p5Gih57B/assets/walkthrough/zh-CN/framework-verify-light.webp?fit=max\&auto=format\&n=qGp0V6y6p5Gih57B\&q=85\&s=f929450e0dd898f67de3bd44e9494c91)](https://aivision.mintlify.site/assets/walkthrough/zh-CN/framework-verify-light.webp)

[![Four numbered steps highlight the Trace ID, Verify this Trace, three Spans read with complete status, and Open this Trace](https://mintcdn.com/aivision/qGp0V6y6p5Gih57B/assets/walkthrough/zh-CN/framework-verify-dark.webp?fit=max\&auto=format\&n=qGp0V6y6p5Gih57B\&q=85\&s=beaff8340b35f0753006ba7cf9bedf0b)](https://aivision.mintlify.site/assets/walkthrough/zh-CN/framework-verify-dark.webp)

Enter the Trace ID, verify it, check the count and completeness, then open the same Trace · Demo data · Chinese UI

From a terminal with authorized query credentials, you can use the CLI to read the same Trace ID. Use the actual Agent product, such as `langfuse` for the Langfuse SDK. See [reading a Trace with the CLI](https://aivision.mintlify.site/en/guides/cli.md#follow-one-record-from-list-to-detail).

* **The terminal printed an ID and the platform cannot find it.** Check the exporter logs, endpoint, and project. Follow [SDK troubleshooting](https://aivision.mintlify.site/en/help/no-data.md#sdk-no-data).
* **Read completeness is partial or unknown.** Check the storage count and returned Spans before determining which step is missing.
* **Read completeness is complete and a known tool call is missing.** Check that the tool was instrumented and inherited the request's parent context.

| Result | How to interpret it |
| - | - |
| Unique Spans read and storage count | The first count deduplicates the returned Span IDs. The storage count comes from the backend; it describes stored data, not the number the application should have produced. Your optional expected count is compared separately with the unique count. |
| Read completeness | **Complete** means the response reports a complete read, its unique count matches the storage count, and there are no duplicate Span IDs. **Partial** means the response reports an incomplete read or the counts differ. **Unknown** means the available evidence cannot establish completeness. |
| Parent relationships | Missing parents, cycles, and duplicate Span IDs are listed with the affected IDs. Use them to locate the corresponding records. If the read is partial, obtain the remaining data before concluding that the application lost a parent Span. |
| Usage coverage | The backend's canonical `knownUsageCalls / billableCalls` counts show how many model and embedding calls have a known total Token count; tools and workflow nodes are excluded. With no billable calls, coverage is **not applicable**. Missing or invalid coverage evidence is **unknown**. |
| Token summary | Shows the backend's canonical complete total when known. Otherwise, it shows a known reported subtotal with the full total still unknown, or unknown when no usable usage evidence exists. An explicitly reported `0` remains zero. Nested model calls can report overlapping usage; when an overlap warning appears, do not treat the subtotal as deduplicated consumption. See [Token accounting](https://aivision.mintlify.site/en/guides/token-usage.md). |

**Completion check:** the current Trace is readable, the read status and any count or structural differences are understood, and its contents match the request you ran. A complete read or matching count does not prove that every business model, tool, or subagent call was instrumented. Missing usage also does not imply zero consumption.

For stronger verification, compare the stored Trace with an independent execution ledger: expected calls and parent relationships, input/output, errors, and the provider's original usage. The [Eino repository example](https://github.com/ob-labs/ai-vision-ob/tree/main/ai-vision/agent-plugins/langfuse/examples/eino) includes this read-back workflow. Keep fixture results separate from live model runs. Historical Trace counts, process exit, and exporter completion do not replace this comparison.

## PowerContext with LangChain

For an application already using `powercontext-langchain`, native HTTP memory observations and the optional recall-content span are separate. Use matching PowerContext core and adapter versions so SDK operations retain the metadata required by the default export filter. Verify the result in the [native PowerContext view](https://aivision.mintlify.site/en/guides/memory-observability.md#powercontext-native).

`PowerContextMiddleware(trace_content=True)` opts in to reporting the recall query and returned historical context. The default is `False`; approve exporting this content under your application's privacy policy first. Operational HTTP/server spans can correctly have no body. The separate `auto_capture` option is also disabled by default and controls durable completed-turn capture, not telemetry visibility. The application owns its exporter; do not add a second one merely to obtain the memory view.

For the async combination of LangChain 1.4.4 / core 1.7.6 and Langfuse 5.0.2, correct phase parents and caller-context restoration require application-owned inline callbacks (`callback.run_inline=True`) and a public OpenTelemetry scope boundary around each complete invocation. Some cancellation paths in this combination can omit the generation completion callback. If a cancelled model call is missing, check the producer's callback and lifecycle support: it must report and end the generation before export. The UI cannot reconstruct missing telemetry. Verify normal, concurrent and cancelled requests, and use recorded times rather than adjacent graph nodes to check order.

## Eino

Open the **Langfuse** card in the market and select **Go → Eino**. Go is the language entry; Eino is the framework currently available. The integration uses the official `github.com/cloudwego/eino-ext/callbacks/langfuse/v2` callback to convert Eino workflow, model, and tool events into OTLP spans and send them to AI Vision. A separate Langfuse backend is not required.

[![English Go Eino integration page with Go and Eino selected and a demo project below](https://mintcdn.com/aivision/q2R_nkNhmIVwikZM/assets/figures/go-eino-onboarding.en.light.jpg?fit=max\&auto=format\&n=q2R_nkNhmIVwikZM\&q=85\&s=0419f90a5b9979670f51a5331894ee95)](https://aivision.mintlify.site/assets/figures/go-eino-onboarding.en.light.jpg)

[![Dark English Go Eino integration page with Go and Eino selected and a demo project below](https://mintcdn.com/aivision/q2R_nkNhmIVwikZM/assets/figures/go-eino-onboarding.en.dark.jpg?fit=max\&auto=format\&n=q2R_nkNhmIVwikZM\&q=85\&s=6f1f27c550268b71f0118a7038463031)](https://aivision.mintlify.site/assets/figures/go-eino-onboarding.en.dark.jpg)

Go / Eino: current React integration page · Demo project and credentials · Click to enlarge

These screenshots show the current product page with a demo project and invalid credentials. They do not show a real model call or a Trace verification result.

1. Select the project for this application, or enter a name to create one, then click **Get credentials**. Go uses the same project, credential, and Trace verification flow as the other languages.
2. Copy the page's environment variables: `LANGFUSE_BASE_URL` is the AI Vision base URL, `LANGFUSE_PUBLIC_KEY` is the Agent UUID, and `LANGFUSE_SECRET_KEY` is the SpaceKey. A masked existing key cannot run the example; obtain its complete value.
3. Select **Run a complete example**. In a new directory, follow the page's commands to initialize a Go module and install dependencies, then save the complete example as `main.go`. Set the provider's `OPENAI_BASE_URL`, `OPENAI_API_KEY`, and `OPENAI_MODEL`, choosing a model that supports tool calling. These three values come from your model provider and are separate from the AI Vision credentials. If using `.env`, run the page's loading command first, then run `go run main.go` in the same terminal.
4. Verify this run's Trace ID on the integration page and [inspect the read-back results](#verify-ingestion), then open its details to check parents, input, output, and usage. A successful export alone does not confirm persistence.

The complete example on the page calls a model. Existing Eino applications can instead use the integration snippet to register the callback on their workflow. That snippet requires the application's workflow and input; it is not a standalone program.

To verify without a model account first, use `fixture` mode in the [complete Eino verification example in the repository](https://github.com/ob-labs/ai-vision-ob/tree/main/ai-vision/agent-plugins/langfuse/examples/eino). It runs a real Eino workflow, model component, and tool against controlled local model responses, without a model key.

The repository example uses different variable names from the page: use the value of `LANGFUSE_BASE_URL` for `LANGFUSE_HOST`, and the values of `OPENAI_BASE_URL`, `OPENAI_API_KEY`, and `OPENAI_MODEL` for `MODEL_BASE_URL`, `MODEL_API_KEY`, and `MODEL_NAME`, respectively. Keep `LANGFUSE_PUBLIC_KEY` and `LANGFUSE_SECRET_KEY` unchanged. Run `live` mode with these settings for real model generation and streaming.

The repository example pins and has been verified with Eino `v0.9.22`, Langfuse callback `v2.0.2`, and the OpenAI model component `v0.1.13`. See its README for complete commands, Go runtime requirements, and read-back verification.

The `/v2` suffix identifies the Eino callback module version; it does not imply Langfuse v2 query API support. The older callback without `/v2` uses a different ingestion protocol and cannot use this example by changing only its host.

Known limitation: callback `v2.0.2` omits token counters whose value is `0`. The repository verification example retains the provider's original counters and reports this mismatch during read-back verification. Missing usage does not mean zero consumption.

Continue with the [Trace guide](https://aivision.mintlify.site/en/guides/traces.md), or [No data troubleshooting](https://aivision.mintlify.site/en/help/no-data.md) if the record is absent.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.