mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2026-03-27 09:28:43 +07:00
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:
@@ -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.
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 -->
|
||||
|
||||
Reference in New Issue
Block a user