V.0.3.6.1 anthropic native integration #33
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
Configuration Updates:
config.json
.New Client Modules:
anthropic_agent_client.rs
to handle requests and responses from Anthropic's API.openai_agent_client.rs
with new functions to manage threads, runs, and tool outputs for OpenAI's Assistant.Main Logic Enhancements:
main.rs
to include the new engine types (anthropic
andopen_ai_assistant
).Client Handling Enhancements:
Utility Functions:
Timeout and Error Management:
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.