Dfcx-scrapi

Latest version: v1.13.1

Safety actively analyzes 715032 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 7

1.12.1

Bug
- Patch to require `google-cloud-aiplatform` as part of the setuptools
- The lack of `google-cloud-aiplatform` in setuptools was causing import errors in some classes that rely on `vertexai` as an import

**Full Changelog**: https://github.com/GoogleCloudPlatform/dfcx-scrapi/compare/1.12.0...1.12.1

1.12.0

New Features
Evaluations are here! πŸŽ‰
---

What are Evaluations? πŸ“ πŸ“ˆ
We know that building an Agent is only part of the journey.
Understanding how that Agent responds to real-world queries is a key indicator of how it will perform in Production.
Running evaluations, or "evals", allows Agent developers to quickly identify "losses", or areas of opportunities for improving Agent design.

Evals can provide answers to questions like:
* What is the current performance baseline for my Agent?
* How is my Agent performing after the most recent changes?
* If I switch to a new LLM, how does that change my Agent's performance?

Evaluation Toolsets in SCRAPI πŸ› οΈπŸ
For this latest release, we have included 2 specific Eval setups for developers to use with Agent Builder and Dialogflow CX Agents.
1. [DataStore Evaluations](https://github.com/GoogleCloudPlatform/dfcx-scrapi/blob/main/examples/vertex_ai_conversation/evaluation_tool__autoeval__colab.ipynb)
2. [Multi-turn, Multi-Agent w/ Tool Calling Evaluations](https://github.com/GoogleCloudPlatform/dfcx-scrapi/blob/main/examples/vertex_ai_conversation/vertex_agents_evals.ipynb)

These are offered as two distinct evaluations toolsets because of a few reasons:
* They support different build architectures in DFCX vs. Agent Builder
* They support different metrics based on the task you are trying to evaluate
* They support different tool calling setups: Native DataStores vs. arbitrary custom tools

Metrics by Toolset. πŸ“
The following metrics are currently supported for each toolset.
Additional metrics will be added over time to support various other evaluation needs.
- DataStore Evaluations
- `Url Match`
- `Context Recall`
- `Faithfulness`
- `Answer Correctness`
- `RougeL`
- Multi-Turn, Multi-Agent w/ Tool Callling Evaluations
- `Semantic Similarity`
- `Exact Match Tool Quality`

Getting Started with Evaluations 🏁
1. Start by choosing your Eval toolset based on the Agent architecture you are evaluating
- [DataStore Evaluations](https://github.com/GoogleCloudPlatform/dfcx-scrapi/blob/main/examples/vertex_ai_conversation/evaluation_tool__autoeval__colab.ipynb)
- [Multi-turn, Multi-Agent w/ Tool Calling Evaluations](https://github.com/GoogleCloudPlatform/dfcx-scrapi/blob/main/examples/vertex_ai_conversation/vertex_agents_evals.ipynb)
3. Build an Evaluation Dataset. You can find detailed information about the dataset formats in each of the toolset instructions
4. Run your evals!

Example Eval Setup for Multi-Turn, Mutli-Agent w/ Tools
py
import pandas as pd
from dfcx_scrapi.tools.evaluations import Evaluations
from dfcx_scrapi.tools.evaluations import DataLoader

data = DataLoader()

INPUT_SCHEMA_REQUIRED_COLUMNS = ['eval_id', 'action_id', 'action_type', 'action_input', 'action_input_parameters', 'tool_action', 'notes']

sample_df = pd.DataFrame(columns=INPUT_SCHEMA_REQUIRED_COLUMNS)

sample_df.loc[0] = ["travel-ai-001", 1, "User Utterance", "Paris", "", "", ""]
sample_df.loc[1] = ["travel-ai-001", 2, "Playbook Invocation", "Travel Inspiration", "", "", ""]
sample_df.loc[2] = ["travel-ai-001", 3, "Agent Response", "Paris is a beautiful city! Here are a few things you might enjoy doing there:\n\nVisit the Eiffel Tower\nTake a walk along the Champs-Γ‰lysΓ©es\nVisit the Louvre Museum\nSee the Arc de Triomphe\nTake a boat ride on the Seine River", "", "", ""]

sample_df = data.from_dataframe(sample_df)
agent_id = "projects/your-project/locations/us-central1/agents/11111-2222-33333-44444" Example Agent
evals = Evaluations(agent_id, metrics=["response_similarity", "tool_call_quality"])
eval_results = evals.run_query_and_eval(sample_df.head(10))


What's Changed
* Feat/evaluations by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/217
* Feat/evals notebook by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/218


**Full Changelog**: https://github.com/GoogleCloudPlatform/dfcx-scrapi/compare/1.11.2...1.12.0

1.11.2

What's Changed
* fix: improve markdown line handling by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/213
* Add build_search_engine_proto() to Engines by rantman in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/215

New Contributors
* rantman made their first contribution in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/215

**Full Changelog**: https://github.com/GoogleCloudPlatform/dfcx-scrapi/compare/1.11.1...1.11.2

1.11.1

What's Changed
* FR - allow users to pass endUserMetadata as an optional in detect_intent and autoeval colab by jkshj21 in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/210
* FR-186 - Export results into multiple mode by Naveenkm13 in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/209
* Add creds to the constructors by MRyderOC in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/204
* Feat/playbook instructions parsing by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/212

New Contributors
* Naveenkm13 made their first contribution in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/209

**Full Changelog**: https://github.com/GoogleCloudPlatform/dfcx-scrapi/compare/1.11.0...1.11.1

1.11.0

New Features
Agent Builder SDK is here! πŸŽ‰
The long awaited Agent Builder SDK is now live in SCRAPI, so you can now build your Agents, Tools, and Examples directly from code without interacting with the UI.

In just a few lines of code, you can have an Agent up and running!
py
from dfcx_scrapi.core.agents import Agents
from dfcx_scrapi.core.playbooks import Playbooks

a = Agents()
agent = a.create_agent(
project_id="my-project",
display_name="SCRAPI PLAYBOOKS",
gcp_region="us-east1",
playbook_agent=True
)

p = Playbooks(agent.name)
playbooks_map = p.get_playbooks_map(agent.name, reverse=True)
p.update_playbook(
playbooks_map["Default Generative Agent"],
goal="You are a friendly Tesla service center agent.\nYour job is to help users book appointments and answer any questions they have.",
instructions=["Greet the user.", "Answer any questions the have to the best of your ability."]
)


We've released a [GenAI Agents 101 Notebook](https://github.com/GoogleCloudPlatform/dfcx-scrapi/blob/1.11.0/examples/bot_building_series/genai_agents_101.ipynb) to help you get started with using the new API endpoints.

As usual, please file bugs/FRs as you see them!

Enhancements
- New [Vertex AI Conversation evaluation notebook](https://github.com/GoogleCloudPlatform/dfcx-scrapi/blob/1.11.0/examples/vertex_ai_conversation/evaluation_tool__autoeval__colab.ipynb) added for evaluating your Vertex RAG setups
- New [Vertex Search notebook](https://github.com/GoogleCloudPlatform/dfcx-scrapi/blob/1.11.0/examples/vertex_ai_conversation/datastores_and_search.ipynb) added for quickly building and testing your Vertex Data Stores
- Added a new flag in `Sessions.detect_intent` to enable data store connection signals

Bug Fix
- Fixed a bug in FulfillmentBuilder that was causing bool values not to be accepted
- Pinned linter.yml file and requirements to specific pylint version

What's Changed
* Bool flag to Sessions.detect_intent to enbale data store connection signals by Mrpatekful in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/177
* Feature/test cases util by jkshj21 in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/164
* feat: Vertex Search config and example notebook by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/180
* feat: Add 1-click buttons to colabs by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/181
* Vertex AI Conversation automatic evaluation tooling by Mrpatekful in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/183
* Update linter.yml with certain pylint version by totemws in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/191
* Create README.md by totemws in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/189
* Bug/fulfillment builder param preset bug by MRyderOC in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/188
* Feature/generative playbooks by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/198
* feat: add simply playbook agent creation; update tests by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/199
* fix: tools imports now that rollout is complete by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/200
* Fix/update playbook mask by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/201
* Feat/simple tool creation by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/202
* feat: add sample genai_agent notebook and tool by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/203

New Contributors
* totemws made their first contribution in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/191

**Full Changelog**: https://github.com/GoogleCloudPlatform/dfcx-scrapi/compare/1.10.5...1.11.0

1.10.5

What's Changed
* Fixed duplicated detect intent call if parameters are provided. by Mrpatekful in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/175
* BUGFIX: Set Region When ID is Missing by kmaphoenix in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/176

New Contributors
* Mrpatekful made their first contribution in https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/175

**Full Changelog**: https://github.com/GoogleCloudPlatform/dfcx-scrapi/compare/1.10.4...1.10.5

Page 2 of 7

Β© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.