Skip to content

Get Role Node

AI/Generative/Response/Message

Extracts the author role string from a response message

ai_generative_llm_response_message_get_rolellm
Inputs1
Outputs1
Security exposure10/10
Packagellm

Ratings

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

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

Input Pins

1

Message

Struct
message

Message to extract the role from

ResponseMessageResponseMessage8 fields
rolestringrequired
contentstring | null
content_partsArray<Content>

Ordered structured content returned by Rig when the assistant response contains media. Text-only responses continue to use `content` alone for OpenAI compatibility.

itemsContentarray item
variant 1objectvariant
typeContentTyperequired
enum "text", "image_url", "audio_url", "video_url"...
textstringrequired
variant 2objectvariant
typeContentTyperequired
enum "text", "image_url", "audio_url", "video_url"...
image_urlImageUrlrequired
variant 3objectvariant
typeContentTyperequired
enum "text", "image_url", "audio_url", "video_url"...
audio_urlstringrequired
media_typestring | null
variant 4objectvariant
typeContentTyperequired
enum "text", "image_url", "audio_url", "video_url"...
video_urlstringrequired
media_typestring | null
variant 5objectvariant
typeContentTyperequired
enum "text", "image_url", "audio_url", "video_url"...
document_urlstringrequired
media_typestring | 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