Skip to content

Commit fd20202

Browse files
committed
Add AgentDeployment also to the token config GUI
1 parent 6120949 commit fd20202

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

Editor/TokenSourceComponentConfigEditor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@ private void DrawConnectionOptions()
5959
EditorGUILayout.PropertyField(serializedObject.FindProperty("_participantAttributes"), true);
6060
EditorGUILayout.PropertyField(serializedObject.FindProperty("_agentName"));
6161
EditorGUILayout.PropertyField(serializedObject.FindProperty("_agentMetadata"));
62+
EditorGUILayout.PropertyField(serializedObject.FindProperty("_agentDeployment"));
6263
}
6364
}

Runtime/Scripts/TokenSource/TokenSourceComponent.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ private static TokenSourceFetchOptions Coalesce(TokenSourceComponentConfig confi
107107
ParticipantAttributes = participantAttributes,
108108
AgentName = Coalesce(options?.AgentName, config.AgentName),
109109
AgentMetadata = Coalesce(options?.AgentMetadata, config.AgentMetadata),
110+
AgentDeployment = Coalesce(options?.AgentDeployment, config.AgentDeployment),
110111
};
111112
}
112113

Runtime/Scripts/TokenSource/TokenSourceComponentConfig.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public class TokenSourceComponentConfig : ScriptableObject
4242
[SerializeField] private List<StringPair> _participantAttributes;
4343
[SerializeField] private string _agentName;
4444
[SerializeField] private string _agentMetadata;
45+
[SerializeField] private string _agentDeployment;
4546

4647
public TokenSourceType TokenSourceType => _tokenSourceType;
4748

@@ -64,6 +65,7 @@ public class TokenSourceComponentConfig : ScriptableObject
6465
public List<StringPair> ParticipantAttributes => _participantAttributes;
6566
public string AgentName => _agentName;
6667
public string AgentMetadata => _agentMetadata;
68+
public string AgentDeployment => _agentDeployment;
6769

6870
public bool IsValid => _tokenSourceType switch
6971
{

0 commit comments

Comments
 (0)