llama-cpp-bindings-sys 0.28.0

Low level bindings to llama.cpp
Documentation
#pragma once

#include <llama.h>

#include <stddef.h>

#ifdef __cplusplus
extern "C" {
#endif

struct llama_rs_parsed_chat;
typedef struct llama_rs_parsed_chat * llama_rs_parsed_chat_handle;

void llama_rs_parsed_chat_free(llama_rs_parsed_chat_handle handle);

const char * llama_rs_parsed_chat_content(llama_rs_parsed_chat_handle handle, size_t * out_length);

const char * llama_rs_parsed_chat_reasoning_content(
    llama_rs_parsed_chat_handle handle,
    size_t * out_length);

size_t llama_rs_parsed_chat_tool_call_count(llama_rs_parsed_chat_handle handle);

const char * llama_rs_parsed_chat_tool_call_id(
    llama_rs_parsed_chat_handle handle,
    size_t index,
    size_t * out_length);

const char * llama_rs_parsed_chat_tool_call_name(
    llama_rs_parsed_chat_handle handle,
    size_t index,
    size_t * out_length);

const char * llama_rs_parsed_chat_tool_call_arguments(
    llama_rs_parsed_chat_handle handle,
    size_t index,
    size_t * out_length);

#ifdef __cplusplus
}
#endif