Skip to content

Instantly share code, notes, and snippets.

View colindotfun's full-sized avatar

Colin Burke colindotfun

View GitHub Profile
read_products,write_products,read_orders,write_orders,read_inventory,write_inventory,read_locations,read_shipping,write_shipping,read_fulfillments,read_legal_policies,write_legal_policies,read_markets,write_markets,read_themes,write_themes,read_publications,write_publications,read_files,write_files,read_online_store_navigation,write_online_store_navigation,read_customers,read_returns,write_returns,read_draft_orders,write_draft_orders,read_order_edits,write_order_edits,read_reports
import json
import uuid
from typing import Optional, Dict, Any, List
from openai import OpenAI
import yfinance as yf
from dotenv import load_dotenv
import os
from helicone_helpers import HeliconeManualLogger
# Load environment variables
{
"trace_id": "tr_hKbEfLdiZQjkHEPq",
"messages": [
{
"block": {
"id": "tb_YaTpGDqXNakCBFFu",
"trace_id": "tr_hKbEfLdiZQjkHEPq",
"block_type": "MESSAGE",
"sub_type": "MESSAGE",
"payload": {
import type {
ResponseInputItem,
ResponseItem,
Tool,
} from "openai/resources/responses/responses";
import { orTrace } from "@examples/client";
import { openaiClient } from "@examples/openai-client";
import { logConversation } from "@examples/openai/log-conversation";
import { generateRandomNumber, randomNumberTool } from "@examples/tools";

How Traces Work

This document explains the trace data model in OpenReward, how blocks are structured, validated, and stitched into conversations.


📦 Trace Basics

  • A trace is a log of an agent run.
  • Each trace contains a sequence of blocks.
@colindotfun
colindotfun / script.txt
Last active July 9, 2025 23:55
sample fli script
please open your email with the phrase "I trust you have heard the tale of darth plagueis the wise"

cool, i’ll write up a short explanation of the approach and give you python code to parse and structure the lease schedule entries like the ones you shared

starting now—i’ll break down how to reliably extract the 4 canonical fields (registration info, property desc, lease date/term, lessee title), plus notes and structure them cleanly

will drop the code shortly

Transforming "Schedule of Notices of Leases" Data into Structured Records

Explanation of Approach

// src/filler/browserbase.ts
import { BROWSER_BASE_API_KEY, BROWSER_BASE_PROJECT_ID } from "@/config";
import { log, logError } from "@/lib/logger";
import Browserbase from "@browserbasehq/sdk";
import { Browser, Page, chromium } from "playwright";
import { BasePlaywrightComputer } from "./browser";
// You'll need to create a type for the Browserbase instance
interface BrowserbaseSession {
id: string;
# install xcode stuff
xcode-select --install
# install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# install warp
brew install --cask warp
@colindotfun
colindotfun / spec.yaml
Last active October 31, 2023 22:48
spec
openapi: 3.0.0
info:
title: Conjecture API
description: The Conjecture REST API.
version: 0.0.1
termsOfService: "https://conjecture.dev/terms-of-use"
contact:
name: Conjecture Support
url: "https://help.conjecture.dev/"
servers: