Skip to content

LLMstudio Core Version 1.1.0 - Agents Wrapper #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 57 commits into
base: main
Choose a base branch
from

Conversation

claramoreirag
Copy link
Contributor

@claramoreirag claramoreirag commented Feb 11, 2025

LLMstudio Core Version 1.1.0 - Agents Wrapper

What was done in this PR:

  • Extended the functionality of LLMstudio to support providers' agentic APIs, such as bedrock agents and OpenAI Assistants.
  • Created the an Abstract AgentManager class that can be extended to support the different providers
  • Implemented the core 3 methods to interact with agents: create_agent, run_agent, retrieve_response
  • libs/core/llmstudio_core/agents/agents_guide.md

How it was tested:

  • /examples/weather_example_bedrock.py
  • /examples/weather_example_openai.py

Additional notes:

  • Any breaking changes? No
  • Any new dependencies added? No
  • Any performance improvements? No

MiNeves00 and others added 30 commits December 18, 2024 10:42
* chore: added unit tests for core provider. small bugfix on calculate_metrics of provider

* added unit tests and docstring for join chunks

* added unit tests and docstrings for calculate_cost on provider

* added unit tests and docstrings for input_to_string on provider

* added unit tests and docstrings for chat and achat

* added unit tests and docstrings for chat and achat

* chore: cleaned provider unit tests

* chore: separated provider tests into different files. fixed some of its tests

* chore: linted code

* chore: deleted some comments

* chore: linted

* chore: Added Azure Provider Unit Tests (#176)

* chore: added unit tests for azure provider

* chore: added more unit tests and docstrings on azure, removed redundant comments

* chore: added unit tests for generate client on Azure Provider

* chore: separated azure unit tests into separate files. fixed some of its tests.

* chore: linted code

* chore: new line

Signed-off-by: Diogo Goncalves <[email protected]>

---------

Signed-off-by: Diogo Goncalves <[email protected]>
Co-authored-by: Diogo Goncalves <[email protected]>
* [feat] prompt management

* [feat] testing

* [feat] only one active prompt
## LLMstudio Version X.X.X

### What was done in this PR:

- ...

### How it was tested:

- ...

### Additional notes:

- Any breaking changes?
- Any new dependencies added?
- Any performance improvements?
Signed-off-by: Diogo Goncalves <[email protected]>
## LLMstudio Version X.X.X

### What was done in this PR:

- Add bedrock agents

### How it was tested:

- ...

### Additional notes:

- Any breaking changes?
- Any new dependencies added?
- Any performance improvements?
claramoreirag and others added 4 commits February 10, 2025 09:53
## LLMstudio Version X.X.X

### What was done in this PR:

- ...

### How it was tested:

- ...

### Additional notes:

- Any breaking changes?
- Any new dependencies added?
- Any performance improvements?

def run_agent(
self,
openai_agent: OpenAIAgent,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of calling the param 'openai_agent' it should be just 'agent', to use the 2 agents interchangeably
also we should discuss between having it like this (with the 2 params) or wrapping it in a RunAgentRequest, which is what I did for bedrock


return openai_run

def retrieve_result(self, openai_run: OpenAIRun) -> OpenAIResult:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of 'openai_run' , just 'run'

Base automatically changed from develop to main February 12, 2025 10:14
@diogoncalves diogoncalves changed the base branch from main to develop March 10, 2025 14:37
@diogoncalves diogoncalves changed the title Feat/agents integration LLMstudio Core Version 1.1.0 - Agents Wrapper Mar 11, 2025
Base automatically changed from develop to main April 21, 2025 13:40
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.

6 participants