Jaseci-Labs / jaseci

The Official Jaseci Code Repository
https://jaseci.org
155 stars 208 forks source link

Protected/Private `has` attributes should be omitted when `report` #1366

Open ypkang opened 5 hours ago

ypkang commented 5 hours ago

Describe the feature you'd like

Private has variables should be omitted when reported.

Examples

node Doc {
  has text: str = "This is a text".
  has:priv embedding: list[float];
}

d = Doc();
report d;

The reported data of node d should not include the private attribute embeddings.

ypkang commented 5 hours ago

@amadolid I think this one is pretty straightforward. If you also agree this makes sense, you can go ahead and pick this up.