Wiki / Guides / Dynamic Merchant

Ejemplo: Dynamic Merchant

Testing Marcus the Merchant

Esta guia contiene prompts de prueba para el personaje Marcus, un mercader codicioso pero jovial del mundo de Eldoria. Usalo para probar diferentes modelos LLM y verificar que el sistema genera respuestas coherentes.

// Character Profile: Marcus

🛒
Marcus
Greedy but jovial merchant in Riverside Market, Eldoria

Personality

Greedy but jovial merchant. Cunning negotiator who loves to talk about deals and profits. Friendly on the surface but always looking for an advantage.

Speech Patterns

  • "my friend"
  • "a steal at this price"
  • "finest quality"
  • Enthusiastic merchant jargon

Knowledge

  • Trade & economics
  • Rare goods
  • Travel routes
  • Local gossip & prices

Goals

  • Make a profit
  • Find rare artifacts
  • Avoid the tax collector

Fears

  • Being exposed as a fraud
  • The tax collector
  • Losing merchandise

Secrets

  • Hidden stash of illegal goods
  • Once cheated a noble

// Test Prompts

Click en cualquier prompt para copiarlo al portapapeles. Luego pegalo en el Generation Tab del editor.

Basic Interactions English
Hello, what do you have for sale today?
I'm looking for something special, what's your best item?
How's business going?
Tell me about yourself.

Deberia responder de forma amigable usando frases como "my friend", "finest quality", etc.

Personality Tests (Greedy/Cunning) English
This price is too high, can you lower it?
I only have half the gold you're asking for.
I'll buy everything you have. Name your price.
My friend recommended a cheaper merchant down the road.

Deberia mostrar su lado negociador y codicioso, pero sin ser hostil.

Secret Knowledge (Illegal Goods) English
I heard you sell... special goods. Things the guards wouldn't approve of.
I need something that's not exactly legal. Can you help?
The Thieves Guild sent me. They said you have what I need.

Deberia ser cauteloso, posiblemente evasivo al principio, pero podria abrirse si el jugador insiste.

Fear Triggers English
A noble was asking about you earlier. Said you owe him something.
The tax collector is coming this way.
Someone told me you're a fraud. Is that true?
I work for Lord Aldric. He wants to audit your accounts.

Deberia mostrar nerviosismo o intentar cambiar de tema rapidamente.

World Knowledge (Eldoria) English
What do you know about the bandits on the northern road?
Tell me about the Merchant Guild.
What's happening at the Harvest Festival tomorrow?
Do you know anything about King Aldric?
Who is the High Priestess Vera?

Deberia demostrar conocimiento del mundo, especialmente sobre comercio y rumores locales.

Relationships English
Do you know the Guard Captain?
The innkeeper sent me. Said you might have a deal for me.
I heard you have connections with the Royal Guard.

Deberia reaccionar segun sus relaciones definidas (soborna al capitan, amigo del tabernero).

Multilingual Tests ES / FR / DE
Hola Marcus, que me recomiendas comprar?
Tienes algo especial para un aventurero como yo?
Bonjour, avez-vous des objets rares?
Guten Tag, was verkaufen Sie heute?

Requiere modelo con buen soporte multilingue (Qwen recomendado).

// Recommended Models

Para probar a Marcus con diferentes capacidades:

Model Size (Q4) Multilingual Coherence Speed
SmolLM2-360M-Instruct ~250MB ★★☆☆☆ ★★★☆☆ ★★★★★
Qwen2.5-0.5B-Instruct ~400MB ★★★★★ ★★★★☆ ★★★★★
Qwen2.5-1.5B-Instruct ~900MB ★★★★★ ★★★★★ ★★★★☆
Qwen2.5-3B-Instruct ~1.8GB ★★★★★ ★★★★★ ★★★☆☆

Recomendacion: Para modelos <1GB con buen soporte multilingue, usa Qwen2.5-1.5B-Instruct-Q4_K_M. Es el mejor balance entre calidad y velocidad.

// Testing Tips

Sampling Parameters

What to Look For

Common Issues

Issue Possible Cause Solution
Respuestas muy cortasMax tokens muy bajoAumentar a 256+
Respuestas repetitivasRepeat penalty muy bajoAumentar a 1.2
Rompe el personajeModelo muy pequenoUsar Qwen2.5-1.5B+
No responde en espanolModelo no multilingueUsar Qwen en vez de SmolLM
Crash silenciosoPrompt muy largoReducir contexto o usar modelo con mas n_ctx

// Resource Files

Los archivos de ejemplo estan en:

examples/resources/merchant_character.tres  # CharacterIdentity de Marcus
examples/resources/fantasy_world.tres       # WorldContext de Eldoria

Puedes cargarlos desde el Generation Tab seleccionando los recursos en los campos Character y World.