Skip to content

fix: update Travel_planner application backend with the latest jaseci stack#484

Merged
udithishanka merged 1 commit intojaseci-labs:mainfrom
Hirudika4:dev
Feb 13, 2026
Merged

fix: update Travel_planner application backend with the latest jaseci stack#484
udithishanka merged 1 commit intojaseci-labs:mainfrom
Hirudika4:dev

Conversation

@Hirudika4
Copy link
Collaborator

  • Updated the initialization of the Model in both agent_brain.jac and agent_core.jac to use the config parameter for setting verbose instead of a direct argument, aligning with the latest stack.
  • Refactored agent traversal and connection syntax throughout agent_core.jac and main.jac to use the new ?:Type pattern instead of the deprecated '?Type pattern. Update `root with new type Root.
  • Replaced the jac-cloud dependency with jac-scale in requirements.txt.

Copilot AI review requested due to automatic review settings February 13, 2026 07:29
Copy link

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 PR updates the Travel_planner application backend to align with the latest Jaseci stack by migrating to new syntax patterns and updated dependencies. The changes involve transitioning from deprecated Jac syntax patterns to the newer ?:Type filter syntax and updating the dependency from jac-cloud to jac-scale.

Changes:

  • Updated Model initialization to use config parameter for verbose setting
  • Refactored traversal syntax from deprecated `?Type pattern to ?:Type pattern throughout the codebase
  • Replaced jac-cloud with jac-scale in requirements.txt
  • Updated ability triggers from `root entry to Root entry

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
Travel_planner/requirements.txt Replaced jac-cloud dependency with jac-scale
Travel_planner/BE/agent_brain.jac Updated Model initialization to use config dict for verbose parameter
Travel_planner/BE/agent_core.jac Updated Model initialization and refactored traversal syntax from `?Type to ?:Type pattern
Travel_planner/BE/main.jac Updated ability trigger syntax and refactored traversal filters to use ?:Type pattern

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

node Session {
can generate_result with AgentVisitor entry {
if [-->](`?BaseAgent) {
if [-->](?:BaseAgent) {
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

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

Syntax inconsistency: The type filter should be inside the brackets, not outside. Line 13 uses [-->(?:Session)] (correct), but this line uses [-->](?:BaseAgent). This should be [-->(?:BaseAgent)] to match the syntax on line 13 and throughout agent_core.jac (line 202).

Suggested change
if [-->](?:BaseAgent) {
if [-->(?:BaseAgent)] {

Copilot uses AI. Check for mistakes.
@udithishanka udithishanka merged commit 1bd8545 into jaseci-labs:main Feb 13, 2026
6 checks passed
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