Skip to content

Instantly share code, notes, and snippets.

View dikamilo's full-sized avatar
🏠
Working from home

Kamil Łuszczki dikamilo

🏠
Working from home
  • Spyrosoft BSG
  • Wrocław, Poland
View GitHub Profile
/Users/dikamilo/.nvm/versions/node/v20.11.1/bin/npm run agent-phone
> [email protected] agent-phone
> bun run src/agents/phone/app.ts
2025-06-09 16:06:43.546 INFO ⚙️ Initializing...
2025-06-09 16:06:43.547 INFO ⚙️ Loading facts...
2025-06-09 16:06:43.549 INFO ⚙️ Retrieving questions and transcriptions...
2025-06-09 16:06:43.549 INFO 🫡 Retrieving questions from: https://c3ntrala.ag3nts.org/data/<<REDACTED>>/phone_questions.json
2025-06-09 16:06:43.715 INFO 🫡 Retrieving data from: https://c3ntrala.ag3nts.org/data/<<REDACTED>>/phone_sorted.json
import { AgentService } from './agent.service'
const agentKey = process.env.AI_DEVS_PRIVATE_KEY as string
const agentService = new AgentService(agentKey)
await agentService.initialize()
await agentService.process()
import { readdir } from 'fs/promises'
import { promises as fs } from 'node:fs'
import { join } from 'path'
import { HeadquartersService, ReportResponse } from '@core/headquarters'
import { logger } from '@core/logger'
import { OpenAIModel, OpenAIService } from '@core/openai'
import { extractResultTag } from '@core/text'
import { questionSystemPrompt } from './agent.prompt'
import { PhoneTranscription } from '@core/headquarters'
import { AnsweredHeadquartersQuestion } from '../factory-infiltration/types'
export const questionSystemPrompt = (
facts: string[],
transcription: PhoneTranscription,
answered: AnsweredHeadquartersQuestion[]
) => `
Bazując na <facts> oraz <transcriptions> odpowiedz na pytanie użytkownika lub zdecytuj o dodatkowej akcji.
@dikamilo
dikamilo / redux_intro.js
Created July 20, 2020 20:18
Introdution to redux
import Redux from 'redux';
console.clear();
// Action creators
const createPolicy = (name, amount) => {
return {
type: 'CREATE_POLICY',
payload: {