Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added on_agent_final_answer-support to Agent callback_manager #5736

Merged
merged 14 commits into from
Oct 9, 2023
Merged
Prev Previous commit
Next Next commit
reverted sorted imports
  • Loading branch information
davidberenstein1957 committed Sep 18, 2023
commit 84c28821f074f6fa46e985eb1fde6550d631daf0
20 changes: 10 additions & 10 deletions haystack/agents/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@

import logging
import re
from collections.abc import Callable, Iterable
from collections.abc import Iterable, Callable
from hashlib import md5
from typing import Any, Dict, List, Optional, Tuple, Union
from typing import List, Optional, Union, Dict, Any, Tuple

from events import Events

from haystack import Answer, BaseComponent, Document, Pipeline
from haystack.agents.agent_step import AgentStep
from haystack import Pipeline, BaseComponent, Answer, Document
from haystack.agents.memory import Memory, NoMemory
from haystack.agents.types import AgentTokenStreamingHandler, Color
from haystack.telemetry import send_event
from haystack.agents.agent_step import AgentStep
from haystack.agents.types import Color, AgentTokenStreamingHandler
from haystack.agents.utils import print_text, react_parameter_resolver
from haystack.nodes import BaseRetriever, PromptNode, PromptTemplate
from haystack.nodes import PromptNode, BaseRetriever, PromptTemplate
from haystack.pipelines import (
BaseStandardPipeline,
DocumentSearchPipeline,
ExtractiveQAPipeline,
FAQPipeline,
DocumentSearchPipeline,
GenerativeQAPipeline,
RetrieverQuestionGenerationPipeline,
SearchSummarizationPipeline,
FAQPipeline,
TranslationWrapperPipeline,
RetrieverQuestionGenerationPipeline,
WebQAPipeline,
)
from haystack.telemetry import send_event

logger = logging.getLogger(__name__)

Expand Down