Skip to content
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

Implemented PaperQAEnvironment.from_task #907

Merged
merged 1 commit into from
Mar 11, 2025
Merged

Conversation

jamesbraza
Copy link
Collaborator

Realized I forgot to do this

@jamesbraza jamesbraza added the enhancement New feature or request label Mar 10, 2025
@jamesbraza jamesbraza self-assigned this Mar 10, 2025
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Mar 10, 2025
@jamesbraza jamesbraza changed the title Implemented from_task on PaperQAEnvironment.from_task Implemented PaperQAEnvironment.from_task Mar 10, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This PR implements the missing from_task class method for PaperQAEnvironment and adds tests to ensure that environments can be created by name.

  • Updated import style in tests for clarity.
  • Added from_task class method to PaperQAEnvironment.
  • Registered the PaperQAEnvironment in ENV_REGISTRY.

Reviewed Changes

File Description
tests/test_agents.py Added tests verifying that "paperqa" is available and instantiates PaperQAEnvironment.
paperqa/agents/env.py Introduced the from_task class method and registered PaperQAEnvironment in ENV_REGISTRY.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 11, 2025
@jamesbraza jamesbraza merged commit 68d8201 into main Mar 11, 2025
5 checks passed
@jamesbraza jamesbraza deleted the from-environment branch March 11, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants