TT_MESSAGE_CONTEXTS_COUNT(3)
β¨ TT_MESSAGE_CONTEXTS_COUNT β¨
okay bestie, welcome to the tt_message_contexts_count page from the library call manual π
this one's short and sweet and honestly kind of iconic for it.
πΈ NAME πΈ
tt_message_contexts_count β return the number of contexts in a message
π¦ SYNOPSIS π¦
#include <Tt/tt_c.h>
int tt_message_contexts_count(
Tt_message m);
π DESCRIPTION π
so the tt_message_contexts_count function returns the number of contexts in a message. that's it. that's the whole gig. no cap, it's giving "small function, big purpose" energy β¨
the m argument is the opaque handle for the message involved in this operation. opaque means you don't peek inside it, you just hold it and pass it along, like a really important little envelope π
π RETURN VALUE π
upon successful completion, tt_message_contexts_count returns the total number of contexts in the message. slay π
the application can use tt_int_error(3) to extract one of the following Tt_status values from the returned integer:
TT_OKβ the operation completed successfully. we love a clean win πTT_ERR_NOMPβ thettsession(1)process is not running and the ToolTalk service cannot restart it. uh oh π the session said "not me" and left the chat.TT_ERR_POINTERβ the pointer passed does not point to an object of the correct type for this operation. bestie that pointer is not who it says it is π
π₯ SEE ALSO π₯
Tt/tt_c.h-Tttt_c(5),tt_int_error(3).
and that's the whole page, bestie π«Ά this little cutie came from the tt_message_contexts_count(library call) manual β the library call corner of the docs β and ngl, no extra source/version or date drama was printed down here, so we're keeping it exactly as it came: tt_message_contexts_count(library call), periodt β¨π
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms