1717from agent_framework .azure import AzureOpenAIChatClient
1818
1919from . import logger
20- from .common import create_agent_chat_options , get_current_directory
20+ from .common import (
21+ AGENT_MAX_TOKENS ,
22+ AGENT_TEMPERATURE ,
23+ AGENT_TOP_P ,
24+ get_current_directory ,
25+ )
2126
2227# Define agent name constants
2328LOG_SEARCH_AGENT_NAME = "LogSearchAgent"
@@ -448,16 +453,15 @@ def __init__(
448453 plugin .read_text_file ,
449454 plugin .list_files ,
450455 ]
451- chat_options = create_agent_chat_options ()
452456 super ().__init__ (
453457 chat_client = chat_client ,
454458 name = name ,
455459 description = description ,
456460 instructions = instructions ,
457461 tools = tools ,
458- temperature = chat_options . temperature ,
459- top_p = chat_options . top_p ,
460- additional_properties = {"max_completion_tokens" : chat_options . max_tokens },
462+ temperature = AGENT_TEMPERATURE ,
463+ top_p = AGENT_TOP_P ,
464+ additional_properties = {"max_completion_tokens" : AGENT_MAX_TOKENS },
461465 )
462466
463467 def _create_chat_client (
@@ -621,7 +625,6 @@ async def async_analyze_default(
621625
622626 # Create summary agent for final answer synthesis
623627 final_answer_prompt = _load_prompt ("final_answer.txt" , flow = "default" )
624- chat_options = create_agent_chat_options ()
625628 summary_chat_client = AzureOpenAIChatClient (
626629 api_key = azure_openai_api_key ,
627630 endpoint = azure_openai_endpoint ,
@@ -633,9 +636,9 @@ async def async_analyze_default(
633636 description = "Summarizes and formats final answer." ,
634637 instructions = final_answer_prompt ,
635638 tools = [],
636- temperature = chat_options . temperature ,
637- top_p = chat_options . top_p ,
638- additional_properties = {"max_completion_tokens" : chat_options . max_tokens },
639+ temperature = AGENT_TEMPERATURE ,
640+ top_p = AGENT_TOP_P ,
641+ additional_properties = {"max_completion_tokens" : AGENT_MAX_TOKENS },
639642 )
640643
641644 logger .info ("Building Sequential workflow..." )
0 commit comments