Skip to content

Conversation

@MQ37
Copy link
Contributor

@MQ37 MQ37 commented May 2, 2025

No description provided.

@MQ37 MQ37 requested a review from Copilot May 2, 2025 07:54
@github-actions github-actions bot added the t-ai Issues owned by the AI team. label May 2, 2025
Copy link
Contributor

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.

Pull Request Overview

This pull request fixes the Actor server’s default tool loading by refining URL input parameter parsing and update logic in the GET and POST routes.

  • Replaces usage of processParamsGetTools with parseInputParamsFromUrl.
  • Adjusts the tool loading conditions in both SSE and POST routes.
  • Removes unused helper imports.
Comments suppressed due to low confidence (1)

src/actor/server.ts:71

  • The condition checks both 'actors' and 'enableAddingActors', but later default tools are loaded if 'actors' is falsy. Verify that this behavior is intentional, particularly when enableAddingActors is true without actors provided.
            if (input.actors || input.enableAddingActors) {

}
try {
log.info(`Received GET message at: ${Routes.ROOT}`);
// TODO: I think we should remove this logic, root should return only help message
Copy link

Copilot AI May 2, 2025

Choose a reason for hiding this comment

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

[nitpick] If the root route is intended to return only the help message, consider removing this TODO comment and any related legacy logic to improve clarity.

Copilot uses AI. Check for mistakes.
@MQ37 MQ37 merged commit f4eca84 into master May 2, 2025
2 checks passed
@MQ37 MQ37 deleted the fix/actor-loading branch May 2, 2025 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-ai Issues owned by the AI team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant