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

Adapt command structure to new definition #408

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sdvendramini
Copy link
Member

Related issue
#394

Description

This PR aims to complete the necessary changes to adapt command processing to the newly defined structure received by the agent.

The `getCommandFromQueue` function has been updated to parse commands according
to the new definition. Additionally, the related tests have been fixed.
A function is added to validate commands, ensuring their arguments are also
valid when required, and assigning the corresponding module. A map is created
containing the valid commands, their associated module, and whether argument
validation is needed.
The argument parsing method in the centralized configuration is updated, and the
related tests are fixed.
@sdvendramini sdvendramini force-pushed the enhancement/394-adapt-command-structure-to-new-definition branch from 9af90e2 to a1fc379 Compare December 11, 2024 07:53
The mock server created with Imposter has been updated with the latest changes
related to commands. Some test cases have been added.
@sdvendramini sdvendramini marked this pull request as ready for review December 11, 2024 15:00
def command = [
"document_id": generateUUIDv7(),
"action": action,
"target": ["type": "agent", "id": "agentID"],
Copy link
Member

Choose a reason for hiding this comment

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

What is agentID? Does it need to be manually edited?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's just a trivial value; it doesn't need to be edited since the mock will send all commands to the agent that made the request.

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.

Adapt command structure to new definition
2 participants