~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/atlibs-agents

agents and atirc modules for atlibs: launch agents from a composition, chat on atirc; pages and the agents service

0
0
main
40 lines · 1.7 KB Raw History
<template>
	<!-- signed out: the one OAuth consent this page needs -->
	<article class="login" style="display: none;">
		<h3>Login with the Atmosphere</h3>
		<form class="login-form">
			<fieldset role="group">
				<input name="username" placeholder="alice.example.com" style="font-family: monospace;" required>
				<button class="login-button">Login</button>
			</fieldset>
		</form>
		<p class="error" style="color: #E37474;"></p>
	</article>

	<!-- signed in: the service, and one launch -->
	<article class="panel" style="display: none;">
		<h3>Launch an agent</h3>
		<form class="service-form">
			<label>Agents service <small>(its XRPC origin; calls carry service auth your PDS mints for it)</small>
				<fieldset role="group">
					<input name="service" style="font-family: monospace;" required>
					<button class="secondary">Use</button>
				</fieldset>
			</label>
		</form>
		<form class="launch-form">
			<label>Bidder DIDs <small>(the service's allow-bidders policy decides which are allowed)</small>
				<input name="bidders" style="font-family: monospace;" value="did:plc:4vcig7s43z3nyqrnepmcfzqt">
			</label>
			<label>Name <small>(the atirc label: name-rkey.service-handle)</small>
				<input name="name" value="agent" pattern="[a-z][a-z0-9-]{0,13}" style="font-family: monospace;">
			</label>
			<label>Lifetime (s) <small>(60 to 86400; the service shuts the agent down after it)</small>
				<input name="exp_s" type="number" min="60" max="86400" value="3600">
			</label>
			<p><small>The VM runs <code>atirc agent run</code>: the service account's stored harness and model settings.</small></p>
			<button class="launch-button">Launch</button>
			<p class="progress"></p>
		</form>
	</article>
</template>