Adapter Module#

class isek.adapter.base.Adapter[source]#

Bases: ABC

Abstract base class for all team implementations.

This class defines the interface that all team implementations must follow. Teams can coordinate multiple agents or other teams to work together.

abstractmethod get_adapter_card() AdapterCard[source]#

Get metadata about the team for discovery and identification purposes.

Returns:

A card containing team metadata including name, bio, lore, knowledge, and routine

Return type:

TeamCard

Raises:

NotImplementedError -- If the concrete class doesn't implement this method

print_response(*args, **kwargs)[source]#

Proxy to the shared print_response utility, passing self.run as run_func.

abstractmethod run(prompt: str, **kwargs) str[source]#

Execute the team's main functionality with the given prompt.

Parameters:
  • prompt -- The input prompt or task for the team to process

  • **kwargs -- Additional keyword arguments

Returns:

The team's response or result

Return type:

str

Raises:

NotImplementedError -- If the concrete class doesn't implement this method

class isek.adapter.base.AdapterCard(name: 'str', bio: 'str', lore: 'str', knowledge: 'str', routine: 'str')[source]#

Bases: object

bio: str#
knowledge: str#
lore: str#
name: str#
routine: str#
class isek.adapter.isek_adapter.IsekAdapter(agent: IsekTeam)[source]#

Bases: Adapter

get_adapter_card() AdapterCard[source]#

Get team card for A2A protocol.

run(prompt: str, **kwargs) str[source]#

Simple response for testing.

class isek.adapter.simple_adapter.SimpleAdapter(name: str = 'SimpleAdapter', description: str = 'A simple adapter for testing')[source]#

Bases: Adapter

A simple team implementation for testing and basic use cases.

property description: str#
get_adapter_card() AdapterCard[source]#

Get team card for A2A protocol.

property name: str#
run(prompt: str, **kwargs) str[source]#

Simple response for testing.