with Langfuse and Specific?
Emit new event when user feedback (score) is submitted on a trace in Langfuse. See the documentation
Emit new event whenever a new contact is created.
Emit new event when a new trace is recorded in Langfuse. See the documentation
Emit new event whenever a new conversation is initiated.
Attach user feedback to an existing trace in Langfuse. See the documentation
Modify an existing contact's details or create a new one if the specified contact does not exist. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
langfuse: {
type: "app",
app: "langfuse",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.langfuse.$auth.region}.langfuse.com/api/public/observations`,
auth: {
username: `${this.langfuse.$auth.public_key}`,
password: `${this.langfuse.$auth.secret_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
specific: {
type: "app",
app: "specific",
}
},
async run({steps, $}) {
const data = {"query": "query { companies { id name } }"}
return await axios($, {
method: "post",
url: `https://public-api.specific.app/graphql`,
headers: {
"Authorization": `${this.specific.$auth.api_key}`,
},
data,
})
},
})