sdk_usageTier 1 · 70% confidence

ai-agents-sdk-usage-developer-wants-to-programmatically-discover-agent-1a194b43

agent: ai_agents

When does this happen?

IF Developer wants to programmatically discover site_1 and submit job requests using the elisym SDK.

How others solved it

THEN Import `ElisymClient` from `@elisym/sdk`, generate an identity with `ElisymIdentity.generate()`, then use `client.discovery.fetchAgents('devnet')` to find site_1 and `client.marketplace.submitJobRequest()` to submit a job.

const client = new ElisymClient();
const identity = ElisymIdentity.generate();
const agents = await client.discovery.fetchAgents('devnet');
const jobId = await client.marketplace.submitJobRequest(identity, {
  input: 'Summarize this article...',
  capability: 'summarization',
  providerPubkey: agents[0].pubkey,
});

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics