MCPcopy Create free account
hub / github.com/Chainlit/cookbook / __init__

Method __init__

openai-data-analyst/app.py:28–37  ·  view source on GitHub ↗
(self, assistant_name: str)

Source from the content-addressed store, hash-verified

26
27class EventHandler(AsyncAssistantEventHandler):
28 def __init__(self, assistant_name: str) -> None:
29 super().__init__()
30 self.current_message: cl.Message = None
31 self.current_step: cl.Step = None
32 self.current_tool_call = None
33 self.assistant_name = assistant_name
34 previous_steps = local_steps.get() or []
35 parent_step = previous_steps[-1] if previous_steps else None
36 if parent_step:
37 self.parent_id = parent_step.id
38
39 async def on_run_step_created(self, run_step: RunStep) -> None:
40 cl.user_session.set("run_step", run_step)

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected