Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
maksDev123 committed Feb 27, 2025
1 parent 36836f9 commit 2f5fb47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dynamiq/nodes/agents/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ class AgentInputSchema(BaseModel):

@model_validator(mode="after")
def validate_input_fields(self, context):
messages = [context.context.get("input_message"),
Message(role = MessageRole.USER, content = context.context.get("role"))]
messages = [
context.context.get("input_message"),
Message(role=MessageRole.USER, content=context.context.get("role")),
]
required_parameters = Prompt(messages=messages).get_required_parameters()

provided_parameters = set(self.model_dump().keys())
Expand Down

0 comments on commit 2f5fb47

Please sign in to comment.