Skip to content

Add plugin to workflowenvironment #1015

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 1 commit into
base: main
Choose a base branch
from
Open

Conversation

tconley1428
Copy link
Contributor

What was changed

Why?

Came up as a question in #1009

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

@tconley1428 tconley1428 requested a review from a team as a code owner July 31, 2025 17:41
@dandavison
Copy link
Contributor

Is there a way to get some coverage for this by using it in our own tests? E.g. somehow cleaning up this pattern?

async def test_some_test(client: Client):
    new_config = client.config()
    new_config["plugins"] = [
        openai_agents.OpenAIAgentsPlugin(
            model_params=ModelActivityParameters(
                start_to_close_timeout=timedelta(seconds=30)
            ),
            model_provider=CustomModelProvider(),
        )
    ]
    client = Client(**new_config)

@tconley1428
Copy link
Contributor Author

tconley1428 commented Aug 1, 2025

Is there a way to get some coverage for this by using it in our own tests? E.g. somehow cleaning up this pattern?

Potentially. I might have to understand more about pytest fixtures though, and it might be more difficult to see what is actually being validated. The same could theoretically be said for any other client modifications we do.

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