Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

njfio
Copy link
Owner

@njfio njfio commented Jun 11, 2024

This commit introduces significant enhancements to the Fluent CLI by adding support for Anthropic and OpenAI Assistant integrations. The changes include updates to the configuration file, new client modules, and modifications to the main processing logic. Below are the key changes:

  1. Configuration Updates:

    • Added new configuration entries for Anthropic and OpenAI Assistant in config.json.
    • Updated existing configurations for better handling of API keys and settings.
  2. New Client Modules:

    • Anthropic Client: Implemented anthropic_agent_client.rs to handle requests and responses from Anthropic's API.
    • OpenAI Assistant Client: Extended openai_agent_client.rs with new functions to manage threads, runs, and tool outputs for OpenAI's Assistant.
  3. Main Logic Enhancements:

    • Modified main.rs to include the new engine types (anthropic and open_ai_assistant).
    • Added handling logic for the new engine types in the main processing match case.
  4. Client Handling Enhancements:

    • Implemented detailed handling functions for parsing and processing responses from both Anthropic and OpenAI Assistant.
    • Enhanced error handling and logging to provide better insights during runtime.
  5. Utility Functions:

    • Added utility functions for creating threads, adding messages, creating runs, and checking run status for OpenAI Assistant.
    • Included functions for extracting and submitting tool outputs.
  6. Timeout and Error Management:

    • Implemented timeout management for long-running processes.
    • Improved error messages and debug logs for easier troubleshooting.

These changes aim to enhance the capabilities of the Fluent CLI by integrating advanced conversational AI models, providing users with more options and better performance.

Files Modified:

  • fluent_cli/config.json
  • fluent_cli/src/anthropic_agent_client.rs (new)
  • fluent_cli/src/client.rs
  • fluent_cli/src/lib.rs
  • fluent_cli/src/main.rs
  • fluent_cli/src/openai_agent_client.rs

Files Added:

  • fluent_cli/src/anthropic_agent_client.rs

These updates make the Fluent CLI more robust and extend its functionality to support newer AI models and services.

njfio added 4 commits May 24, 2024 23:21
- supports multiple outputs with langflow
- supports multiple inputs with langflow
- supports overrides for all langflow tweaks (I think)
I need to regression test this still, it appears fully functional.
…ementation, and OpenAI Assistant Initial Implementation

All working through needs refinement in edge features like adding files.
This commit introduces significant enhancements to the Fluent CLI by adding support for Anthropic and OpenAI Assistant integrations. The changes include updates to the configuration file, new client modules, and modifications to the main processing logic. Below are the key changes:

1. **Configuration Updates:**
   - Added new configuration entries for Anthropic and OpenAI Assistant in `config.json`.
   - Updated existing configurations for better handling of API keys and settings.

2. **New Client Modules:**
   - **Anthropic Client:** Implemented `anthropic_agent_client.rs` to handle requests and responses from Anthropic's API.
   - **OpenAI Assistant Client:** Extended `openai_agent_client.rs` with new functions to manage threads, runs, and tool outputs for OpenAI's Assistant.

3. **Main Logic Enhancements:**
   - Modified `main.rs` to include the new engine types (`anthropic` and `open_ai_assistant`).
   - Added handling logic for the new engine types in the main processing match case.

4. **Client Handling Enhancements:**
   - Implemented detailed handling functions for parsing and processing responses from both Anthropic and OpenAI Assistant.
   - Enhanced error handling and logging to provide better insights during runtime.

5. **Utility Functions:**
   - Added utility functions for creating threads, adding messages, creating runs, and checking run status for OpenAI Assistant.
   - Included functions for extracting and submitting tool outputs.

6. **Timeout and Error Management:**
   - Implemented timeout management for long-running processes.
   - Improved error messages and debug logs for easier troubleshooting.

These changes aim to enhance the capabilities of the Fluent CLI by integrating advanced conversational AI models, providing users with more options and better performance.

**Files Modified:**
- `fluent_cli/config.json`
- `fluent_cli/src/anthropic_agent_client.rs` (new)
- `fluent_cli/src/client.rs`
- `fluent_cli/src/lib.rs`
- `fluent_cli/src/main.rs`
- `fluent_cli/src/openai_agent_client.rs`

**Files Added:**
- `fluent_cli/src/anthropic_agent_client.rs`

These updates make the Fluent CLI more robust and extend its functionality to support newer AI models and services.
@njfio njfio merged commit aaba38d into main Jun 11, 2024
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.

1 participant