Quickstart
Learn how to setup Elkar
Follow the steps below to get started with Elkar Platform:
Step 1: Sign Up & Get Your API Key
- Create an account on the Elkar platform.
- Create a new agent: Navigate to Agents > Add a new agent.
- Generate an API Key
Copy the API key now — it won’t be shown again.
Step 2: Install Elkar SDK
Step 3: Create your Task Handler
The task handler manages a task’s status and artifacts, abstracting away the complexity of interacting with the Task Store. It supports three operations: set_status
, add_messages_to_history
, and upsert_artifact
.
The task handler currently has a strict signature: async def my_handler(task: TaskModifierBase, request_context: RequestContext) -> None.
While this signature is enforced for now, it may become more flexible in the future.
Step 4: Create your Agent Card
Your Agent Card is defined following the requirements from A2A Protocol.
Step 5: Create your A2A Server
Instantiate your A2A Server with the Managed Service as Task Store.
To run this example (e.g., if saved as main.py and you expose server.app as app): uvicorn main:app —host 0.0.0.0 —port 5001