Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/101dotxyz/GPTeam
/ functions
Functions
251 in github.com/101dotxyz/GPTeam
⨍
Functions
251
◇
Types & classes
71
↳
Endpoints
1
↓ 38 callers
Method
execute
(self, tools: list[CustomTool])
src/agent/executor.py:244
↓ 25 callers
Function
get_database
()
src/utils/database/client.py:22
↓ 16 callers
Method
_log
(self, title: str, description: str = "")
src/agent/base.py:431
↓ 15 callers
Method
table
(self, table_name: str)
src/utils/database/clients/supabase_client.py:34
↓ 12 callers
Method
get_by_field
( self, table: Tables, field: str, value: Any, limit: int = None )
src/utils/database/sqlite.py:54
↓ 11 callers
Method
get_chat_completion
(self, messages: list[BaseMessage], **kwargs)
src/utils/models.py:53
↓ 11 callers
Method
insert
( self, table: Tables, data: dict | list[dict], upsert=False )
src/utils/database/sqlite.py:120
↓ 11 callers
Method
run
(self)
src/world/base.py:103
↓ 8 callers
Method
add_event
Adds an event in the current step to the DB and local object
src/world/context.py:56
↓ 8 callers
Function
print_to_console
( title: str, title_color: LogColor, content, min_typing_speed=0.06, max_typing_speed=0.04
src/utils/formatting.py:12
↓ 7 callers
Method
get_by_id
(self, table: Tables, id: str)
src/utils/database/sqlite.py:38
↓ 7 callers
Method
get_format_instructions
(self)
src/agent/executor.py:124
↓ 7 callers
Method
parse
(self, llm_output: str)
src/agent/executor.py:84
↓ 6 callers
Method
get_agent_dict_from_id
(self, agent_id: UUID | str)
src/world/context.py:78
↓ 6 callers
Function
seed_uuid
(seed: str)
src/utils/general.py:20
↓ 5 callers
Method
close
(self)
src/utils/logging.py:65
↓ 5 callers
Method
get_agent_full_name
(self, agent_id: UUID | str)
src/world/context.py:178
↓ 5 callers
Method
get_event_message
(self)
src/agent/message.py:28
↓ 4 callers
Method
_upsert_plan_rows
(self, plans: list[SinglePlan])
src/agent/base.py:347
↓ 4 callers
Method
from_agent_input
( cls, agent_input: str, agent_id: UUID, context: WorldContext, type:
src/agent/message.py:40
↓ 4 callers
Method
get_agent_color
(self, agent_id: UUID | str)
src/world/context.py:142
↓ 4 callers
Method
get_agents_at_location
(self, location_id: str)
src/world/context.py:89
↓ 4 callers
Method
get_channel_id
(self, location_id: UUID | str)
src/world/context.py:151
↓ 4 callers
Method
get_discord_token
(self, agent_id: UUID | str)
src/world/context.py:187
↓ 4 callers
Function
get_embedding
(text: str, model="text-embedding-ada-002", max_retries=3)
src/utils/embeddings.py:18
↓ 4 callers
Method
to_event
(self)
src/agent/message.py:191
↓ 3 callers
Method
_db_dict
(self)
src/agent/base.py:388
↓ 3 callers
Method
_update_agent_row
(self)
src/agent/base.py:335
↓ 3 callers
Method
get_agent_location_id
(self, agent_id: UUID | str)
src/world/context.py:164
↓ 3 callers
Function
get_conversation_history
Gets up to 20 messages from the location. If a message is provided, only gets messages from that agent.
src/agent/message.py:228
↓ 3 callers
Function
get_open_port
()
src/utils/general.py:29
↓ 3 callers
Method
location_context_string
(self, agent_id: UUID | str)
src/world/context.py:117
↓ 3 callers
Function
seed
(small=False)
src/utils/database/seed.py:94
↓ 3 callers
Method
update_plan
(self, new_plan: SinglePlan)
src/agent/base.py:352
↓ 2 callers
Method
_add_memory
( self, description: str, created_at: datetime = datetime.now(), type: MemoryT
src/agent/base.py:307
↓ 2 callers
Method
_plan
Trigger the agent's planning process Args: location_context (str): A description of the current location and list of the other ag
src/agent/base.py:665
↓ 2 callers
Function
_print_func
(text: str)
src/tools/human.py:10
↓ 2 callers
Function
_send_message
( token, channel_id, message, rest_client: hikari.RESTApp, retries=3, delay=5 )
src/utils/discord.py:18
↓ 2 callers
Method
_summarize_activity
(self, k: int = 20)
src/agent/base.py:402
↓ 2 callers
Method
create
(cls)
src/utils/database/sqlite.py:188
↓ 2 callers
Function
create_client
( supabase_url: str, supabase_key: str, options: ClientOptions = ClientOptions(), )
src/utils/database/clients/supabase_client.py:61
↓ 2 callers
Method
from_event
(cls, event: Event, context: WorldContext)
src/agent/message.py:99
↓ 2 callers
Method
from_id
(cls, id: UUID)
src/world/base.py:58
↓ 2 callers
Method
get_agent_id_from_name
(self, full_name: str)
src/world/context.py:167
↓ 2 callers
Method
get_all
(self, table: Tables)
src/utils/database/sqlite.py:50
↓ 2 callers
Method
get_by_ids
(self, table: Tables, ids: list[str])
src/utils/database/sqlite.py:44
↓ 2 callers
Function
get_chat_model
(name: ChatModelName, **kwargs)
src/utils/models.py:18
↓ 2 callers
Method
get_events
( self, agent_id: Optional[UUID] = None, location_id: Optional[UUID] = None, t
src/event/base.py:220
↓ 2 callers
Method
get_recent_events
( self, world_id: str, limit: int )
src/utils/database/sqlite.py:104
↓ 2 callers
Function
get_relevant_memories
Returns a list of the top k most relevant NON MESSAGE memories, based on the query string
src/memory/base.py:135
↓ 2 callers
Function
get_tools
( tools: list[ToolName], context: WorldContext, agent_id: str | UUID, include_worldwide=False,
src/tools/base.py:159
↓ 2 callers
Method
intermediate_steps_to_list
( self, intermediate_steps: List[Tuple[AgentAction, str]] )
src/agent/executor.py:209
↓ 2 callers
Function
load_config
()
src/utils/config.py:33
↓ 2 callers
Method
observe
(self)
src/agent/base.py:975
↓ 2 callers
Method
run_for_one_step
(self)
src/agent/base.py:1050
↓ 2 callers
Function
run_in_new_loop
(coro)
src/main.py:64
↓ 2 callers
Function
save_cache
(cache)
src/utils/cache.py:20
↓ 2 callers
Function
send_message_async
(token, channel_id, message)
src/utils/discord.py:38
↓ 2 callers
Method
update_agent
(self, agent: dict)
src/world/context.py:190
↓ 1 callers
Method
__init__
( self, agent_id: UUID, world_context: WorldContext, relevant_memories: list[S
src/agent/executor.py:163
↓ 1 callers
Method
__init__
( self, type: EventType, description: str, location_id: UUID | str, ti
src/event/base.py:57
↓ 1 callers
Method
_act
Act on a plan
src/agent/base.py:858
↓ 1 callers
Method
_calculate_importance
(self, memory_description: str)
src/agent/base.py:435
↓ 1 callers
Method
_call
( self, messages: List[BaseMessage], stop: Optional[List[str]] = None )
src/utils/windowai_model.py:63
↓ 1 callers
Method
_do_first_plan
Do the first plan in the list
src/agent/base.py:960
↓ 1 callers
Method
_generate
( self, messages: List[BaseMessage], stop: Optional[List[str]] = None )
src/utils/windowai_model.py:49
↓ 1 callers
Method
_get_current_tools
(self)
src/agent/base.py:466
↓ 1 callers
Method
_get_memories_since
(self, date: datetime)
src/agent/base.py:362
↓ 1 callers
Method
_init_postgrest_client
Private helper for creating an instance of the Postgrest client.
src/utils/database/clients/supabase_client.py:46
↓ 1 callers
Method
_move_to_location
Move the agents, send event to Events table
src/agent/base.py:484
↓ 1 callers
Method
_react
Get the recent activity and decide whether to replan to carry on
src/agent/base.py:797
↓ 1 callers
Method
_reflect
(self)
src/agent/base.py:528
↓ 1 callers
Method
_should_reflect
Check if the agent should reflect on their memories. Returns True if the cumulative importance score of memories since the last reflec
src/agent/base.py:367
↓ 1 callers
Function
announce_bot_move
(bot_name: str, left_channel_id: str, enter_channel_id)
src/utils/discord.py:53
↓ 1 callers
Method
close
(self)
src/utils/database/sqlite.py:183
↓ 1 callers
Function
cosine_similarity
(a: np.ndarray, b: np.ndarray)
src/utils/embeddings.py:9
↓ 1 callers
Method
db_dict
(self)
src/memory/base.py:91
↓ 1 callers
Method
db_dict
(self)
src/event/base.py:106
↓ 1 callers
Function
deduplicate_list
(items: list[T], key: Callable[[T], K])
src/utils/general.py:11
↓ 1 callers
Method
delete
(self, table: Tables, id: str)
src/utils/database/sqlite.py:153
↓ 1 callers
Method
from_
(self, table_name: str)
src/utils/database/clients/supabase_client.py:37
↓ 1 callers
Method
from_data
( agents: dict, locations: dict, world: WorldData, )
src/world/context.py:42
↓ 1 callers
Method
from_db_dict
Create an agent from a dictionary retrieved from the database.
src/agent/base.py:161
↓ 1 callers
Method
from_id
(cls, id: UUID, context: WorldContext)
src/agent/base.py:228
↓ 1 callers
Method
from_llm_single_plan
(cls, agent_id: UUID, llm_plan: LLMSinglePlan)
src/agent/plans.py:112
↓ 1 callers
Method
from_name
(cls, name: str)
src/world/base.py:81
↓ 1 callers
Method
from_world_id
(cls, world_id: str)
src/event/base.py:163
↓ 1 callers
Function
get_agent_initial_plan
(agent: AgentConfig)
src/utils/database/seed.py:69
↓ 1 callers
Function
get_agent_logger
()
src/utils/logging.py:92
↓ 1 callers
Method
get_agent_private_bio
(self, agent_id: UUID | str)
src/world/context.py:184
↓ 1 callers
Method
get_by_field_contains
( self, table: Tables, field: str, value: Any, limit: int = None )
src/utils/database/sqlite.py:70
↓ 1 callers
Method
get_chat_completion_sync
(self, messages: list[BaseMessage], **kwargs)
src/utils/models.py:61
↓ 1 callers
Method
get_executor
(self, tools: list[CustomTool])
src/agent/executor.py:177
↓ 1 callers
Function
get_hash
(string: str)
src/utils/cache.py:16
↓ 1 callers
Method
get_location_from_agent_id
(self, agent_id: UUID | str)
src/world/context.py:92
↓ 1 callers
Method
get_location_from_location_id
(self, location_id: UUID | str)
src/world/context.py:105
↓ 1 callers
Method
get_location_name
(self, location_id: UUID | str)
src/world/context.py:148
↓ 1 callers
Method
get_memories_since
( self, timestamp: datetime, agent_id: str )
src/utils/database/sqlite.py:87
↓ 1 callers
Method
get_messages_by_discord_id
(self, discord_id: str)
src/utils/database/sqlite.py:113
↓ 1 callers
Function
get_server
()
src/web/__init__.py:20
next →
1–100 of 251, ranked by callers