package file→ .shtukbase/packages/lenses/kit/examples/architecture.lens.md
kit/examples/architecture.lens.md
44 lines, 2.8 KB.
- ---
- type: Lens
- title: Agent architecture
- icon: "🏗️"
- description: "Who gives tasks to agents, through which channels they reply, where they get data, which accesses are needed and where everything runs"
- template: canvas
- layout:
- columns: "190px 230px 270px 240px 240px 200px"
- stacks:
- - [people]
- - [channels, envs]
- - [agents]
- - [automations]
- - [integrations, access]
- - [parties]
- regions:
- - {id: people, title: People, hint: roles in the product, color: purple, from: /product/roles, card: {sub: false, chips: []}}
- - {id: channels, title: Channels, hint: where an agent replies, color: brown, from: /product/surfaces, where: {kind: channel}, card: {chips: []}}
- - {id: agents, title: Agents, color: blue, from: /product/agents, group: kind, card: {chips: [status]}}
- - {id: automations, title: Automations, hint: regular tasks, color: orange, from: /product/automations, card: {sub: when, chips: []}}
- - {id: integrations, title: Integrations, hint: where data comes from, color: teal, from: /product/surfaces, where: {kind: integration}, card: {chips: []}}
- - {id: access, title: Accesses, hint: what the customer gives, color: gray, from: /deal/access, card: {sub: false, chips: [status], compact: false}}
- - {id: envs, title: Environments, hint: where it runs, color: green, from: /ops/environments, card: {sub: host, chips: [kind, status]}}
- - {id: parties, title: External parties, color: red, from: /business/parties, linked: true, card: {sub: false, chips: [kind]}}
- edges:
- - {field: askedBy, from: agents, to: people, reverse: true, label: gives tasks, color: purple}
- - {field: connections, from: agents, to: channels, label: replies through, color: brown}
- - {field: automations, from: agents, to: automations, label: runs, color: orange}
- - {field: connections, from: agents, to: integrations, label: takes data from, color: teal}
- - {field: access, from: agents, to: access, label: needs access, color: gray, dash: true}
- - {field: notifies, from: automations, to: people, label: notifies, color: pink, dash: true}
- - {field: provider, to: parties, label: provides, color: red, reverse: true}
- - {field: hostowner, from: envs, to: parties, label: hosted by, color: green, dash: true}
- ---
- Built from the base's records: [agents](/product/agents.md), [surfaces](/product/surfaces.md)
- (channels and integrations), [automations](/product/automations.md), [accesses](/deal/access.md),
- [environments](/ops/environments.md) and [parties](/business/parties.md).
- The arrows are the records' link fields: `askedBy`, `connections`, `automations`, `access` on an agent,
- `notifies` on an automation, `provider` on a surface, `hostowner` on an environment.
- To fix the picture, edit the records themselves — the lens will rebuild.
- Hover over a card — only its links remain. Click — the record opens.