Scope — kontekst EA

Czym jest Scope?

Scope to mechanizm przekazywania elementów EA bezpośrednio do kontekstu rozmowy z AI. Zamiast opisywać słowami "mam komponent X z właściwościami Y", po prostu przypinasz element — AI automatycznie otrzymuje jego nazwę, typ, stereotyp, tagi i relacje.

Przyciski Scope

PrzyciskDziałanie
📌 PinPrzypina pakiet aktualnie zaznaczony w drzewie EA jako korzeń zakresu. Uwaga: akceptuje wyłącznie pakiety — element lub diagram spowoduje błąd.
+ Add selectedDodaje jeden lub więcej zaznaczonych elementów (wielokrotny wybór) jako kontekst informacyjny do promptu.
WyczyśćUsuwa wszystkie elementy ze scope i kontekstu.
Zwija / rozwija panel scope.

Pin vs. Add selected — dwie różne role

AkcjaCo robiZawęża SQL?
Pin pakietuUstawia pakiet jako korzeń zakresu — AI ogranicza wszystkie zapytania (w tym SQL) do tego pakietu i jego potomków✅ Tak
Add selectedDodaje pełny JSON elementów (typ, stereotype, tagged values, atrybuty) do promptu jako kontekst informacyjny❌ Nie

Wskazówki

  • Scope jest trwały podczas sesji — nie zmienia się przy każdej wiadomości
  • Scope + Metamodel = AI rozumie zarówno konkretne dane jak i wzorzec struktury
  • Za dużo elementów w scope może przekroczyć limit kontekstu modelu — monitoruj rozmiar

Trwałość scope

Scope i kontekst są przechowywane tylko w pamięci — nie są zapisywane na dysk. Znikają po zamknięciu EA. „New conversation” ani „Clear” historii NIE czyszczą scope — czyści go wyłącznie przycisk „Clear” kontekstu lub krzyżyk (×) przy wpisie.

ℹ️ Scope działa niezależnie od biblioteki Dokumentów (RAG). Dokumenty to osobna funkcja dla plików zewnętrznych (BRD, SRS).

Scope — EA Context

What is Scope?

Scope is a mechanism for passing EA elements directly into the AI conversation context. Instead of describing "I have component X with properties Y", you simply pin the element — AI automatically receives its name, type, stereotype, tagged values and relations.

Scope Buttons

ButtonAction
📌 PinPins the package currently selected in the EA tree as the scope root. Note: accepts packages only — an element or diagram will produce an error.
+ Add selectedAdds one or more selected elements (multiselect) as informational context to the prompt.
ClearRemoves all elements from scope and context.
Collapse / expand the scope panel.

Pin vs. Add selected — Two Different Roles

ActionWhat it doesNarrows SQL?
Pin packageSets the package as the scope root — AI restricts all queries (including SQL) to that package and its descendants✅ Yes
Add selectedAdds full JSON of elements (type, stereotype, tagged values, attributes) to the prompt as informational context❌ No

Tips

  • Scope is persistent during the session — it does not change with each message
  • Scope + Metamodel = AI understands both specific data and structural patterns
  • Too many elements in scope may exceed the model context limit — monitor the size

Scope Persistence

Scope and context are stored in memory only — not saved to disk. They disappear when EA is closed. "New conversation" and history "Clear" do NOT clear the scope — only the context "Clear" button or the × on an entry does.

ℹ️ Scope works independently from the Documents (RAG) library. Documents is a separate feature for external files (BRD, SRS).