samples updating with AgentScope-Runtime 1.0.0 (#43)

This commit is contained in:
Zhiling (Bruce) Luo
2025-12-09 21:19:33 +08:00
committed by GitHub
parent 67469f1caa
commit 68450961bb
10 changed files with 353 additions and 271 deletions

View File

@@ -12,10 +12,14 @@ from langchain_core.runnables import RunnableConfig
from langgraph.graph import START, END
from langgraph.graph import StateGraph
from langgraph.types import Send
from agentscope_runtime.engine.agents.langgraph_agent import LangGraphAgent
from agentscope_runtime.engine.helpers.helper import simple_call_agent_direct
from configuration import Configuration
from state import (
OverallState,
QueryGenerationState,
ReflectionState,
WebSearchState,
)
from llm_utils import call_dashscope, extract_json_from_qwen
from custom_search_tool import CustomSearchTool
from llm_prompts import (
query_writer_instructions,
@@ -23,13 +27,12 @@ from llm_prompts import (
reflection_instructions,
answer_instructions,
)
from llm_utils import call_dashscope, extract_json_from_qwen
from state import (
OverallState,
QueryGenerationState,
ReflectionState,
WebSearchState,
)
from configuration import Configuration
from agentscope_runtime.engine.agents.langgraph_agent import LangGraphAgent
from agentscope_runtime.engine.helpers.helper import simple_call_agent_direct
from .utils import (
get_research_topic,
insert_citation_markers,