MCPcopy Create free account

hub / github.com/101dotxyz/GPTeam / functions

Functions251 in github.com/101dotxyz/GPTeam

↓ 38 callersMethodexecute
(self, tools: list[CustomTool])
src/agent/executor.py:244
↓ 25 callersFunctionget_database
()
src/utils/database/client.py:22
↓ 16 callersMethod_log
(self, title: str, description: str = "")
src/agent/base.py:431
↓ 15 callersMethodtable
(self, table_name: str)
src/utils/database/clients/supabase_client.py:34
↓ 12 callersMethodget_by_field
( self, table: Tables, field: str, value: Any, limit: int = None )
src/utils/database/sqlite.py:54
↓ 11 callersMethodget_chat_completion
(self, messages: list[BaseMessage], **kwargs)
src/utils/models.py:53
↓ 11 callersMethodinsert
( self, table: Tables, data: dict | list[dict], upsert=False )
src/utils/database/sqlite.py:120
↓ 11 callersMethodrun
(self)
src/world/base.py:103
↓ 8 callersMethodadd_event
Adds an event in the current step to the DB and local object
src/world/context.py:56
↓ 8 callersFunctionprint_to_console
( title: str, title_color: LogColor, content, min_typing_speed=0.06, max_typing_speed=0.04
src/utils/formatting.py:12
↓ 7 callersMethodget_by_id
(self, table: Tables, id: str)
src/utils/database/sqlite.py:38
↓ 7 callersMethodget_format_instructions
(self)
src/agent/executor.py:124
↓ 7 callersMethodparse
(self, llm_output: str)
src/agent/executor.py:84
↓ 6 callersMethodget_agent_dict_from_id
(self, agent_id: UUID | str)
src/world/context.py:78
↓ 6 callersFunctionseed_uuid
(seed: str)
src/utils/general.py:20
↓ 5 callersMethodclose
(self)
src/utils/logging.py:65
↓ 5 callersMethodget_agent_full_name
(self, agent_id: UUID | str)
src/world/context.py:178
↓ 5 callersMethodget_event_message
(self)
src/agent/message.py:28
↓ 4 callersMethod_upsert_plan_rows
(self, plans: list[SinglePlan])
src/agent/base.py:347
↓ 4 callersMethodfrom_agent_input
( cls, agent_input: str, agent_id: UUID, context: WorldContext, type:
src/agent/message.py:40
↓ 4 callersMethodget_agent_color
(self, agent_id: UUID | str)
src/world/context.py:142
↓ 4 callersMethodget_agents_at_location
(self, location_id: str)
src/world/context.py:89
↓ 4 callersMethodget_channel_id
(self, location_id: UUID | str)
src/world/context.py:151
↓ 4 callersMethodget_discord_token
(self, agent_id: UUID | str)
src/world/context.py:187
↓ 4 callersFunctionget_embedding
(text: str, model="text-embedding-ada-002", max_retries=3)
src/utils/embeddings.py:18
↓ 4 callersMethodto_event
(self)
src/agent/message.py:191
↓ 3 callersMethod_db_dict
(self)
src/agent/base.py:388
↓ 3 callersMethod_update_agent_row
(self)
src/agent/base.py:335
↓ 3 callersMethodget_agent_location_id
(self, agent_id: UUID | str)
src/world/context.py:164
↓ 3 callersFunctionget_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 callersFunctionget_open_port
()
src/utils/general.py:29
↓ 3 callersMethodlocation_context_string
(self, agent_id: UUID | str)
src/world/context.py:117
↓ 3 callersFunctionseed
(small=False)
src/utils/database/seed.py:94
↓ 3 callersMethodupdate_plan
(self, new_plan: SinglePlan)
src/agent/base.py:352
↓ 2 callersMethod_add_memory
( self, description: str, created_at: datetime = datetime.now(), type: MemoryT
src/agent/base.py:307
↓ 2 callersMethod_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 callersFunction_print_func
(text: str)
src/tools/human.py:10
↓ 2 callersFunction_send_message
( token, channel_id, message, rest_client: hikari.RESTApp, retries=3, delay=5 )
src/utils/discord.py:18
↓ 2 callersMethod_summarize_activity
(self, k: int = 20)
src/agent/base.py:402
↓ 2 callersMethodcreate
(cls)
src/utils/database/sqlite.py:188
↓ 2 callersFunctioncreate_client
( supabase_url: str, supabase_key: str, options: ClientOptions = ClientOptions(), )
src/utils/database/clients/supabase_client.py:61
↓ 2 callersMethodfrom_event
(cls, event: Event, context: WorldContext)
src/agent/message.py:99
↓ 2 callersMethodfrom_id
(cls, id: UUID)
src/world/base.py:58
↓ 2 callersMethodget_agent_id_from_name
(self, full_name: str)
src/world/context.py:167
↓ 2 callersMethodget_all
(self, table: Tables)
src/utils/database/sqlite.py:50
↓ 2 callersMethodget_by_ids
(self, table: Tables, ids: list[str])
src/utils/database/sqlite.py:44
↓ 2 callersFunctionget_chat_model
(name: ChatModelName, **kwargs)
src/utils/models.py:18
↓ 2 callersMethodget_events
( self, agent_id: Optional[UUID] = None, location_id: Optional[UUID] = None, t
src/event/base.py:220
↓ 2 callersMethodget_recent_events
( self, world_id: str, limit: int )
src/utils/database/sqlite.py:104
↓ 2 callersFunctionget_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 callersFunctionget_tools
( tools: list[ToolName], context: WorldContext, agent_id: str | UUID, include_worldwide=False,
src/tools/base.py:159
↓ 2 callersMethodintermediate_steps_to_list
( self, intermediate_steps: List[Tuple[AgentAction, str]] )
src/agent/executor.py:209
↓ 2 callersFunctionload_config
()
src/utils/config.py:33
↓ 2 callersMethodobserve
(self)
src/agent/base.py:975
↓ 2 callersMethodrun_for_one_step
(self)
src/agent/base.py:1050
↓ 2 callersFunctionrun_in_new_loop
(coro)
src/main.py:64
↓ 2 callersFunctionsave_cache
(cache)
src/utils/cache.py:20
↓ 2 callersFunctionsend_message_async
(token, channel_id, message)
src/utils/discord.py:38
↓ 2 callersMethodupdate_agent
(self, agent: dict)
src/world/context.py:190
↓ 1 callersMethod__init__
( self, agent_id: UUID, world_context: WorldContext, relevant_memories: list[S
src/agent/executor.py:163
↓ 1 callersMethod__init__
( self, type: EventType, description: str, location_id: UUID | str, ti
src/event/base.py:57
↓ 1 callersMethod_act
Act on a plan
src/agent/base.py:858
↓ 1 callersMethod_calculate_importance
(self, memory_description: str)
src/agent/base.py:435
↓ 1 callersMethod_call
( self, messages: List[BaseMessage], stop: Optional[List[str]] = None )
src/utils/windowai_model.py:63
↓ 1 callersMethod_do_first_plan
Do the first plan in the list
src/agent/base.py:960
↓ 1 callersMethod_generate
( self, messages: List[BaseMessage], stop: Optional[List[str]] = None )
src/utils/windowai_model.py:49
↓ 1 callersMethod_get_current_tools
(self)
src/agent/base.py:466
↓ 1 callersMethod_get_memories_since
(self, date: datetime)
src/agent/base.py:362
↓ 1 callersMethod_init_postgrest_client
Private helper for creating an instance of the Postgrest client.
src/utils/database/clients/supabase_client.py:46
↓ 1 callersMethod_move_to_location
Move the agents, send event to Events table
src/agent/base.py:484
↓ 1 callersMethod_react
Get the recent activity and decide whether to replan to carry on
src/agent/base.py:797
↓ 1 callersMethod_reflect
(self)
src/agent/base.py:528
↓ 1 callersMethod_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 callersFunctionannounce_bot_move
(bot_name: str, left_channel_id: str, enter_channel_id)
src/utils/discord.py:53
↓ 1 callersMethodclose
(self)
src/utils/database/sqlite.py:183
↓ 1 callersFunctioncosine_similarity
(a: np.ndarray, b: np.ndarray)
src/utils/embeddings.py:9
↓ 1 callersMethoddb_dict
(self)
src/memory/base.py:91
↓ 1 callersMethoddb_dict
(self)
src/event/base.py:106
↓ 1 callersFunctiondeduplicate_list
(items: list[T], key: Callable[[T], K])
src/utils/general.py:11
↓ 1 callersMethoddelete
(self, table: Tables, id: str)
src/utils/database/sqlite.py:153
↓ 1 callersMethodfrom_
(self, table_name: str)
src/utils/database/clients/supabase_client.py:37
↓ 1 callersMethodfrom_data
( agents: dict, locations: dict, world: WorldData, )
src/world/context.py:42
↓ 1 callersMethodfrom_db_dict
Create an agent from a dictionary retrieved from the database.
src/agent/base.py:161
↓ 1 callersMethodfrom_id
(cls, id: UUID, context: WorldContext)
src/agent/base.py:228
↓ 1 callersMethodfrom_llm_single_plan
(cls, agent_id: UUID, llm_plan: LLMSinglePlan)
src/agent/plans.py:112
↓ 1 callersMethodfrom_name
(cls, name: str)
src/world/base.py:81
↓ 1 callersMethodfrom_world_id
(cls, world_id: str)
src/event/base.py:163
↓ 1 callersFunctionget_agent_initial_plan
(agent: AgentConfig)
src/utils/database/seed.py:69
↓ 1 callersFunctionget_agent_logger
()
src/utils/logging.py:92
↓ 1 callersMethodget_agent_private_bio
(self, agent_id: UUID | str)
src/world/context.py:184
↓ 1 callersMethodget_by_field_contains
( self, table: Tables, field: str, value: Any, limit: int = None )
src/utils/database/sqlite.py:70
↓ 1 callersMethodget_chat_completion_sync
(self, messages: list[BaseMessage], **kwargs)
src/utils/models.py:61
↓ 1 callersMethodget_executor
(self, tools: list[CustomTool])
src/agent/executor.py:177
↓ 1 callersFunctionget_hash
(string: str)
src/utils/cache.py:16
↓ 1 callersMethodget_location_from_agent_id
(self, agent_id: UUID | str)
src/world/context.py:92
↓ 1 callersMethodget_location_from_location_id
(self, location_id: UUID | str)
src/world/context.py:105
↓ 1 callersMethodget_location_name
(self, location_id: UUID | str)
src/world/context.py:148
↓ 1 callersMethodget_memories_since
( self, timestamp: datetime, agent_id: str )
src/utils/database/sqlite.py:87
↓ 1 callersMethodget_messages_by_discord_id
(self, discord_id: str)
src/utils/database/sqlite.py:113
↓ 1 callersFunctionget_server
()
src/web/__init__.py:20
next →1–100 of 251, ranked by callers