Arafat Khan created HDDS-17990:
----------------------------------

             Summary: Support LLM-based JavaScript generation and result 
summarization
                 Key: HDDS-17990
                 URL: https://issues.apache.org/jira/browse/HDDS-17990
             Project: Apache Ozone
          Issue Type: Sub-task
            Reporter: Arafat Khan


Enhance the existing LangChain4j-based Recon AI Assistant to allow the 
configured LLM to generate JavaScript programs using supported Recon tools.

The generated programs will perform metadata retrieval and calculations instead 
of requiring the LLM to process raw API responses.

The changes include:
 * Introduce Code Mode prompts and instructions.

 * Provide TypeScript declarations describing available Recon tools, parameters 
and response structures.

 * Introduce the {{execute_code}} tool definition.

 * Implement JavaScript generation and response parsing.

 * Introduce the {{/api/v1/chatbot/code/generate}} endpoint.

 * Associate generated programs with the execution ledger.

 * Introduce the {{/api/v1/chatbot/code/summarize}} endpoint.

 * Support direct answers for questions that do not require code execution.

 * Support a bounded code correction attempt when execution fails.

 * Handle provider-specific response formats and generation failures.

 * Include incomplete-result information during summarization.

 * Introduce metrics for code generation and summarization.

 * Add tests using mocked LLM responses.

The existing LangChain4j integration and configured LLM providers will be 
reused.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to