phidata icon indicating copy to clipboard operation
phidata copied to clipboard

What is a run_id and user_id

Open aurthurm opened this issue 9 months ago • 3 comments

I have seen some instances where Assistant is given run_id and user_id.

What are these and what are they used for? I have searched the docs and could not find an explanation

aurthurm avatar May 02 '24 13:05 aurthurm

Hey @aurthurm!

run_id and user_id are utilized for logging each assistant run on phidata.app. We are currently operating with a waitlist, but we will be opening up soon!"

ysolanky avatar May 02 '24 14:05 ysolanky

@aurthurm the run_id and user_id are stored in your database table when you create storage for the assistant, so you can retrieve runs later by run_id or user_id.

I'll make sure to add a full page in the docs walking through them in detail

ashpreetbedi avatar May 03 '24 00:05 ashpreetbedi

So in this case a run is like a conversation thread that can be created with an assistant.

From this we can say that:

  1. multiple users can use the same assistant with each user having their own user_id
  2. A user can initiate a conversation thread identified by a run_id
  3. As such we can retrieve various conversations done by a certain user.

Am i correct @ashpreetbedi

aurthurm avatar May 07 '24 06:05 aurthurm

@aurthurm you got it exactly right!

ysolanky avatar Jul 25 '24 15:07 ysolanky