Skip to content

Adding natural language mode based on openaI compatible API#40

Open
rezpe wants to merge 1 commit intomainfrom
llmmode
Open

Adding natural language mode based on openaI compatible API#40
rezpe wants to merge 1 commit intomainfrom
llmmode

Conversation

@rezpe
Copy link
Collaborator

@rezpe rezpe commented Feb 3, 2026

Add Natural Language Interface to CLI using OpenAI-compatible APIs

Description

This PR adds a new ask command to the Adobe AEP CLI that enables users to interact with the CLI using natural language. The command leverages OpenAI-compatible APIs to translate natural language requests into appropriate CLI commands, making the tool more accessible and user-friendly.

Key Implementation Details:

  • Added optional OpenAI client integration with graceful fallback if not configured
  • New do_ask() method that processes natural language inputs
  • Dynamic command discovery system that automatically extracts all available CLI commands and their descriptions
  • Helper methods _get_available_commands() and _translate_nl_to_command() for command translation
  • Environment variable configuration for API endpoint, API key, and model selection
  • Comprehensive documentation in docs/natural-language-cli.md

Example Usage:
prod> ask show me all schemas
prod> ask list all datasets and save them
prod> ask what audiences do we have?

@pitchmuc pitchmuc self-assigned this Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants