Skip to content

LLamaIndexConversableAgent is available in llama_index package? #14385

Answered by dosubot bot
mraguth asked this question in Q&A
Discussion options

You must be logged in to vote

To resolve the TypeError indicating that CustomHandler cannot be instantiated without implementing the abstract methods end_trace and start_trace, you need to provide implementations for these methods in your CustomHandler class. Here is an updated example:

from llama_index.core.callbacks.base_handler import BaseCallbackHandler
from llama_index.core.callbacks.base import CallbackManager
from llama_index.core.callbacks.schema import CBEventType, EventPayload

# Custom handler inheriting from BaseCallbackHandler
class CustomHandler(BaseCallbackHandler):
    def on_event_start(self, event_type, payload, event_id, parent_id, **kwargs):
        print(f"Event {event_type} started with ID {even…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@mraguth
Comment options

@dosubot
Comment options

@mraguth
Comment options

@dosubot
Comment options

Answer selected by mraguth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant