Skip to content

Get Role Node

AI/Generative/Response/Message

Get Role

Extracts the author role string from a response message

ai_generative_llm_response_message_get_rolellm
Inputs1
Outputs1
Security exposure0/10
Packagellm

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

SecurityAttack surface and exposure impact.
0/10High
PrivacyPotential sensitivity of processed data.
0/10High
PerformanceRuntime or resource pressure.
1/10High
GovernancePolicy, audit, or compliance impact.
1/10High
ReliabilityOperational stability considerations.
0/10High
CostExternal or compute cost impact.
0/10High

Input Pins

1

Message

Struct
message

Message to extract the role from

ResponseMessageResponseMessage7 fields
rolestringrequired
contentstring | null
refusalstring | null
annotationsarray | null
itemsAnnotationarray item
typestringrequired
url_citationanyOf (2)
variant 1UrlCitationvariant
variant 2nullvariant
audioanyOf (2)
variant 1Audiovariant
datastringrequired
expires_atinteger | null
format uint64min 0
idstringrequired
transcriptstring | null
variant 2nullvariant
reasoningstring | null
tool_callsArray<FunctionCall>required
itemsFunctionCallarray item
indexinteger | null
format int32
idstringrequired
typestring | null
functionResponseFunctionrequired
namestringrequired
argumentsstringrequired
Schema enforced

Output Pins

1

Role

String
role

Role string from the message

systemuserassistant

Node Info

Internal name
ai_generative_llm_response_message_get_role
Category
AI/Generative/Response/Message