// Package core provides convenience functions for running ACP agents and clients.
package core

import (
	"os"

	"github.com/keepmind9/acp-sdk-go/agent"
)

// RunAgent starts an ACP agent over stdio.
// It reads JSON-RPC messages from os.Stdin and writes responses to os.Stdout.
func RunAgent(impl agent.Agent) {
	conn := agent.NewAgentSideConnection(impl, os.Stdin, os.Stdout)
	conn.ReceiveLoop()
}
