h2oGPTe icon

h2oGPTe

h2oGPTe is an AI-powered search assistant for your internal teams to answer questions gleaned from large volumes of documents, websites and workplace content.

Actions198

Overview

This node operation, "Lists Stats of Agent Server Directories" under the "Chat" resource, retrieves statistical information about all agent server directories associated with a specific chat session. It is useful for monitoring and analyzing the state and usage of directories managed by an agent server during a chat session.

Typical use cases include:

  • Monitoring storage or resource usage of agent server directories linked to a chat session.
  • Gathering detailed directory statistics for auditing or debugging purposes.
  • Integrating directory stats into workflows that manage or optimize agent server resources.

For example, a user might want to track how much disk space each directory consumes or how many files are present in each directory related to a particular chat session.

Properties

Name Meaning
Session ID The unique identifier of the chat session for which the agent server directories' stats are requested. This is required.
Additional Options Optional parameters to customize the request:
- Detail Level A numeric value indicating the level of detail in the returned stats. Higher values return more detailed information.

Output

The output JSON contains the statistics of all agent server directories related to the specified chat session. The exact structure depends on the API response but generally includes aggregated data such as counts, sizes, and other metrics per directory.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authentication to the h2oGPT API endpoint.
  • The base URL for API requests is derived from the configured credentials.
  • The node sends a GET request to the endpoint /chats/{session_id}/agent_server_directories/stats with optional query parameters.

Troubleshooting

  • Missing or invalid Session ID: The operation requires a valid session_id. Ensure it is provided and correctly formatted.
  • Authentication errors: Verify that the API key credential is correctly configured and has sufficient permissions.
  • Network or connectivity issues: Confirm that the API base URL is reachable from the n8n environment.
  • Unexpected response or empty data: Check if the chat session exists and has associated agent server directories; otherwise, the stats may be empty.

Links and References

  • Refer to the h2oGPT API documentation for details on the /chats/{session_id}/agent_server_directories/stats endpoint and its response schema.
  • Consult your system administrator or API provider for credential setup and permission management.

Discussion