Loading...
Searching...
No Matches
BinaryNinja::MCP::UInt Class Reference

A parameter for ToolBuilder::Param, or an item kind for List, that accepts a JSON unsigned integer. More...

Detailed Description

A parameter for ToolBuilder::Param, or an item kind for List, that accepts a JSON unsigned integer.

Public Member Functions

UInt & Maximum (uint64_t maximum)
 Rejects larger values.
UInt & ClampTo (uint64_t maximum)
 Silently reduces larger values to the maximum.
rapidjson::Value Schema (detail::Allocator &allocator) const
rapidjson::Value DefaultJson (uint64_t value, detail::Allocator &allocator) const
std::string MissingMessage () const
ArgumentResult< uint64_t > Convert (ToolCall &call, const rapidjson::Value &value, const ConvertedArguments &converted) const
Public Member Functions inherited from BinaryNinja::MCP::ValueParam< UInt, uint64_t >
OptionalParam< UInt > Optional () const
DefaultParam< UInt > Default (uint64_t value) const
Public Member Functions inherited from BinaryNinja::MCP::Param< UInt, uint64_t >
 Param (std::string name, std::string description)
const std::string & GetName () const
bool IsRequired () const
const std::string * GetRelativeTo () const
 The earlier parameter this one is evaluated relative to, if any.
void AddSchema (rapidjson::Value &properties, detail::Allocator &allocator) const
ArgumentResult< Value > Absent () const

Additional Inherited Members

Public Types inherited from BinaryNinja::MCP::Param< UInt, uint64_t >
using Value
using Parsed
Protected Member Functions inherited from BinaryNinja::MCP::Param< UInt, uint64_t >
const UInt & Self () const
Protected Attributes inherited from BinaryNinja::MCP::Param< UInt, uint64_t >
std::string m_name
std::string m_description

Member Function Documentation

◆ Maximum()

UInt & UInt::Maximum ( uint64_t maximum)

Rejects larger values.

◆ ClampTo()

UInt & UInt::ClampTo ( uint64_t maximum)

Silently reduces larger values to the maximum.

◆ Schema()

rapidjson::Value UInt::Schema ( detail::Allocator & allocator) const

◆ DefaultJson()

rapidjson::Value UInt::DefaultJson ( uint64_t value,
detail::Allocator & allocator ) const

◆ MissingMessage()

std::string UInt::MissingMessage ( ) const

◆ Convert()

ArgumentResult< uint64_t > UInt::Convert ( ToolCall & call,
const rapidjson::Value & value,
const ConvertedArguments & converted ) const