Skip to content

refactor(llm): remove LLMs isolation for actions - #1408

Merged
Pouyanpi merged 3 commits into
developfrom
refactor/remove-llm-isolation
Sep 23, 2025
Merged

refactor(llm): remove LLMs isolation for actions#1408
Pouyanpi merged 3 commits into
developfrom
refactor/remove-llm-isolation

Conversation

@Pouyanpi

Copy link
Copy Markdown
Collaborator

Description

Removes the logic for creating isolated LLM instances for actions that
require an 'llm' parameter in LLMRails. This includes deleting the
_create_isolated_llms_for_actions, _detect_llm_requiring_actions,
_get_action_function, and _create_action_llm_copy methods, as well
as removing their invocation from the class initialization.

Also deletes all related tests, including unit, integration, and e2e
tests for LLM isolation and model_kwargs handling. This simplifies the
codebase and test suite by eliminating support for per-action LLM
isolation.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@trebedea
trebedea self-requested a review September 23, 2025 09:29

@trebedea trebedea left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good!

Base automatically changed from feat/llm-params to develop September 23, 2025 16:15
Removes the logic for creating isolated LLM instances for actions that
require an 'llm' parameter in `LLMRails`. This includes deleting the
`_create_isolated_llms_for_actions`, `_detect_llm_requiring_actions`,
`_get_action_function`, and `_create_action_llm_copy` methods, as well
as removing their invocation from the class initialization.

Also deletes all related tests, including unit, integration, and e2e
tests for LLM isolation and model_kwargs handling. This simplifies the
codebase and test suite by eliminating support for per-action LLM
isolation.
@Pouyanpi
Pouyanpi force-pushed the refactor/remove-llm-isolation branch from e29e866 to b8d3ab8 Compare September 23, 2025 16:16
@Pouyanpi Pouyanpi self-assigned this Sep 23, 2025
@Pouyanpi Pouyanpi added this to the v0.17.0 milestone Sep 23, 2025
@Pouyanpi Pouyanpi changed the title refactor(llm): remove isolated LLMs for actions refactor(llm): remove LLMs isolation for actions Sep 23, 2025
@Pouyanpi
Pouyanpi merged commit ce28483 into develop Sep 23, 2025
8 checks passed
@Pouyanpi
Pouyanpi deleted the refactor/remove-llm-isolation branch September 23, 2025 16:22
Pouyanpi added a commit that referenced this pull request Oct 1, 2025
* refactor(llm): remove isolated LLMs for actions

Removes the logic for creating isolated LLM instances for actions that
require an 'llm' parameter in `LLMRails`. This includes deleting the
`_create_isolated_llms_for_actions`, `_detect_llm_requiring_actions`,
`_get_action_function`, and `_create_action_llm_copy` methods, as well
as removing their invocation from the class initialization.

Also deletes all related tests, including unit, integration, and e2e
tests for LLM isolation and model_kwargs handling. This simplifies the
codebase and test suite by eliminating support for per-action LLM
isolation.

* Revert tests/utils.py to state before #1336
tgasser-nv pushed a commit that referenced this pull request Oct 14, 2025
* refactor(llm): remove isolated LLMs for actions

Removes the logic for creating isolated LLM instances for actions that
require an 'llm' parameter in `LLMRails`. This includes deleting the
`_create_isolated_llms_for_actions`, `_detect_llm_requiring_actions`,
`_get_action_function`, and `_create_action_llm_copy` methods, as well
as removing their invocation from the class initialization.

Also deletes all related tests, including unit, integration, and e2e
tests for LLM isolation and model_kwargs handling. This simplifies the
codebase and test suite by eliminating support for per-action LLM
isolation.

* Revert tests/utils.py to state before #1336
tgasser-nv pushed a commit that referenced this pull request Oct 14, 2025
* refactor(llm): remove isolated LLMs for actions

Removes the logic for creating isolated LLM instances for actions that
require an 'llm' parameter in `LLMRails`. This includes deleting the
`_create_isolated_llms_for_actions`, `_detect_llm_requiring_actions`,
`_get_action_function`, and `_create_action_llm_copy` methods, as well
as removing their invocation from the class initialization.

Also deletes all related tests, including unit, integration, and e2e
tests for LLM isolation and model_kwargs handling. This simplifies the
codebase and test suite by eliminating support for per-action LLM
isolation.

* Revert tests/utils.py to state before #1336
tgasser-nv pushed a commit that referenced this pull request Oct 14, 2025
* refactor(llm): remove isolated LLMs for actions

Removes the logic for creating isolated LLM instances for actions that
require an 'llm' parameter in `LLMRails`. This includes deleting the
`_create_isolated_llms_for_actions`, `_detect_llm_requiring_actions`,
`_get_action_function`, and `_create_action_llm_copy` methods, as well
as removing their invocation from the class initialization.

Also deletes all related tests, including unit, integration, and e2e
tests for LLM isolation and model_kwargs handling. This simplifies the
codebase and test suite by eliminating support for per-action LLM
isolation.

* Revert tests/utils.py to state before #1336
tgasser-nv pushed a commit that referenced this pull request Oct 28, 2025
* refactor(llm): remove isolated LLMs for actions

Removes the logic for creating isolated LLM instances for actions that
require an 'llm' parameter in `LLMRails`. This includes deleting the
`_create_isolated_llms_for_actions`, `_detect_llm_requiring_actions`,
`_get_action_function`, and `_create_action_llm_copy` methods, as well
as removing their invocation from the class initialization.

Also deletes all related tests, including unit, integration, and e2e
tests for LLM isolation and model_kwargs handling. This simplifies the
codebase and test suite by eliminating support for per-action LLM
isolation.

* Revert tests/utils.py to state before #1336
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.

3 participants