Agenttiavatarit palautettu: AgentBar-komponentti viidellä roolilla
Manageri (pöllö), Koodari (kameleontti), Testaaja (rukoilijasirkka), QA (kilpikonna), Data (norsu). Klikattavat, highlight aktiiviselle. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34
network-poc/frontend/public/avatars/README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# Kipinä Agentic Playground - Animaatioiden käyttöönotto
|
||||
|
||||
Koska Kipinä-verkon agenttien avatarit tällä erää ovat staattisia PNG-kuvatiedostoja, käyttöliittymä hyödyntää CSS-pohjaista pomppimisilmiötä (sekä pulppuavaa 💬 puhekuplaa) "puhumisen" merkkinä. Olemme kuitenkin koodanneet taustalle piilotetun tuen aivioiduille videoloopeille myöhempää käyttöä varten!
|
||||
|
||||
Näin saat UI:n tukemaan oikeasti animoituja kasvoja/videoita.
|
||||
|
||||
## 1. Luo Animoidut GIF-tiedostot
|
||||
Valitse mikä tahansa ulkoinen AI-työkalu (kuten HeyGen, Pika v1.0, tai Midjourney+Runway yhdistelmä) ja muunna avatar-kuvat (esim. `kettu_notext.png`) 3-5 sekunnin kestäviksi GIF-loopeiksi. Hahmon leuka tulisi pyöriä tai naama vääntyillä puhuessaan.
|
||||
|
||||
## 2. Nimeä Tiedostot Oikein ja Lisää Ne Kansioon
|
||||
Siirrä uudet GIF-animaatiot samaan kansioon alkuperäisten kuvien kanssa. Muuta niiden nimi siten, että se päättyy tunnisteeseen `_puhuva.gif`.
|
||||
|
||||
Esimerkkejä:
|
||||
- Koodari `kipina_notext.png` → `kipina_notext_puhuva.gif`
|
||||
- Manageri `karhunpentu.png` → `karhunpentu_puhuva.gif`
|
||||
- Asiakas `kettu_notext.png` → `kettu_notext_puhuva.gif`
|
||||
|
||||
## 3. Aktivoi Koodi
|
||||
Käännä Kipinä Playground -ohjaimen JavaScript-koodista piilotettu ominaisuus päälle.
|
||||
|
||||
Etsi tiedostosta `../index.html` (noin riviltä 1084, `updatePromptEditor`-funktiosta):
|
||||
```javascript
|
||||
// Piilotettu ominaisuus: Puhuvien videoiden / gif-animaatioiden kytkentä
|
||||
window.USE_ANIMATED_GIFS = false;
|
||||
```
|
||||
Muuta tuo `false` arvoon `true`:
|
||||
```javascript
|
||||
window.USE_ANIMATED_GIFS = true;
|
||||
```
|
||||
|
||||
**Mitä logiikka tekee?**
|
||||
Aina kun valitset agentin kaaviosta, koodi korvaa aktiivisen kuvakkeen lopussa olevan `.png` -päätteen sanalla `_puhuva.gif` – lennosta! Jos poistut agentin valinnasta tai valitset jonkun toisen, koodi vaihtaa kuvan välittömästi takaisin staattiseen `.png`-versioon ja sulkee ilmentymän suun.
|
||||
|
||||
Näin saat kaikkien asiantuntijoiden face-track looppeja hallittua yhdellä kädenkäänteellä.
|
||||
BIN
network-poc/frontend/public/avatars/aikuinen_susi.png
Normal file
|
After Width: | Height: | Size: 696 KiB |
BIN
network-poc/frontend/public/avatars/bear.png
Normal file
|
After Width: | Height: | Size: 757 KiB |
BIN
network-poc/frontend/public/avatars/beaver.png
Normal file
|
After Width: | Height: | Size: 700 KiB |
BIN
network-poc/frontend/public/avatars/chameleon.png
Normal file
|
After Width: | Height: | Size: 731 KiB |
BIN
network-poc/frontend/public/avatars/elephant.png
Normal file
|
After Width: | Height: | Size: 711 KiB |
BIN
network-poc/frontend/public/avatars/gecko.png
Normal file
|
After Width: | Height: | Size: 695 KiB |
BIN
network-poc/frontend/public/avatars/gecko_notext.png
Normal file
|
After Width: | Height: | Size: 130 KiB |
BIN
network-poc/frontend/public/avatars/karhunpentu.png
Normal file
|
After Width: | Height: | Size: 432 KiB |
BIN
network-poc/frontend/public/avatars/kettu_notext.png
Normal file
|
After Width: | Height: | Size: 650 KiB |
BIN
network-poc/frontend/public/avatars/kipina_notext.png
Normal file
|
After Width: | Height: | Size: 389 KiB |
BIN
network-poc/frontend/public/avatars/laiskiainen.png
Normal file
|
After Width: | Height: | Size: 596 KiB |
BIN
network-poc/frontend/public/avatars/laiskiainen_notext.png
Normal file
|
After Width: | Height: | Size: 496 KiB |
BIN
network-poc/frontend/public/avatars/lion.png
Normal file
|
After Width: | Height: | Size: 872 KiB |
BIN
network-poc/frontend/public/avatars/mantis.png
Normal file
|
After Width: | Height: | Size: 738 KiB |
BIN
network-poc/frontend/public/avatars/old/forge_hero.png
Normal file
|
After Width: | Height: | Size: 109 KiB |
BIN
network-poc/frontend/public/avatars/old/gecko_hero.png
Normal file
|
After Width: | Height: | Size: 130 KiB |
BIN
network-poc/frontend/public/avatars/old/kipina.png
Normal file
|
After Width: | Height: | Size: 3.4 MiB |
BIN
network-poc/frontend/public/avatars/old/serpent_hero.png
Normal file
|
After Width: | Height: | Size: 98 KiB |
BIN
network-poc/frontend/public/avatars/owl.png
Normal file
|
After Width: | Height: | Size: 813 KiB |
BIN
network-poc/frontend/public/avatars/penguin.png
Normal file
|
After Width: | Height: | Size: 658 KiB |
BIN
network-poc/frontend/public/avatars/pesukarhu.png
Normal file
|
After Width: | Height: | Size: 593 KiB |
BIN
network-poc/frontend/public/avatars/pesukarhu_notext.png
Normal file
|
After Width: | Height: | Size: 563 KiB |
BIN
network-poc/frontend/public/avatars/serpent.png
Normal file
|
After Width: | Height: | Size: 696 KiB |
BIN
network-poc/frontend/public/avatars/spider.png
Normal file
|
After Width: | Height: | Size: 718 KiB |
BIN
network-poc/frontend/public/avatars/susi_notext.png
Normal file
|
After Width: | Height: | Size: 513 KiB |
BIN
network-poc/frontend/public/avatars/tortoise.png
Normal file
|
After Width: | Height: | Size: 780 KiB |
BIN
network-poc/frontend/public/avatars/walrus.png
Normal file
|
After Width: | Height: | Size: 826 KiB |