import fallom from "@fallom/trace";import { Agent } from "agno";// Initialize Fallomawait fallom.init({ apiKey: "your-api-key" });// Set session contextfallom.trace.setSession("my-agent", sessionId);// Create your Agno agentconst agent = new Agent({ model: "gpt-4o", instructions: "You are a helpful assistant."});// All LLM calls within the agent are tracedconst response = await agent.run("What is the capital of France?");
import fallom, { models } from "@fallom/trace";import { Agent } from "agno";await fallom.init({ apiKey: "your-api-key" });// Get assigned model for this sessionconst modelId = await models.get("agno-agent", sessionId, { fallback: "gpt-4o"});fallom.trace.setSession("agno-agent", sessionId);// Use the assigned model with your agentconst agent = new Agent({ model: modelId, instructions: "You are a helpful assistant."});const response = await agent.run("Explain quantum computing");