https://flyte.org logo
#ask-the-community
Title
# ask-the-community
e

Ethan Brown

03/14/2024, 3:03 PM
One thing that would be helpful to pass to our agent is some of the contextual Flyte information about the launching project. Looking at the agent protobuf at https://github.com/flyteorg/flyte/blob/master/flyteidl/protos/flyteidl/admin/agent.proto I'm not seeing that info. Is that something that would make sense to add @Kevin Su? (cc @Noah Jackson)
k

Ketan (kumare3)

03/15/2024, 3:01 PM
I do think that should be on the context
n

Noah Jackson

03/15/2024, 5:01 PM
I haven't been able to find it on the context. For instance, in my agent if I have something like
Copy code
FlyteContextManager.current_context().execution_state.user_space_params.execution_id
I get back
<FlyteLiteral project: "local" domain: "local" name: "local">
k

Ketan (kumare3)

03/15/2024, 9:26 PM
no you are right, i mean we can and should add it
n

Noah Jackson

03/15/2024, 10:07 PM
I'll take a stab at adding it, looking at adding something similar in https://github.com/flyteorg/flytekit/pull/2272
k

Kevin Su

03/15/2024, 10:16 PM
@Ethan Brown yes, it makes sense to add that
n

Noah Jackson

03/15/2024, 10:57 PM
I think it is already there in task_template.id. Not sure how I missed it earlier🤦
k

Ketan (kumare3)

03/15/2024, 11:29 PM
haha, but that may not be the executing project and domain
not good to depend on that