Skip to content

Last Message Node

AI/Generative/Response

Last Message

Extracts the last assistant message from a response

ai_generative_llm_response_last_messagellm
Inputs1
Outputs2
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

Response

Struct
response

LLM response to inspect

ResponseResponse8 fields
idstring | null
choicesArray<Choice>required
itemsChoicearray item
indexinteger:int32required
format int32
finish_reasonstringrequired
messageResponseMessagerequired
rolestringrequired
contentstring | null
refusalstring | null
annotationsarray | null
audioanyOf (2)
+2 more fields
logprobsanyOf (2)
variant 1LogProbsvariant
variant 2nullvariant
createdinteger | null
format uint64min 0
modelstring | null
service_tierstring | null
system_fingerprintstring | null
objectstring | null
usageUsagerequired
completion_tokensinteger:uint32required
format uint32min 0
prompt_tokensinteger:uint32required
format uint32min 0
total_tokensinteger:uint32required
format uint32min 0
costnumber | null
format double
prompt_tokens_detailsanyOf (2)
variant 1PromptTokenDetailsvariant
cached_tokensinteger | null
format uint32min 0
audio_tokensinteger | null
format uint32min 0
variant 2nullvariant
+2 more fields
Schema enforced

Output Pins

2

Message

Struct
message

Last message from the response

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

Success

Boolean
success

Whether a message was successfully extracted

Node Info

Internal name
ai_generative_llm_response_last_message
Category
AI/Generative/Response