From dbc4028aa3a6c59818fc7d6a88feb194e51776f9 Mon Sep 17 00:00:00 2001 From: Bob Evans Date: Mon, 1 Apr 2024 11:08:49 -0400 Subject: [PATCH] fix: Updated api doc links for Node.js AIM --- .../customize-agent-ai-monitoring.mdx | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/content/docs/ai-monitoring/customize-agent-ai-monitoring.mdx b/src/content/docs/ai-monitoring/customize-agent-ai-monitoring.mdx index 56d66a896fd..37392c62857 100644 --- a/src/content/docs/ai-monitoring/customize-agent-ai-monitoring.mdx +++ b/src/content/docs/ai-monitoring/customize-agent-ai-monitoring.mdx @@ -4,11 +4,11 @@ metaDescription: 'You can apply certain configurations to your APM agents to cha freshnessValidatedDate: never --- -Once you [install AI monitoring](/install/ai-monitoring), you can configure the default behavior of the agent or update your app to collect different kinds of data. +Once you [install AI monitoring](/install/ai-monitoring), you can configure the default behavior of the agent or update your app to collect different kinds of data. ## Configure the agent [#configure-agents] -Update default agent behavior for AI monitoring at these agent configuration docs: +Update default agent behavior for AI monitoring at these agent configuration docs: - Refer to our API docs for [`recordLlmFeedbackEvent`](https://newrelic.github.io/node-newrelic/API.html#recordLlmFeedbackEvent) + Refer to our API docs for: + + * [`setLlmTokenCountCallback`](https://newrelic.github.io/node-newrelic/API.html#setLlmTokenCountCallback) + * [`getTraceMetadata`](https://newrelic.github.io/node-newrelic/API.html#getTraceMetadata) - Refer to our API docs for [`set_llm_token_count_callback`](/docs/apm/agents/python-agent/python-agent-api/setllmtokencountcallback-python-agent-api). + Refer to our API docs for [`set_llm_token_count_callback`](/docs/apm/agents/python-agent/python-agent-api/setllmtokencountcallback-python-agent-api). - Refer to our API docs for [`NewRelic::Agent.set_llm_token_count_callback`](/docs/apm/agents/ruby-agent/api-guides/ruby-ai-monitoring-apis). + Refer to our API docs for [`NewRelic::Agent.set_llm_token_count_callback`](/docs/apm/agents/ruby-agent/api-guides/ruby-ai-monitoring-apis). ## User feedback methods [#enable-feedback] -If end users can leave feedback on an AI response, you can forward this data into the AI monitoring response table. To do this, you'll update your app code to correlate trace IDs from AI event data using callback methods. +If end users can leave feedback on an AI response, you can forward this data into the AI monitoring response table. To do this, you'll update your app code to correlate trace IDs from AI event data using callback methods. -There are two methods you need to implement to forward this kind of information: +There are two methods you need to implement to forward this kind of information: - Refer to the Go API docs for: + Refer to the Go API docs for: * [`GetTraceMetadata`](https://pkg.go.dev/github.com/newrelic/go-agent/v3/newrelic#Application.getTraceMetadata) * [`RecordLLMFeedbackEvent`](https://pkg.go.dev/github.com/newrelic/go-agent/v3/newrelic#Application.RecordLLMFeedbackEvent) - + + Refer to our API docs for [`recordLlmFeedbackEvent`](https://newrelic.github.io/node-newrelic/API.html#recordLlmFeedbackEvent) - Refer to our API docs for: - - * [`setLlmTokenCountCallback`](https://newrelic.github.io/node-newrelic/API.html#setLlmTokenCountCallback) - * [`getTraceMetadata`](https://newrelic.github.io/node-newrelic/API.html#getTraceMetadata) - + Refer to our API docs for: * [`newrelic.agent.current_trace_id()`](/docs/apm/agents/python-agent/python-agent-api/currenttraceid-python-agent) @@ -132,7 +132,7 @@ There are two methods you need to implement to forward this kind of information: id="ruby-feedback-methods" title="Ruby feedback methods" > - + Refer to our API docs for [`NewRelic::Agent.record_llm_feedback_event`](/docs/apm/agents/ruby-agent/api-guides/ruby-ai-monitoring-apis/#user-feedback) - \ No newline at end of file +