SYMBOL INDEX (537 symbols across 78 files) FILE: bondai/agents/agent.py class FinalAnswerParameters (line 44) | class FinalAnswerParameters(BaseModel): class FinalAnswerTool (line 48) | class FinalAnswerTool(Tool): method __init__ (line 49) | def __init__(self): method run (line 56) | def run(self, results: str) -> Tuple[str, bool]: class Agent (line 60) | class Agent(EventMixin, Runnable): method __init__ (line 61) | def __init__( method id (line 138) | def id(self) -> str: method status (line 142) | def status(self) -> AgentStatus: method tools (line 146) | def tools(self) -> List[Tool]: method clear_messages (line 149) | def clear_messages(self): method add_tool (line 156) | def add_tool(self, tool: Tool): method remove_tool (line 160) | def remove_tool(self, tool_name: str): method to_dict (line 163) | def to_dict(self) -> Dict: method save_state (line 166) | def save_state(self) -> Dict: method load_state (line 177) | def load_state(self, state: Dict): method _is_context_pressure_too_high (line 185) | def _is_context_pressure_too_high( method _get_llm_response (line 197) | def _get_llm_response( method run (line 262) | def run( method run_async (line 282) | def run_async( method stop (line 295) | def stop(self, timeout=10): method _run_tool_loop (line 303) | def _run_tool_loop( method _build_llm_context (line 453) | def _build_llm_context( method _compress_llm_context (line 504) | def _compress_llm_context( method _handle_llm_function (line 596) | def _handle_llm_function(self, tool_message: ToolUsageMessage, tools: ... FILE: bondai/agents/compression/conversation_summarizer.py function summarize_conversation (line 16) | def summarize_conversation( FILE: bondai/agents/compression/message_summarizer.py function summarize_messages (line 15) | def summarize_messages( function _summarize_message (line 68) | def _summarize_message( FILE: bondai/agents/conversation_member.py class ConversationMemberEventNames (line 15) | class ConversationMemberEventNames(Enum): class ConversationMember (line 22) | class ConversationMember(ABC): method __init__ (line 23) | def __init__( method id (line 36) | def id(self) -> str: method name (line 40) | def name(self) -> str: method persona (line 44) | def persona(self) -> str: method persona_summary (line 48) | def persona_summary(self) -> str: method messages (line 52) | def messages(self) -> AgentMessageList: method send_message (line 56) | def send_message( method send_message_async (line 67) | def send_message_async( method clear_messages (line 78) | def clear_messages(self): FILE: bondai/agents/conversational_agent.py class ConversationalAgent (line 46) | class ConversationalAgent(Agent, ConversationMember): method __init__ (line 47) | def __init__( method instructions (line 125) | def instructions(self) -> str: method send_message_async (line 128) | def send_message_async( method send_message (line 156) | def send_message( method to_dict (line 318) | def to_dict(self) -> Dict: method save_state (line 335) | def save_state(self, file_path: str = None) -> Dict: method from_dict (line 347) | def from_dict( FILE: bondai/agents/group_chat/group_conversation.py class GroupConversation (line 22) | class GroupConversation(EventMixin, Runnable): method __init__ (line 23) | def __init__( method id (line 59) | def id(self) -> str: method status (line 63) | def status(self) -> AgentStatus: method members (line 67) | def members(self) -> List[ConversationMember]: method remove_messages_after (line 70) | def remove_messages_after(self, timestamp: datetime, inclusive: bool =... method _get_member (line 75) | def _get_member(self, member_name: str) -> ConversationMember: method _init_member_events (line 80) | def _init_member_events(self): method _on_member_message_received (line 95) | def _on_member_message_received( method _on_member_message_error (line 103) | def _on_member_message_error( method _on_member_message_completed (line 110) | def _on_member_message_completed( method _on_member_exited (line 118) | def _on_member_exited( method save_state (line 125) | def save_state(self) -> Dict: method load_state (line 137) | def load_state(self, state: Dict): method send_message_async (line 146) | def send_message_async( method send_message (line 165) | def send_message( method reset_memory (line 273) | def reset_memory(self): FILE: bondai/agents/group_chat/group_conversation_config.py class BaseGroupConversationConfig (line 6) | class BaseGroupConversationConfig(ABC): method members (line 9) | def members(self) -> List[ConversationMember]: method get_reachable_members (line 13) | def get_reachable_members( class GroupConversationConfig (line 19) | class GroupConversationConfig(ABC): method __init__ (line 20) | def __init__(self, members: List[ConversationMember]): method _members (line 24) | def _members(self) -> List[ConversationMember]: method get_reachable_members (line 27) | def get_reachable_members( class TeamConversationConfig (line 47) | class TeamConversationConfig(BaseGroupConversationConfig): method __init__ (line 48) | def __init__(self, *args: List[ConversationMember]): method members (line 55) | def members(self) -> List[ConversationMember]: method get_reachable_members (line 58) | def get_reachable_members( class TableConversationConfig (line 85) | class TableConversationConfig(BaseGroupConversationConfig): method __init__ (line 86) | def __init__(self, member_table: Dict): method members (line 90) | def members(self) -> List[ConversationMember]: method get_reachable_members (line 93) | def get_reachable_members( class CompositeConversationConfig (line 108) | class CompositeConversationConfig(BaseGroupConversationConfig): method __init__ (line 109) | def __init__(self, *conversation_configs: List[BaseGroupConversationCo... method members (line 115) | def members(self) -> List[ConversationMember]: method get_reachable_members (line 118) | def get_reachable_members( FILE: bondai/agents/group_chat/user_proxy.py class UserProxy (line 17) | class UserProxy(EventMixin, ConversationMember): method __init__ (line 18) | def __init__( method send_message (line 42) | def send_message( FILE: bondai/agents/messages.py class AgentMessage (line 15) | class AgentMessage(ABC): class SystemMessage (line 22) | class SystemMessage(AgentMessage): class SummaryMessage (line 28) | class SummaryMessage(AgentMessage): class ConversationMessage (line 35) | class ConversationMessage(AgentMessage): class ToolUsageMessage (line 50) | class ToolUsageMessage(AgentMessage): function custom_serialization (line 63) | def custom_serialization(value): function message_to_dict (line 76) | def message_to_dict(message: AgentMessage) -> Dict: class AgentMessageList (line 95) | class AgentMessageList: method __init__ (line 96) | def __init__(self, messages: List[AgentMessage] | None = None): method add (line 103) | def add(self, item: AgentMessage): method remove (line 109) | def remove(self, item: AgentMessage): method remove_after (line 114) | def remove_after(self, timestamp: datetime, inclusive: bool = True): method clear (line 121) | def clear(self): method __getitem__ (line 125) | def __getitem__(self, index: int): method __add__ (line 128) | def __add__(self, other: List[AgentMessage] | "AgentMessageList"): method __iter__ (line 141) | def __iter__(self): method __contains__ (line 144) | def __contains__(self, item): method __len__ (line 147) | def __len__(self): method to_dict (line 150) | def to_dict(self) -> List[Dict]: method from_dict (line 157) | def from_dict(cls, data: List[Dict]) -> "AgentMessageList": FILE: bondai/agents/util.py class AgentStatus (line 11) | class AgentStatus(Enum): class AgentException (line 16) | class AgentException(Exception): class BudgetExceededException (line 20) | class BudgetExceededException(AgentException): class MaxStepsExceededException (line 24) | class MaxStepsExceededException(AgentException): class ContextLengthExceededException (line 28) | class ContextLengthExceededException(AgentException): class AgentEventNames (line 32) | class AgentEventNames(Enum): function count_request_tokens (line 41) | def count_request_tokens( function execute_tool (line 53) | def execute_tool( function validate_tool_params (line 86) | def validate_tool_params(func, params): function tool_supports_unpacking (line 108) | def tool_supports_unpacking(func): function parse_response_content_message (line 115) | def parse_response_content_message(response: str) -> (str, str): function format_llm_messages (line 137) | def format_llm_messages( FILE: bondai/api/agent_wrapper.py class AgentWrapper (line 5) | class AgentWrapper: method __init__ (line 6) | def __init__(self, uuid, conversational_agent, task_agent, tools): method find_tool (line 12) | def find_tool(self, tool_name): method get_previous_steps (line 18) | def get_previous_steps(self): method get_agent (line 21) | def get_agent(self): method start_agent (line 31) | def start_agent(self, task=None, task_budget=None, max_steps=None): method stop_agent (line 38) | def stop_agent(self): method get_agent_tool_options (line 42) | def get_agent_tool_options(self): method get_agent_tools (line 45) | def get_agent_tools(self): method add_tool (line 48) | def add_tool(self, tool_name): method remove_tool (line 59) | def remove_tool(self, tool_name): FILE: bondai/api/api_error.py class BondAIAPIError (line 1) | class BondAIAPIError(Exception): FILE: bondai/api/api_user_proxy.py class APIUserProxy (line 16) | class APIUserProxy(EventMixin, ConversationMember): method __init__ (line 17) | def __init__(self, socketio: SocketIO, persona: str | None = None): method send_message (line 34) | def send_message( FILE: bondai/api/client.py class BondAIAPIClient (line 8) | class BondAIAPIClient(EventMixin): method __init__ (line 9) | def __init__(self, base_url="http://127.0.0.1:2663"): method connect_ws (line 28) | def connect_ws(self): method disconnect_ws (line 56) | def disconnect_ws(self): method is_ws_connected (line 61) | def is_ws_connected(self): method send_ws_message (line 64) | def send_ws_message(self, event, data): method _request (line 72) | def _request(self, method, endpoint, data=None): method create_agent (line 89) | def create_agent(self): method send_message (line 92) | def send_message(self, agent_id, message): method list_agents (line 96) | def list_agents(self): method get_agent (line 99) | def get_agent(self, agent_id): method get_agent_tool_options (line 102) | def get_agent_tool_options(self, agent_id): method get_agent_tools (line 105) | def get_agent_tools(self, agent_id): method add_agent_tool (line 108) | def add_agent_tool(self, agent_id, tool_name): method remove_agent_tool (line 112) | def remove_agent_tool(self, agent_id, tool_name): method stop_agent (line 115) | def stop_agent(self, agent_id): method get_settings (line 118) | def get_settings(self): method set_settings (line 121) | def set_settings(self, settings): FILE: bondai/api/routes.py function setup_routes (line 9) | def setup_routes(server, tool_options: List[Tool] = []): FILE: bondai/api/server.py class BondAIAPIError (line 24) | class BondAIAPIError(Exception): class AgentRegistration (line 32) | class AgentRegistration: class BondAIAPIServer (line 39) | class BondAIAPIServer: method __init__ (line 40) | def __init__(self, agent_builder: Callable, port: int = 2663): method app (line 53) | def app(self): method agent_registrations (line 57) | def agent_registrations(self) -> List[AgentRegistration]: method get_agent_by_id (line 60) | def get_agent_by_id(self, agent_id: str) -> ConversationalAgent | None: method register_new_agent (line 72) | def register_new_agent(self) -> AgentRegistration: method _handle_client_message (line 89) | def _handle_client_message(self, message): method _send_message (line 114) | def _send_message( method _setup_conversation_events (line 121) | def _setup_conversation_events(self, conversational_agent: Conversatio... method _setup_execution_events (line 172) | def _setup_execution_events( method run (line 200) | def run(self): method shutdown (line 211) | def shutdown(self): FILE: bondai/api/settings.py function get_settings (line 151) | def get_settings(): function set_settings (line 167) | def set_settings(settings): class SettingsResource (line 193) | class SettingsResource(Resource): method get (line 194) | def get(self): method post (line 197) | def post(self): FILE: bondai/cli/cli.py function build_agents (line 84) | def build_agents(llm: LLM) -> GroupConversation: function run_cli (line 120) | def run_cli(): FILE: bondai/cli/default_tools.py function load_all_tools (line 25) | def load_all_tools(): FILE: bondai/main.py function main (line 6) | def main(): FILE: bondai/memory/archival/datasources.py class ArchivalMemoryDataSource (line 11) | class ArchivalMemoryDataSource(ABC): method size (line 14) | def size(self) -> int: method insert (line 18) | def insert(self, content: str): method insert_bulk (line 22) | def insert_bulk(self, content: List[str]): method search (line 26) | def search(self, query: str, page: int = 0) -> List[str]: method clear (line 30) | def clear(self): class PersistentArchivalMemoryDataSource (line 34) | class PersistentArchivalMemoryDataSource(ArchivalMemoryDataSource): method __init__ (line 35) | def __init__( method size (line 54) | def size(self) -> int: method _load_data (line 57) | def _load_data(self): method _save_data (line 64) | def _save_data(self): method _rebuild_index (line 69) | def _rebuild_index(self): method insert (line 77) | def insert(self, content: str): method insert_bulk (line 83) | def insert_bulk(self, content: List[str]): method search (line 90) | def search(self, query: str, page: int = 0) -> List[str]: method clear (line 100) | def clear(self): class InMemoryArchivalMemoryDataSource (line 106) | class InMemoryArchivalMemoryDataSource(ArchivalMemoryDataSource): method __init__ (line 107) | def __init__(self, embedding_model: EmbeddingModel | None = None, page... method size (line 120) | def size(self) -> int: method insert (line 123) | def insert(self, content: str): method insert_bulk (line 131) | def insert_bulk(self, content: List[str]): method _rebuild_index (line 142) | def _rebuild_index(self): method search (line 148) | def search(self, query: str, page: int = 0) -> List[str]: method clear (line 167) | def clear(self): FILE: bondai/memory/archival/tools.py class ArchivalMemoryInsertToolParameters (line 13) | class ArchivalMemoryInsertToolParameters(BaseModel): class ArchivalMemoryInsertTool (line 17) | class ArchivalMemoryInsertTool(Tool): method __init__ (line 18) | def __init__(self, datasource: ArchivalMemoryDataSource): method run (line 26) | def run(self, content: str): class ArchivalMemorySearchToolParameters (line 38) | class ArchivalMemorySearchToolParameters(BaseModel): class ArchivalMemorySearchTool (line 43) | class ArchivalMemorySearchTool(Tool): method __init__ (line 44) | def __init__(self, datasource: ArchivalMemoryDataSource): method run (line 52) | def run(self, query: str, page: int = 0) -> str: FILE: bondai/memory/conversation/datasources.py function format_messages (line 15) | def format_messages(messages: List[AgentMessage]) -> str: class ConversationMemoryDataSource (line 27) | class ConversationMemoryDataSource(ABC): method messages (line 30) | def messages(self) -> List[AgentMessage]: method add (line 34) | def add(self, message: AgentMessage): method remove (line 38) | def remove(self, message: AgentMessage): method remove_after (line 41) | def remove_after(self, timestamp: datetime, inclusive: bool = True): method search (line 45) | def search( method clear (line 55) | def clear(self): class InMemoryConversationMemoryDataSource (line 59) | class InMemoryConversationMemoryDataSource(ConversationMemoryDataSource): method __init__ (line 60) | def __init__(self, page_size=10): method messages (line 65) | def messages(self) -> List[AgentMessage]: method add (line 68) | def add(self, message: AgentMessage): method remove (line 71) | def remove(self, message: AgentMessage): method remove_after (line 74) | def remove_after(self, timestamp: datetime, inclusive: bool = True): method search (line 77) | def search( method clear (line 113) | def clear(self): class PersistentConversationMemoryDataSource (line 117) | class PersistentConversationMemoryDataSource(InMemoryConversationMemoryD... method __init__ (line 118) | def __init__( method _load_data (line 125) | def _load_data(self): method _save_data (line 132) | def _save_data(self): method add (line 137) | def add(self, message: str) -> None: method remove (line 141) | def remove(self, message: str) -> None: method remove_after (line 145) | def remove_after(self, timestamp: datetime, inclusive: bool = True): method clear (line 149) | def clear(self): FILE: bondai/memory/conversation/tools.py class ConversationMemorySearchParameters (line 15) | class ConversationMemorySearchParameters(BaseModel): class ConversationMemorySearchTool (line 20) | class ConversationMemorySearchTool(Tool): method __init__ (line 21) | def __init__(self, datasource: ConversationMemoryDataSource): method run (line 29) | def run(self, query: str, page: int = 0) -> str: class ConversationMemorySearchDateParameters (line 42) | class ConversationMemorySearchDateParameters(BaseModel): class ConversationMemorySearchDateTool (line 47) | class ConversationMemorySearchDateTool(Tool): method __init__ (line 48) | def __init__(self, datasource: ConversationMemoryDataSource): method run (line 56) | def run(self, start_date: str, end_date: str, page: int = 0) -> str: FILE: bondai/memory/core/datasources.py class CoreMemoryDataSource (line 12) | class CoreMemoryDataSource(ABC): method sections (line 15) | def sections(self) -> List[str]: method get (line 19) | def get(self, section: str) -> str: method set (line 23) | def set(self, section: str, content: str) -> None: class PersistentCoreMemoryDataSource (line 27) | class PersistentCoreMemoryDataSource(CoreMemoryDataSource): method __init__ (line 28) | def __init__( method _load_data (line 40) | def _load_data(self, initial_sections: Dict[str, str] = None): method _save_data (line 47) | def _save_data(self): method sections (line 53) | def sections(self) -> List[str]: method get (line 56) | def get(self, section: str) -> str: method set (line 59) | def set(self, section: str, content: str) -> None: class InMemoryCoreMemoryDataSource (line 68) | class InMemoryCoreMemoryDataSource(CoreMemoryDataSource): method __init__ (line 69) | def __init__( method sections (line 78) | def sections(self) -> List[str]: method get (line 81) | def get(self, section: str) -> str: method set (line 84) | def set(self, section: str, content: str) -> None: FILE: bondai/memory/core/tools.py class CoreMemoryAppendParameters (line 15) | class CoreMemoryAppendParameters(BaseModel): class CoreMemoryAppendTool (line 20) | class CoreMemoryAppendTool(Tool): method __init__ (line 21) | def __init__(self, datasource: CoreMemoryDataSource): method run (line 29) | def run(self, section: str, content: str): class CoreMemoryReplaceParameters (line 47) | class CoreMemoryReplaceParameters(BaseModel): class CoreMemoryReplaceTool (line 53) | class CoreMemoryReplaceTool(Tool): method __init__ (line 54) | def __init__(self, datasource: CoreMemoryDataSource): method run (line 62) | def run(self, section: str, old_content: str, new_content: str): FILE: bondai/memory/memory_manager.py class MemoryManager (line 30) | class MemoryManager: method __init__ (line 31) | def __init__( method core_memory (line 46) | def core_memory(self) -> CoreMemoryDataSource: method conversation_memory (line 50) | def conversation_memory(self) -> ConversationMemoryDataSource: method archival_memory (line 54) | def archival_memory(self) -> ArchivalMemoryDataSource: method tools (line 58) | def tools(self): method __call__ (line 85) | def __call__(self): method render_prompt_section (line 88) | def render_prompt_section(self) -> str: class PersistentMemoryManager (line 96) | class PersistentMemoryManager(MemoryManager): method __init__ (line 97) | def __init__( class ConversationalMemoryManager (line 111) | class ConversationalMemoryManager(MemoryManager): method __init__ (line 112) | def __init__( FILE: bondai/models/embedding_model.py class EmbeddingModel (line 5) | class EmbeddingModel(ABC): method max_tokens (line 8) | def max_tokens() -> int: method embedding_size (line 13) | def embedding_size() -> int: method create_embedding (line 17) | def create_embedding(prompt: str) -> List[float] | List[List[float]]: method count_tokens (line 21) | def count_tokens(prompt: str) -> int: FILE: bondai/models/llm.py class LLM (line 5) | class LLM(ABC): method max_tokens (line 8) | def max_tokens() -> int: method supports_streaming (line 13) | def supports_streaming() -> bool: method get_completion (line 17) | def get_completion( method get_streaming_completion (line 25) | def get_streaming_completion( method count_tokens (line 35) | def count_tokens(prompt: str) -> int: FILE: bondai/models/openai/default_openai_connection_params.py function configure_openai_connection (line 11) | def configure_openai_connection(api_key: str): function configure_azure_connection (line 50) | def configure_azure_connection( FILE: bondai/models/openai/openai_connection_params.py class OpenAIConnectionParams (line 4) | class OpenAIConnectionParams: method __init__ (line 5) | def __init__( method connection_type (line 38) | def connection_type(self): method api_key (line 42) | def api_key(self): method api_version (line 46) | def api_version(self): method azure_endpoint (line 50) | def azure_endpoint(self): method azure_deployment (line 54) | def azure_deployment(self): method configure_openai_connection (line 57) | def configure_openai_connection(self, api_key: str): method configure_azure_connection (line 66) | def configure_azure_connection( method to_dict (line 86) | def to_dict(self): FILE: bondai/models/openai/openai_embedding_model.py class OpenAIEmbeddingModel (line 9) | class OpenAIEmbeddingModel(EmbeddingModel): method __init__ (line 10) | def __init__( method embedding_size (line 29) | def embedding_size(self) -> int: method max_tokens (line 33) | def max_tokens(self) -> int: method create_embedding (line 36) | def create_embedding(self, prompt: str) -> List[float] | List[List[flo... method count_tokens (line 41) | def count_tokens(self, prompt: str) -> int: FILE: bondai/models/openai/openai_llm.py class OpenAILLM (line 22) | class OpenAILLM(LLM): method __init__ (line 23) | def __init__( method max_tokens (line 50) | def max_tokens(self) -> int: method supports_streaming (line 54) | def supports_streaming(self) -> bool: method count_tokens (line 57) | def count_tokens(self, prompt: str) -> int: method get_completion (line 60) | def get_completion( method get_streaming_completion (line 92) | def get_streaming_completion( FILE: bondai/models/openai/openai_models.py class OpenAIConnectionType (line 4) | class OpenAIConnectionType(Enum): class OpenAIModelType (line 9) | class OpenAIModelType(Enum): class OpenAIModelFamilyType (line 14) | class OpenAIModelFamilyType(Enum): class OpenAIModelNames (line 19) | class OpenAIModelNames(Enum): FILE: bondai/models/openai/openai_wrapper.py function enable_logging (line 19) | def enable_logging(model_logger: ModelLogger): function disable_logging (line 24) | def disable_logging(): function get_gpt_tokens (line 29) | def get_gpt_tokens() -> int: function get_embedding_tokens (line 33) | def get_embedding_tokens() -> int: function get_gpt_costs (line 37) | def get_gpt_costs() -> float: function get_embedding_costs (line 41) | def get_embedding_costs() -> float: function get_total_cost (line 45) | def get_total_cost() -> float: function reset_total_cost (line 49) | def reset_total_cost(): function calculate_cost (line 57) | def calculate_cost(model_name: str, usage: Dict): function get_max_tokens (line 76) | def get_max_tokens(model: str) -> int: function count_tokens (line 80) | def count_tokens(prompt: str, model: Dict) -> int: function create_embedding (line 85) | def create_embedding( function get_completion (line 128) | def get_completion( function get_streaming_completion (line 177) | def get_streaming_completion( function _log_completion (line 260) | def _log_completion( function _get_completion (line 289) | def _get_completion( FILE: bondai/prompt/default_prompt_builder.py class DefaultPromptBuilder (line 4) | class DefaultPromptBuilder(PromptBuilder): method __init__ (line 5) | def __init__(self, prompt_template: str): method build_prompt (line 8) | def build_prompt(self, **kwargs) -> str: FILE: bondai/prompt/jinja_prompt_builder.py class JinjaPromptBuilder (line 7) | class JinjaPromptBuilder(PromptBuilder): method __init__ (line 8) | def __init__(self, prompt_template: str): method _apply_prompt_template (line 11) | def _apply_prompt_template(self, template_string: str, **kwargs) -> str: method build_prompt (line 15) | def build_prompt(self, **kwargs) -> str: FILE: bondai/prompt/prompt_builder.py class PromptBuilder (line 5) | class PromptBuilder(ABC): method __call__ (line 6) | def __call__(self, **kwargs: Dict[str, Any]) -> str: method build_prompt (line 10) | def build_prompt(self, **kwargs: Dict[str, Any]) -> str: method _apply_prompt_template (line 13) | def _apply_prompt_template(prompt_template: str, **kwargs) -> str: FILE: bondai/tools/agent_tool.py class Parameters (line 14) | class Parameters(BaseModel): class AgentTool (line 18) | class AgentTool(Tool): method __init__ (line 19) | def __init__(self, agent): method run (line 25) | def run(self, task_description: str) -> str: method stop (line 39) | def stop(self): FILE: bondai/tools/alpaca_markets/create_order.py class Parameters (line 22) | class Parameters(BaseModel): class CreateOrderTool (line 32) | class CreateOrderTool(Tool): method __init__ (line 33) | def __init__( method run (line 43) | def run(self, arguments): FILE: bondai/tools/alpaca_markets/get_account.py class GetAccountTool (line 11) | class GetAccountTool(Tool): method __init__ (line 12) | def __init__( method run (line 22) | def run(self, arguments): FILE: bondai/tools/alpaca_markets/list_positions.py class ListPositionsTool (line 13) | class ListPositionsTool(Tool): method __init__ (line 14) | def __init__( method run (line 24) | def run(self, arguments): FILE: bondai/tools/alpaca_markets/response_formatter.py function format_order_response (line 1) | def format_order_response(response): function format_account_response (line 20) | def format_account_response(response): function format_positions_response (line 38) | def format_positions_response(response): function format_position (line 45) | def format_position(position): function format_orders_response (line 55) | def format_orders_response(response): function format_order (line 62) | def format_order(order): FILE: bondai/tools/bland_ai/bland_ai_tools.py class CallParameters (line 28) | class CallParameters(BaseModel): function validate_phone_number (line 35) | def validate_phone_number(phone): class BlandAITool (line 57) | class BlandAITool(Tool): method __init__ (line 58) | def __init__( method run (line 69) | def run(self, arguments): method start_call (line 99) | def start_call(self, arguments): method check_call_status (line 108) | def check_call_status(self, call_id): method end_call (line 126) | def end_call(self, call_id): FILE: bondai/tools/conversational/conversational_tools.py class SendMessageToolParameters (line 18) | class SendMessageToolParameters(BaseModel): class SendMessageTool (line 24) | class SendMessageTool(Tool): method __init__ (line 25) | def __init__(self): method run (line 32) | def run( class ExitConversationTool (line 49) | class ExitConversationTool(Tool): method __init__ (line 50) | def __init__(self): method run (line 56) | def run(self, arguments: Dict) -> Tuple[str, bool]: FILE: bondai/tools/dalle_tool.py class Parameters (line 19) | class Parameters(BaseModel): class DalleTool (line 25) | class DalleTool(Tool): method __init__ (line 26) | def __init__(self, connection_params: OpenAIConnectionParams | None = ... method run (line 36) | def run(self, arguments: Dict) -> str: FILE: bondai/tools/database/db_query.py class Parameters (line 9) | class Parameters(BaseModel): class DatabaseQueryTool (line 61) | class DatabaseQueryTool(Tool): method __init__ (line 62) | def __init__( method run (line 83) | def run(self, arguments): method __format_response (line 104) | def __format_response(self, rows, colnames): method __get_database_connection (line 113) | def __get_database_connection(self): method __query_database (line 127) | def __query_database(self, query): method __get_database_schema (line 150) | def __get_database_schema(self): FILE: bondai/tools/file/file_query.py function is_pdf (line 13) | def is_pdf(filename: str) -> bool: function build_prompt (line 19) | def build_prompt(question: str, context: str) -> str: class Parameters (line 28) | class Parameters(BaseModel): class FileQueryTool (line 34) | class FileQueryTool(Tool): method __init__ (line 35) | def __init__( method run (line 49) | def run(self, arguments: Dict) -> str: FILE: bondai/tools/file/file_read.py function is_pdf (line 10) | def is_pdf(filename: str) -> bool: class Parameters (line 16) | class Parameters(BaseModel): class FileReadTool (line 21) | class FileReadTool(Tool): method __init__ (line 22) | def __init__(self): method run (line 25) | def run(self, arguments: Dict) -> str: FILE: bondai/tools/file/file_write.py class Parameters (line 13) | class Parameters(BaseModel): class FileWriteTool (line 20) | class FileWriteTool(Tool): method __init__ (line 21) | def __init__(self): method run (line 24) | def run(self, arguments: Dict) -> str: FILE: bondai/tools/gmail/list_emails.py class Parameters (line 14) | class Parameters(BaseModel): function get_email_attr (line 20) | def get_email_attr(message: Dict, attr: str) -> str: class ListEmailsTool (line 26) | class ListEmailsTool(Tool): method __init__ (line 27) | def __init__( method run (line 43) | def run(self, arguments: Dict) -> str: FILE: bondai/tools/gmail/query_emails.py function get_email_attr (line 16) | def get_email_attr(message: Dict, attr: str) -> str: function build_prompt (line 22) | def build_prompt(question: str, context: str) -> str: function parse_body (line 31) | def parse_body(message: Dict) -> str: class Parameters (line 56) | class Parameters(BaseModel): class QueryEmailsTool (line 62) | class QueryEmailsTool(Tool): method __init__ (line 63) | def __init__( method run (line 84) | def run(self, arguments: Dict) -> str: FILE: bondai/tools/langchain_tool.py class LangChainTool (line 6) | class LangChainTool(Tool): method __init__ (line 7) | def __init__( method run (line 20) | def run(self, arguments: Dict) -> str: FILE: bondai/tools/python_repl_tool.py class Parameters (line 18) | class Parameters(BaseModel): function execute_target (line 23) | def execute_target(conn: Connection, code: str): class PythonREPLTool (line 45) | class PythonREPLTool(Tool): method __init__ (line 46) | def __init__(self, execution_timeout: int = DEFAULT_EXECUTION_TIMEOUT): method run (line 52) | def run(self, arguments: Dict) -> str: method execute_code (line 84) | def execute_code(self, code: str) -> (Dict, str, str): FILE: bondai/tools/response_query.py function build_prompt (line 18) | def build_prompt(question, context): class Parameters (line 27) | class Parameters(BaseModel): class ResponseQueryTool (line 33) | class ResponseQueryTool(Tool): method __init__ (line 34) | def __init__( method responses (line 50) | def responses(self): method add_response (line 53) | def add_response(self, response: str) -> str: method run (line 58) | def run(self, arguments: Dict) -> str: method clear_responses (line 76) | def clear_responses(self): FILE: bondai/tools/search/duck_duck_go_search.py class Parameters (line 12) | class Parameters(BaseModel): function search_duckduckgo (line 19) | def search_duckduckgo(query: str, count: int = 10, page: int = 1) -> str: class DuckDuckGoSearchTool (line 29) | class DuckDuckGoSearchTool(Tool): method __init__ (line 30) | def __init__(self): method run (line 35) | def run(self, arguments: Dict) -> str: FILE: bondai/tools/search/google_search.py class Parameters (line 22) | class Parameters(BaseModel): class GoogleSearchTool (line 29) | class GoogleSearchTool(Tool): method __init__ (line 30) | def __init__( method run (line 40) | def run(self, arguments): FILE: bondai/tools/shell_tool.py class Parameters (line 18) | class Parameters(BaseModel): class ShellTool (line 23) | class ShellTool(Tool): method __init__ (line 24) | def __init__(self, execution_timeout: int = DEFAULT_EXECUTION_TIMEOUT): method run (line 30) | def run(self, arguments: Dict) -> str: method execute_command (line 52) | def execute_command(self, cmd: str) -> (str, str): FILE: bondai/tools/task_completed_tool.py class TaskCompletedToolParameters (line 6) | class TaskCompletedToolParameters(BaseModel): class TaskCompletedTool (line 10) | class TaskCompletedTool(Tool): method __init__ (line 11) | def __init__(self): method run (line 18) | def run(self, arguments: Dict) -> Dict[str, bool]: FILE: bondai/tools/tool.py class InputParameters (line 5) | class InputParameters(BaseModel): class EmptyParameters (line 10) | class EmptyParameters(BaseModel): class Tool (line 14) | class Tool: method __init__ (line 15) | def __init__( method get_tool_function (line 36) | def get_tool_function(self) -> Dict: method run (line 43) | def run(self, arguments: Dict) -> str | Dict: method handle_stream_update (line 47) | def handle_stream_update(self, arguments_buffer: str): method save_state (line 52) | def save_state() -> Dict: method load_state (line 57) | def load_state(state: Dict): method stop (line 62) | def stop(self): FILE: bondai/tools/vision/image_analysis_tool.py class Parameters (line 13) | class Parameters(BaseModel): class ImageAnalysisTool (line 19) | class ImageAnalysisTool(Tool): method __init__ (line 20) | def __init__( method _encode_image (line 33) | def _encode_image(self, image_path): method _analyze_image (line 37) | def _analyze_image(self, image_data, analysis_description): method run (line 57) | def run( FILE: bondai/tools/website/download_file.py class Parameters (line 13) | class Parameters(BaseModel): class DownloadFileTool (line 19) | class DownloadFileTool(Tool): method __init__ (line 20) | def __init__(self): method run (line 23) | def run(self, arguments: Dict) -> str: FILE: bondai/tools/website/extract_hyperlinks.py class Parameters (line 14) | class Parameters(BaseModel): class WebsiteExtractHyperlinksTool (line 19) | class WebsiteExtractHyperlinksTool(Tool): method __init__ (line 20) | def __init__(self): method run (line 25) | def run(self, arguments: Dict) -> str: FILE: bondai/tools/website/html_query.py function build_prompt (line 14) | def build_prompt(question, context): class Parameters (line 23) | class Parameters(BaseModel): class WebsiteHtmlQueryTool (line 29) | class WebsiteHtmlQueryTool(Tool): method __init__ (line 30) | def __init__(self, llm: LLM | None = None): method run (line 39) | def run(self, arguments: Dict) -> str: FILE: bondai/tools/website/query.py function build_prompt (line 16) | def build_prompt(question: str, context: str) -> str: class Parameters (line 28) | class Parameters(BaseModel): class WebsiteQueryTool (line 34) | class WebsiteQueryTool(Tool): method __init__ (line 35) | def __init__( method run (line 49) | def run(self, arguments: Dict) -> str: FILE: bondai/util/caching/llm_cache.py class LLMCache (line 8) | class LLMCache(ABC): method _get_cache_key (line 9) | def _get_cache_key(self, input_parameters: Dict) -> str: method get_cache_item (line 14) | def get_cache_item(self, input_parameters: Dict) -> Optional[Tuple[str... method save_cache_item (line 18) | def save_cache_item(self, input_parameters: Dict, response: (str, Dict... class PersistentLLMCache (line 22) | class PersistentLLMCache(LLMCache): method __init__ (line 23) | def __init__(self, cache_dir: str = "./.cache"): method get_cache_item (line 28) | def get_cache_item(self, input_parameters: Dict) -> Optional[Tuple[str... method save_cache_item (line 36) | def save_cache_item(self, input_parameters: Dict, response: (str, Dict... class InMemoryLLMCache (line 48) | class InMemoryLLMCache(LLMCache): method __init__ (line 49) | def __init__(self): method get_cache_item (line 52) | def get_cache_item(self, input_parameters: Dict) -> Optional[Tuple[str... method save_cache_item (line 58) | def save_cache_item(self, input_parameters: Dict, response: (str, Dict... FILE: bondai/util/document_parser.py function extract_text_from_directory (line 7) | def extract_text_from_directory(directory: str) -> Dict[str, str]: function extract_file_text (line 21) | def extract_file_text(file_path: str) -> str: FILE: bondai/util/event_mixin.py class EventMixin (line 5) | class EventMixin: method __init__ (line 6) | def __init__(self, allowed_events: List[str]): method on (line 14) | def on(self, event_name: str, target: Callable = None) -> Callable | N... method _trigger_event (line 32) | def _trigger_event(self, event_name: str, *args, **kwargs): FILE: bondai/util/misc.py function load_local_resource (line 5) | def load_local_resource(local_file: str, resource: str) -> str: function format_print_string (line 16) | def format_print_string(s: str, length: int = 100) -> str: FILE: bondai/util/model_logger.py function get_instance_dir (line 7) | def get_instance_dir(logging_dir: str) -> str: function write_file (line 17) | def write_file(filename: str, content: str): class ModelLogger (line 22) | class ModelLogger: method __init__ (line 23) | def __init__(self, logging_dir: str = "./logs"): method log (line 26) | def log(self, prompt: str, response: str, function: Dict | None = None): FILE: bondai/util/runnable.py class Runnable (line 6) | class Runnable(ABC): method __init__ (line 7) | def __init__(self): method _start_execution_thread (line 11) | def _start_execution_thread(self, target: Callable, args: Tuple = ()): method join (line 18) | def join(self, timeout=None): method stop (line 23) | def stop(self, timeout=10): FILE: bondai/util/semantic_search.py function split_text (line 15) | def split_text( function concatenate_strings (line 41) | def concatenate_strings(arr: List[str], n: int) -> List[str]: function split_tokens (line 49) | def split_tokens( function semantic_search (line 66) | def semantic_search( FILE: bondai/util/web.py function is_html (line 10) | def is_html(text: str) -> bool: function get_website_html (line 15) | def get_website_html(url: str) -> str: function get_html_text (line 20) | def get_html_text(html: str) -> str: function get_website_text (line 25) | def get_website_text(url: str) -> str: function query_website_html (line 30) | def query_website_html(url: str, xpath: str) -> str: function get_website_links (line 37) | def get_website_links(url: str) -> List[str]: FILE: tests/api-client/test_api_client.py function handle_streaming_content_updated (line 13) | def handle_streaming_content_updated(agent_id, content_buffer): function handle_streaming_function_updated (line 20) | def handle_streaming_function_updated(agent_id, function_name, arguments... function handle_agent_message (line 28) | def handle_agent_message(agent_id, message): function handle_tool_selected_message (line 43) | def handle_tool_selected_message(agent_id, message): function handle_tool_error_message (line 57) | def handle_tool_error_message(agent_id, message): FILE: tests/memory/single_agent_with_memory.py function retrieve_and_parse_pdf (line 15) | def retrieve_and_parse_pdf(url): FILE: tests/memory/util.py function extract_text_from_directory (line 10) | def extract_text_from_directory( function extract_file_text (line 29) | def extract_file_text(file_path: str) -> str: FILE: website/src/components/HomepageFeatures/index.js function Feature (line 38) | function Feature({Svg, title, description}) { function HomepageFeatures (line 52) | function HomepageFeatures() { FILE: website/src/pages/index.js function HomepageHeader (line 11) | function HomepageHeader() { function Home (line 30) | function Home() {