docs: add tracing metadata option to AI Agent docs (#4220)

Co-authored-by: Rowena Jones <36301604+RoRoJ@users.noreply.github.com>
This commit is contained in:
mjain
2026-03-11 22:31:14 +05:30
committed by GitHub
parent d4c77a0a01
commit 2a9a51dfb4
7 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
Add custom key-value metadata to tracing events for this agent. This is useful for filtering and debugging runs in tracing tools like [LangSmith](/advanced-ai/langchain/langsmith.md).
Entries with empty keys or values are ignored.

View File

@@ -77,6 +77,10 @@ Here is the user's input (remember to respond with a markdown code snippet of a
--8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-root-nodes/return-intermediate-steps.md"
### Tracing Metadata
--8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-root-nodes/tracing-metadata.md"
## Templates and examples
Refer to the main AI Agent node's [Templates and examples](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent/index.md#templates-and-examples) section.

View File

@@ -45,6 +45,10 @@ Refine the OpenAI Functions Agent node's behavior using these options:
--8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-root-nodes/return-intermediate-steps.md"
### Tracing Metadata
--8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-root-nodes/tracing-metadata.md"
## Templates and examples
Refer to the main AI Agent node's [Templates and examples](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent/index.md#templates-and-examples) section.

View File

@@ -37,6 +37,10 @@ Available LangChain expressions:
* `{current_step}`: Contains information about the current step.
* `{agent_scratchpad}`: Information to remember for the next iteration.
### Tracing Metadata
--8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-root-nodes/tracing-metadata.md"
## Templates and examples
Refer to the main AI Agent node's [Templates and examples](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent/index.md#templates-and-examples) section.

View File

@@ -65,6 +65,10 @@ Add text to append after the tools list at the start of the conversation when th
--8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-root-nodes/return-intermediate-steps.md"
### Tracing Metadata
--8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-root-nodes/tracing-metadata.md"
## Related resources
Refer to LangChain's [ReAct Agents](https://js.langchain.com/docs/concepts/agents/) documentation for more information.

View File

@@ -85,6 +85,10 @@ Enter the maximum number of results to return.
Default is `10`.
### Tracing Metadata
--8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-root-nodes/tracing-metadata.md"
## Templates and examples
Refer to the main AI Agent node's [Templates and examples](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent/index.md#templates-and-examples) section.

View File

@@ -174,6 +174,10 @@ Refine the Tools Agent node's behavior using these options:
--8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-root-nodes/return-intermediate-steps.md"
### Tracing Metadata
--8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-root-nodes/tracing-metadata.md"
<!-- vale off -->
### Automatically Passthrough Binary Images
<!-- vale on -->