Provedor de Contexto icon

Provedor de Contexto

Fornece contextos dinâmicos em linguagem natural para agentes de IA

Overview

This node, named 'Provedor de Contexto' (Context Provider), is designed to supply dynamic natural language contexts for AI agents. It allows users to define multiple contexts with unique names and corresponding content. The node can either return all defined contexts as an object or filter and return a specific context by its name. This functionality is useful in scenarios where AI agents need contextual information to perform tasks such as onboarding, customer support, or personalized interactions.

Use Case Examples

  1. A user defines several onboarding contexts and retrieves them all to provide comprehensive background information to an AI agent.
  2. A user searches for a specific context by name to supply targeted information to an AI agent during a conversation.

Properties

Name Meaning
Contextos A collection of context items, each with a unique name and natural language content, to be provided to the AI agent.
Modo de Saída Determines the output mode: either returning all contexts or filtering by a specific context name.
Nome do Contexto para Buscar The exact name of the context to retrieve when output mode is set to filter by name.

Output

JSON

  • contexts - Array of all context objects with their names and content.
  • contextsMap - An object mapping context names to their content for quick lookup.
  • totalContexts - The total number of contexts defined.
  • contextName - The name of the specific context returned when filtering by name.
  • contextContent - The content of the specific context returned when filtering by name.

Troubleshooting

  • If the node is set to filter by context name but the specified name does not exist, it throws an error listing available context names. Ensure the context name is spelled correctly and exists in the input.
  • If the input contexts are not properly formatted as an array of context items, the node may not function correctly. Verify the input structure matches the expected format.

Discussion