Skip to content

Pass instructions and requires_tools to /models #66

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

Conversation

yannbu
Copy link
Contributor

@yannbu yannbu commented Feb 26, 2025

@yannbu yannbu self-assigned this Feb 26, 2025
Copy link
Collaborator

@guillaq guillaq left a comment

Choose a reason for hiding this comment

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

Could you also add the function to the _AgentBase protocol for typing ? (sorry it was not there before)

@yannbu
Copy link
Contributor Author

yannbu commented Feb 26, 2025

Thanks for the review. I'll adjust tomorrow

@@ -150,6 +150,9 @@ async def fetch_completions(self) -> list[Completion]:


class _AgentBase(Protocol, Generic[AgentOutput]):
# TODO: fix circular dep
from workflowai.core.client._models import ModelInfo
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@guillaq I can rollback the _AgentBase too.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah that sucks, it breaks the layering I guess since the domain is not meant to import the client.

Yeah let's rollback. Sorry I didn't think about it !

@yannbu
Copy link
Contributor Author

yannbu commented Feb 27, 2025

Could you also add the function to the _AgentBase protocol for typing ? (sorry it was not there before)

@guillaq done in fdbe09a

Did not have the time to fix the circular deps, let me know if you want me to rollback the change.

@@ -150,6 +150,9 @@ async def fetch_completions(self) -> list[Completion]:


class _AgentBase(Protocol, Generic[AgentOutput]):
# TODO: fix circular dep
from workflowai.core.client._models import ModelInfo
Copy link
Collaborator

Choose a reason for hiding this comment

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

ah that sucks, it breaks the layering I guess since the domain is not meant to import the client.

Yeah let's rollback. Sorry I didn't think about it !

@guillaq
Copy link
Collaborator

guillaq commented Feb 27, 2025

Ah never mind. Let's merge now and we will fix later.

@guillaq guillaq merged commit 93f3a47 into main Feb 27, 2025
5 checks passed
@guillaq guillaq deleted the yann/wor-3802-have-list_models-pass-the-instructions-and-requires_tools-to branch February 27, 2025 14:08
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.

2 participants