Description
Building on my further exploration of Librefang x Matrix (#6100), I've run across the limitation that I'd like to have multiple agents having their respective Matrix bot handle. Following the documentation this should be modifiable with MATRIX_USER_ID (https://github.com/librefang/librefang/blob/main/sdk/python/librefang/sidecar/adapters/matrix.py#L725).
I'd like to do the following:
[[sidecar_channels]]
args = [
"-m",
"librefang.sidecar.adapters.matrix",
]
channel_type = "matrix"
command = "python3"
name = "Agent A"
env = { MATRIX_HOMESERVER_URL = "https://matrix.my-server.tld", MATRIX_USER_ID = "@agent-a:matrix.my-server.tld" }
[[sidecar_channels]]
args = [
"-m",
"librefang.sidecar.adapters.matrix",
]
channel_type = "matrix"
command = "python3"
name = "Agent B"
env = { MATRIX_HOMESERVER_URL = "https://matrix.my-server.tld", MATRIX_USER_ID = "@agent-b:matrix.my-server.tld" }
It is my current understanding that 1 of the MATRIX_USER_ID env's has precedence, and is reused for all sidecar channels. So it'll come out as the following mapping:
Agent A → @agent-a:matrix.my-server.tld
Agent B → @agent-a:matrix.my-server.tld
It would be really great if more flexibility could be added for this use-case!
Alternatives Considered
I've debugged quite a bit and arrived at this conclusion. I am not aware of an alternative to achieve my goal. If there is, please let me know 🙏
Additional Context
No response
Description
Building on my further exploration of Librefang x Matrix (#6100), I've run across the limitation that I'd like to have multiple agents having their respective Matrix bot handle. Following the documentation this should be modifiable with
MATRIX_USER_ID(https://github.com/librefang/librefang/blob/main/sdk/python/librefang/sidecar/adapters/matrix.py#L725).I'd like to do the following:
It is my current understanding that 1 of the MATRIX_USER_ID env's has precedence, and is reused for all sidecar channels. So it'll come out as the following mapping:
Agent A→@agent-a:matrix.my-server.tldAgent B→@agent-a:matrix.my-server.tldIt would be really great if more flexibility could be added for this use-case!
Alternatives Considered
I've debugged quite a bit and arrived at this conclusion. I am not aware of an alternative to achieve my goal. If there is, please let me know 🙏
Additional Context
No response