prebuilt.scientific_paper_agent.nodes¶

Attributes¶

Functions¶

agent_node(state)

Agent call node that uses the LLM with tools to answer the user query.

decision_making_node(state)

Entry point of the workflow. Based on the user query, the model can either respond directly or perform a full research, routing the workflow to the planning node.

final_answer_router(state)

Router to end the workflow or improve the answer.

judge_node(state)

Node to let the LLM judge the quality of its own final answer.

planning_node(state)

Planning node that creates a step by step plan to answer the user query.

router(state)

Router directing the user query to the appropriate branch of the workflow.

should_continue(state)

Check if the agent should continue or end.

tools_node(state)

Tool call node that executes the tools based on the plan.

Module Contents¶

prebuilt.scientific_paper_agent.nodes.agent_node(state: haive.prebuilt.scientific_paper_agent.state.AgentState)¶

Agent call node that uses the LLM with tools to answer the user query.

prebuilt.scientific_paper_agent.nodes.decision_making_node(state: haive.prebuilt.scientific_paper_agent.state.AgentState)¶

Entry point of the workflow. Based on the user query, the model can either respond directly or perform a full research, routing the workflow to the planning node.

prebuilt.scientific_paper_agent.nodes.final_answer_router(state: haive.prebuilt.scientific_paper_agent.state.AgentState)¶

Router to end the workflow or improve the answer.

prebuilt.scientific_paper_agent.nodes.judge_node(state: haive.prebuilt.scientific_paper_agent.state.AgentState)¶

Node to let the LLM judge the quality of its own final answer.

prebuilt.scientific_paper_agent.nodes.planning_node(state: haive.prebuilt.scientific_paper_agent.state.AgentState)¶

Planning node that creates a step by step plan to answer the user query.

prebuilt.scientific_paper_agent.nodes.router(state: haive.prebuilt.scientific_paper_agent.state.AgentState)¶

Router directing the user query to the appropriate branch of the workflow.

prebuilt.scientific_paper_agent.nodes.should_continue(state: haive.prebuilt.scientific_paper_agent.state.AgentState)¶

Check if the agent should continue or end.

prebuilt.scientific_paper_agent.nodes.tools_node(state: haive.prebuilt.scientific_paper_agent.state.AgentState)¶

Tool call node that executes the tools based on the plan.

prebuilt.scientific_paper_agent.nodes.agent_llm¶
prebuilt.scientific_paper_agent.nodes.base_llm¶
prebuilt.scientific_paper_agent.nodes.decision_making_llm¶
prebuilt.scientific_paper_agent.nodes.judge_llm¶