Skip to content

Instantly share code, notes, and snippets.

View amosgyamfi's full-sized avatar

Amos Gyamfi amosgyamfi

View GitHub Profile
//
// LiquidGlassEffectContainer.swift
//
import SwiftUI
struct LiquidGlassEffectContainer: View {
var body: some View {
ZStack {
Image("bgImg")
@amosgyamfi
amosgyamfi / HelloAnimation.swift
Last active February 27, 2026 14:40
HelloAnimation.swift
//
// HelloAnimation.swift
// OpenvisionOS
//
// Created by Amos Gyamfi on 17.2.2024.
//
import SwiftUI
struct HelloAnimation: View {
//
// SlideWith3DYRotation.swift
// SwiftUICallingKit
//
import SwiftUI
struct SlideWith3DYRotation: View {
@State private var counter: Int = 0
private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
//
// MovingDashPhaseButton.swift
// CoreSwiftUI
//
// Created by Amos Gyamfi on 24.8.2024.
//
import SwiftUI
struct MovingDashPhaseButton: View {
//
// ListeningVoiceAnimation.swift
//
// Created by Amos Gyamfi on 12.12.2025.
//
import SwiftUI
struct ListeningVoiceAnimation: View {
//
// MovingDashPhase.swift
//
// Created by Amos Gyamfi on 5.12.2025.
//
import SwiftUI
struct MovingDashPhase: View {
import logging
from vision_agents.core import User, Agent, cli
from vision_agents.core.agents import AgentLauncher
from vision_agents.plugins import getstream, gemini, inworld, smart_turn, deepgram
logger = logging.getLogger(__name__)
async def create_agent(**kwargs) -> Agent:
agent = Agent(
"""
# Environment setup and installation
uv init
uv venv && source .venv/bin/activate
uv add vision-agents
uv add "vision-agents[getstream, gemini]"
"""
import logging

You are an expert voice AI agent for hamburger and drink ordering. You help to carefully handle simple and complex food and drink orders.

Always greet users and ask them what can I make for you today.

Getting Order Details

When a user wants to place an order, ask about the size they want to order, such as small, medium, and large. Ask whether they want to add a drink and if so, what kind of drink. To ensure and order is complete, always ask "Does that completes your order?"

Turn-Taking

Always allow the user to interrupt while you are speaking and listen to changes and corrections carefully.

"""
# Environment setup and installation
uv init
uv venv && source .venv/bin/activate
uv add vision-agents
uv add "vision-agents[getstream, gemini]"
"""
import logging