INNER CODE UNIT · TypeScript
getSessionCost
HoangNguyen0403/agent-skills-standard · mcp/src/tools/index.ts:612
export async function getSessionCost(
args: {
workflow?: string;
slug?: string;
outcome?: string;
model?: string;
promptTokens?: number;
cachedPromptTokens?: number;
completionTokens?: number;
reasoningTokens?: number;
inputCostPer1M?: number;
cachedInputCostPer1M?: number;
outputCostPer1M?: number;
reasoningCostPer1M?: number;
otherCost?: number;
currency?: string;
costSource?: "host" | "agent-estimate";
},