Table of Contents

Member inspection (llmcpp)

Member inspection exposes a class's fields, methods, constructors, nested types, and bases. The repository tests query Account with list_members; an external agent sends:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_members",
    "arguments": {
      "type": "Account"
    }
  }
}

The fixture's class has a public balance() method and a private cents field. Access is reported from the generated body's location: the generated deposit method can modify private state, while the external printing function should use the public interface.

The agent can then check a proposed operation with try_compile. Members describe available structure, not the class's complete behavioral contract. A writable field may participate in invariants that the request and tests must make explicit.