Skip to content

One problem regarding RunItem #1283

@AhmedCoder2233

Description

@AhmedCoder2233

when the final output is checking

return SingleStepResult(
            original_input=original_input,
            model_response=new_response,
            pre_step_items=pre_step_items,
            new_step_items=new_step_items,
            next_step=NextStepFinalOutput(final_output),
)

it returns this block of code

But here:

turn_result = await self._run_single_turn(
                 agent=current_agent,
                 all_tools=all_tools,
                 original_input=original_input,
                 generated_items=generated_items,
                 hooks=hooks,
                 context_wrapper=context_wrapper,
                 run_config=run_config,
                 should_run_agent_start_hooks=should_run_agent_start_hooks,
                 tool_use_tracker=tool_use_tracker,
                 previous_response_id=previous_response_id,
)

               generated_items = turn_result.generated_items 

you're using turn_result.generated_items it should be turn_result.new_step_items please fix it

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:coreneeds-more-infoWaiting for a reply/more info from the authorquestionQuestion about using the SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions