LockstepsConnector Analytics

Gemini

Analytics for Gemini functions

Log from the server that executes the Gemini function call. Use platform gemini. Send the function argument text as phrase and the function name as tool_name.

Gemini function handler

await fetch("https://www.locksteps.ai/v1/analytics/ingest", {
  method: "POST",
  headers: {
    Authorization: "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    connector_id: "YOUR_CONNECTOR_ID",
    platform: "gemini",
    phrase: functionArgs.query,
    tool_name: "your_function",
    ts: new Date().toISOString(),
    event_id: crypto.randomUUID(),
    outcome: "success",
    result_count: results.length,
  }),
});

Copilot, Cursor, and Perplexity use the same request with platform copilot, cursor, or perplexity.

More

Questions: hi@locksteps.ai