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

Some information in connection is lost, after connectionsToEdges() #8

Open
leoadonia opened this issue Oct 25, 2024 · 0 comments
Open

Comments

@leoadonia
Copy link

The dest in the connection might have some extra information other than the extension_group / extension, ex:

"connections": [
  {
    "extension_group": "some_group",
    "extension": "ext_a",
    "cmd": [
      {
        "name": "cmd_1",
        "dest": [
          {
            "extension_group": "some_group",
            "extension": "ext_b",
            "msg_conversion": {
              "type": "per_property",
              "rules": [
                {
                  "path": "extra_data",
                  "conversion_mode": "fixed_value",
                  "value": "tool_call"
                }
              ],
              "keep_original": true
            }
          }
        ]
      }
    ]
  }
]

Now, the graph designer will transform the graph connection to render the edges using connectionsToEdges(), and after then, the edge has no relationship with the graph connection. In edgesToConnections(), the graph connection is assigned according to the graph node but not the origin IConnectionData. If i open the graph designer, and do nothing else, the msg_conversion will be lost after saving graph.

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

No branches or pull requests

1 participant