from mka1 import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.llm.conversations.get_item(conversation_id="conv_abc123", item_id="item_abc123")
# Handle response
print(res){
"id": "item_abc123",
"response_id": "resp_abc123",
"type": "message",
"role": "user",
"content": "What is the weather today?"
}Get a single item from a conversation with the given IDs.
from mka1 import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.llm.conversations.get_item(conversation_id="conv_abc123", item_id="item_abc123")
# Handle response
print(res){
"id": "item_abc123",
"response_id": "resp_abc123",
"type": "message",
"role": "user",
"content": "What is the weather today?"
}Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
The ID of the conversation
The ID of the item
OK
Input message item: A message with role and content. Use this for user, assistant, system, or developer turns in structured inputs.
The role of the message sender (user, assistant, system, or developer).
user, assistant, system, developer The message content. Can be a simple text string or an array of multimodal content items (text, images, files, audio).
The unique ID of the message.
The item type identifier. Always 'message' for message items.
The processing status of this message. Optional - indicates if the message is in_progress, completed, or incomplete.
in_progress, completed, incomplete The ID of the response that created this item, if any.
Metadata from the response that created this item, if any.
Show child attributes
Was this page helpful?