
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@rungalileo/observe
Advanced tools
NodeJS client for Galileo Observe.
In the root directory, run:
npm i
npm link
In the examples directory, run:
npm i
npm link @rungalileo/observe
node openai.js
When updating the code, only modify the *.ts files and then run:
npm run format
npm run lint-fix
(this doesn't currently pass)npm run build
import { GalileoObserveCallback } from "@rungalileo/observe";
const observe_callback = new GalileoObserveCallback("llm_monitor_example", "app_v1")// project and version
await observe_callback.init();
Add the callback {callbacks: [observe_callback]}
in the Langchain invoke step of your application.
import { ApiClient } from "@rungalileo/observe";
const apiClient = new ApiClient();
await apiClient.init("llm_monitor_test_1");// project
You can use this with getLoggedData
to retrieve the raw data.
const rows = await apiClient.getLoggedData(
"2024-03-11T16:15:28.294Z",// ISO start_time string with timezone
"2024-03-12T16:15:28.294Z",// ISO end_time string with timezone
filters,// an array of information like "col_name":"model"
sort_spec,// an array of information like "sort_dir":"asc"
limit// a number of items to return
);
console.log(rows);
You can use getMetrics
to get corresponding metrics.
const metrics = await apiClient.getMetrics(
"2024-03-11T16:15:28.294Z",
"2024-03-12T16:15:28.294Z",
filters
);
console.log(metrics);
FAQs
NodeJS client for Galileo Observe.
The npm package @rungalileo/observe receives a total of 1 weekly downloads. As such, @rungalileo/observe popularity was classified as not popular.
We found that @rungalileo/observe demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.