MCPcopy Create free account
hub / github.com/anus-dev/ANUS / fromCountTokenResponse

Function fromCountTokenResponse

packages/core/src/code_assist/converter.ts:110–116  ·  view source on GitHub ↗
(
  res: CaCountTokenResponse,
)

Source from the content-addressed store, hash-verified

108}
109
110export function fromCountTokenResponse(
111 res: CaCountTokenResponse,
112): CountTokensResponse {
113 return {
114 totalTokens: res.totalTokens,
115 };
116}
117
118export function toGenerateContentRequest(
119 req: GenerateContentParameters,

Callers 1

countTokensMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected